From cc0ff769228c27e4e3e1d6ee979648ecd811cd90 Mon Sep 17 00:00:00 2001 From: Riccardo Tedeschi <58978462+ricted98@users.noreply.github.com> Date: Fri, 4 Oct 2024 03:10:41 +0200 Subject: [PATCH] stream_join_dynamic: Assert inp readies only for selected streams (#236) --- src/stream_join_dynamic.sv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stream_join_dynamic.sv b/src/stream_join_dynamic.sv index db874b7f..267990b9 100644 --- a/src/stream_join_dynamic.sv +++ b/src/stream_join_dynamic.sv @@ -36,7 +36,7 @@ module stream_join_dynamic #( // Corner case when `sel_i` is all 0s should not generate valid assign oup_valid_o = &(inp_valid_i | ~sel_i) && |sel_i; for (genvar i = 0; i < N_INP; i++) begin : gen_inp_ready - assign inp_ready_o[i] = oup_valid_o & oup_ready_i; + assign inp_ready_o[i] = oup_valid_o & oup_ready_i & sel_i[i]; end `ifndef COMMON_CELLS_ASSERTS_OFF