From b9afe2d4c22e35f2d2e65d67c07b300ba3f7ccb3 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Tue, 3 Nov 2026 20:03:50 +0200 Subject: fix missing connection in skid buffer + Verilator does not check undefined values and unused wire warnings only show up with -Wall (as warnings) so I just missed this completely, hah. Surprised the testbench passed, I guess it's just not quite up to snuff. --- src/skid_buffer.sv | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/skid_buffer.sv b/src/skid_buffer.sv index 3ea6d0d..0bb5617 100644 --- a/src/skid_buffer.sv +++ b/src/skid_buffer.sv @@ -37,6 +37,12 @@ if (!rstx_i) else if (b_fill) b <= a; +always_ff @(posedge clk_i or negedge rstx_i) +if (!rstx_i) + b_full <= '0; +else if (b_fill || b_drain) + b_full <= b_fill; + /* fill A first, if upstream can't read A in time, place A into B and skid the * input into A until upstream can clean out B */ assign a_fill = valid_i && ready_o; -- cgit v1.3