pmd: Initialize sd_delay
Although the least-significant bit of sd_delay is driven by an SB_IO (if
we are synthesizing), the other bits need to be initialized.
Fixes: d8ce165
("pmd: Delay signal_status/detect until data is valid")
Signed-off-by: Sean Anderson <seanga2@gmail.com>
This commit is contained in:
parent
acfd5f62d2
commit
5b3c350581
|
@ -28,6 +28,7 @@ module pmd_dp83223_rx (
|
||||||
|
|
||||||
reg [1:0] rx_p, rx_n;
|
reg [1:0] rx_p, rx_n;
|
||||||
reg [4:0] sd_delay;
|
reg [4:0] sd_delay;
|
||||||
|
initial sd_delay[4:1] = 4'b0;
|
||||||
|
|
||||||
`ifdef SYNTHESIS
|
`ifdef SYNTHESIS
|
||||||
SB_IO #(
|
SB_IO #(
|
||||||
|
@ -47,6 +48,7 @@ module pmd_dp83223_rx (
|
||||||
.D_IN_1(rx_n[0])
|
.D_IN_1(rx_n[0])
|
||||||
);
|
);
|
||||||
`else
|
`else
|
||||||
|
initial sd_delay[0] = 0;
|
||||||
always @(posedge clk_125)
|
always @(posedge clk_125)
|
||||||
sd_delay[0] <= signal_detect;
|
sd_delay[0] <= signal_detect;
|
||||||
|
|
||||||
|
@ -189,7 +191,7 @@ module pmd_dp83223_rx (
|
||||||
|
|
||||||
`ifndef SYNTHESIS
|
`ifndef SYNTHESIS
|
||||||
reg [255:0] state_text;
|
reg [255:0] state_text;
|
||||||
input [13:0] delay;
|
wire [13:0] delay;
|
||||||
|
|
||||||
always @(*) begin
|
always @(*) begin
|
||||||
case (state)
|
case (state)
|
||||||
|
|
Loading…
Reference in New Issue