mirror of
https://github.com/aolofsson/oh.git
synced 2025-01-17 20:02:53 +08:00
c60f9236da
-should probably last for more cycles thatn this?
27 lines
481 B
Verilog
27 lines
481 B
Verilog
/*An empty IDELAYCTRL model*/
|
|
module IDELAYCTRL (/*AUTOARG*/
|
|
// Outputs
|
|
RDY,
|
|
// Inputs
|
|
REFCLK, RST
|
|
);
|
|
|
|
output RDY; //goes high when delay has been calibrated
|
|
input REFCLK; //reference clock for setting tap delay
|
|
input RST; //reset pulse for setting
|
|
|
|
reg RDY;
|
|
|
|
always @ (posedge REFCLK or posedge RST)
|
|
if(RST)
|
|
RDY <= 1'b0;
|
|
else
|
|
RDY <= 1'b1; //one clock cycle on REFCLK
|
|
|
|
endmodule // IDELAYCTRL
|
|
|
|
|
|
|
|
|
|
|