From 4d10617bd697114ecdc748cb638a10bd8159aeaa Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Thu, 26 Oct 2023 04:29:14 -0600 Subject: rtl/gfx: fix deadlock in fold_flow --- rtl/gfx/fold_flow.sv | 2 +- rtl/gfx/vec_dot.sv | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'rtl') diff --git a/rtl/gfx/fold_flow.sv b/rtl/gfx/fold_flow.sv index 1d9c0f2..2221976 100644 --- a/rtl/gfx/fold_flow.sv +++ b/rtl/gfx/fold_flow.sv @@ -53,7 +53,7 @@ module fold_flow always_ff @(posedge clk or negedge rst_n) if (!rst_n) rounds[i] <= `INDEX4_MIN; - else if (in_ready) + else if (!stall) rounds[i] <= rounds[i - 1]; end endgenerate diff --git a/rtl/gfx/vec_dot.sv b/rtl/gfx/vec_dot.sv index c0926ac..a386e6d 100644 --- a/rtl/gfx/vec_dot.sv +++ b/rtl/gfx/vec_dot.sv @@ -36,7 +36,7 @@ module vec_dot .* ); - skid_buf #(.WIDTH($bits(vec4))) skid_i + skid_buf #(.WIDTH($bits(fp))) skid_i ( .in(products_mul[i]), .out(products_fold[i]), -- cgit v1.2.3