1
0
mirror of https://github.com/aolofsson/oh.git synced 2025-01-30 02:32:53 +08:00

Adding wrapper for generic pll

This commit is contained in:
Andreas Olofsson 2016-03-28 09:19:14 -04:00
parent 7b54e6b88f
commit 813dd3c17e

32
src/common/hdl/oh_pll.v Normal file
View File

@ -0,0 +1,32 @@
module oh_pll (/*AUTOARG*/
// Outputs
clkout, locked,
// Inputs
clkin, nreset, clkfb, pll_en, clkdiv, clkphase, clkmult
);
parameter N = 16; // number of clock outputs
// inputs
input clkin; // primary clock input
input nreset; // async active low reset
input clkfb; // feedback clock
input pll_en; // enable pll
input [N*8-1:0] clkdiv; // clock divider settings (per clock)
input [N*16-1:0] clkphase; // clock phase setting (rise/fall edge)
input [7:0] clkmult; // feedback clock multiplier
// outputs
output [N-1:0] clkout; // output clocks
output locked; // PLL locked status
`ifdef TARGET_SIM
//insert PLL simulation model
`endif
endmodule // oh_pll