From 5b3c3505819580698c4db8101ec0609ade773f59 Mon Sep 17 00:00:00 2001 From: Sean Anderson Date: Mon, 9 Jan 2023 20:31:39 -0500 Subject: [PATCH] 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 --- rtl/pmd_dp83223_rx.v | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rtl/pmd_dp83223_rx.v b/rtl/pmd_dp83223_rx.v index d3890bf..7a73d3c 100644 --- a/rtl/pmd_dp83223_rx.v +++ b/rtl/pmd_dp83223_rx.v @@ -28,6 +28,7 @@ module pmd_dp83223_rx ( reg [1:0] rx_p, rx_n; reg [4:0] sd_delay; + initial sd_delay[4:1] = 4'b0; `ifdef SYNTHESIS SB_IO #( @@ -47,6 +48,7 @@ module pmd_dp83223_rx ( .D_IN_1(rx_n[0]) ); `else + initial sd_delay[0] = 0; always @(posedge clk_125) sd_delay[0] <= signal_detect; @@ -189,7 +191,7 @@ module pmd_dp83223_rx ( `ifndef SYNTHESIS reg [255:0] state_text; - input [13:0] delay; + wire [13:0] delay; always @(*) begin case (state)