Skip to content

Commit 3453421

Browse files
committed
delay value as parameter
1 parent 8a32def commit 3453421

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

rtl/iddr.v

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ module iddr #
3535
(
3636
// Width of register in bits
3737
parameter WIDTH = 1,
38-
parameter INSERT_BUFFERS = "FALSE"
38+
parameter INSERT_BUFFERS = "FALSE",
39+
// Can be count or time depending on delay type
40+
parameter [8:0] DELAY_VALUE = 9'h19
3941
)
4042
(
4143
input wire clk,
@@ -127,7 +129,7 @@ end
127129
q_reg_1 <= d_reg_1;
128130
q_reg_2 <= d_reg_2;
129131
end
130-
132+
131133
assign q1 = q_reg_1;
132134
assign q2 = q_reg_2;
133135

rtl/rgmii_phy_if.v

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ module rgmii_phy_if #
4545
parameter CLOCK_INPUT_STYLE = "BUFIO",
4646
// Use 90 degree clock for RGMII transmit ("TRUE", "FALSE")
4747
parameter USE_CLK90 = "TRUE",
48-
parameter INSERT_BUFFERS = "TRUE"
48+
parameter INSERT_BUFFERS = "TRUE",
49+
// Delay value for input data in count or time units
50+
parameter [8:0] DELAY_VALUE = 9'h19
4951
)
5052
(
5153
// Reset, synchronous to gmii_gtx_clk
@@ -101,7 +103,8 @@ ssio_ddr_in #
101103
.TARGET(TARGET),
102104
.CLOCK_INPUT_STYLE(CLOCK_INPUT_STYLE),
103105
.WIDTH(5),
104-
.INSERT_BUFFERS(INSERT_BUFFERS)
106+
.INSERT_BUFFERS(INSERT_BUFFERS),
107+
.DELAY_VALUE (DELAY_VALUE)
105108
)
106109
rx_ssio_ddr_inst (
107110
.input_clk(rgmii_rxc),

rtl/ssio_ddr_in.v

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ module ssio_ddr_in #
4141
parameter CLOCK_INPUT_STYLE = "BUFG",
4242
// Width of register in bits
4343
parameter WIDTH = 1,
44-
parameter INSERT_BUFFERS = "FALSE"
44+
parameter INSERT_BUFFERS = "FALSE",
45+
parameter [8:0] DELAY_VALUE = 9'h19
4546
)
4647
(
4748
input wire input_clk,
@@ -145,7 +146,8 @@ endgenerate
145146

146147
iddr #(
147148
.WIDTH(WIDTH),
148-
.INSERT_BUFFERS(INSERT_BUFFERS)
149+
.INSERT_BUFFERS(INSERT_BUFFERS),
150+
.DELAY_VALUE(DELAY_VALUE)
149151
)
150152
data_iddr_inst (
151153
.clk(clk_io),

0 commit comments

Comments
 (0)