blinky_with_pll, works on hardware but verilator does not know how to handle the SB40_PLL_CORE yet
This commit is contained in:
33
blinky_with_pll/pll_100MHz.v
Normal file
33
blinky_with_pll/pll_100MHz.v
Normal file
@@ -0,0 +1,33 @@
|
||||
/**
|
||||
* PLL configuration
|
||||
*
|
||||
* This Verilog module was generated automatically
|
||||
* using the icepll tool from the IceStorm project.
|
||||
* Use at your own risk.
|
||||
*
|
||||
* Given input frequency: 12.000 MHz
|
||||
* Requested output frequency: 50.000 MHz
|
||||
* Achieved output frequency: 50.250 MHz
|
||||
*/
|
||||
|
||||
module pll_100MHz(
|
||||
input clock_in,
|
||||
output clock_out,
|
||||
output locked
|
||||
);
|
||||
|
||||
SB_PLL40_CORE #(
|
||||
.FEEDBACK_PATH("SIMPLE"),
|
||||
.DIVR(4'b0000), // DIVR = 0
|
||||
.DIVF(7'b1000010), // DIVF = 66
|
||||
.DIVQ(3'b100), // DIVQ = 4
|
||||
.FILTER_RANGE(3'b001) // FILTER_RANGE = 1
|
||||
) uut (
|
||||
.LOCK(locked),
|
||||
.RESETB(1'b1),
|
||||
.BYPASS(1'b0),
|
||||
.REFERENCECLK(clock_in),
|
||||
.PLLOUTCORE(clock_out)
|
||||
);
|
||||
|
||||
endmodule
|
||||
Reference in New Issue
Block a user