Created
July 7, 2016 01:02
-
-
Save cr1901/53e9a359b18ac855490d192abaaa3c5a to your computer and use it in GitHub Desktop.
IceStick PLL Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Machine-generated using Migen */ | |
module top( | |
output gpio, | |
output user_led, | |
input clk12 | |
); | |
wire __main___pll_outg; | |
wire __main___lock; | |
wire sys_clk; | |
reg sys_rst = 1'd0; | |
wire gen_clk; | |
// synthesis translate_off | |
reg dummy_s; | |
initial dummy_s <= 1'd0; | |
// synthesis translate_on | |
assign user_led = __main___lock; | |
assign sys_clk = clk12; | |
assign gpio = gen_clk; | |
SB_PLL40_CORE #( | |
.DIVF(7'd87), | |
.DIVQ(2'd2), | |
.DIVR(1'd0), | |
.FILTER_RANGE(3'd1) | |
) SB_PLL40_CORE ( | |
.REFERENCECLK(sys_clk), | |
.RESETB((~sys_rst)), | |
.LOCK(__main___lock), | |
.PLLOUTGLOBAL(__main___pll_outg) | |
); | |
SB_GB SB_GB( | |
.USER_SIGNAL_TO_GLOBAL_BUFFER(__main___pll_outg), | |
.GLOBAL_BUFFER_OUTPUT(gen_clk) | |
); | |
endmodule |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment