summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2023-10-26 04:29:14 -0600
committerAlejandro Soto <alejandro@34project.org>2023-10-26 04:29:14 -0600
commit4d10617bd697114ecdc748cb638a10bd8159aeaa (patch)
treef15d6c022078da4e2dee3ff9d706085b417488da
parent986863efed48dfba23907400beb7e5f025b75b50 (diff)
rtl/gfx: fix deadlock in fold_flow
-rw-r--r--rtl/gfx/fold_flow.sv2
-rw-r--r--rtl/gfx/vec_dot.sv2
2 files changed, 2 insertions, 2 deletions
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]),