Skip to content

Commit 3087b44

Browse files
committed
hw: Collective fix for cc v2
1 parent ce114b9 commit 3087b44

5 files changed

Lines changed: 16 additions & 16 deletions

File tree

hw/floo_meta_buffer.sv

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,9 @@ module floo_meta_buffer #(
142142
logic aw_no_atop_buf_not_full, ar_no_atop_buf_not_full;
143143

144144
cc_id_queue #(
145-
.ID_WIDTH ( IdMinWidth ),
146-
.CAPACITY ( MaxTxns ),
147-
.FULL_BW ( 1'b1 ),
145+
.IdWidth ( IdMinWidth ),
146+
.Capacity ( MaxTxns ),
147+
.FullBw ( 1'b1 ),
148148
.data_t ( buf_t )
149149
) i_aw_no_atop_id_queue (
150150
.clk_i,
@@ -167,9 +167,9 @@ module floo_meta_buffer #(
167167
);
168168

169169
cc_id_queue #(
170-
.ID_WIDTH ( IdMinWidth ),
171-
.CAPACITY ( MaxTxns ),
172-
.FULL_BW ( 1'b1 ),
170+
.IdWidth ( IdMinWidth ),
171+
.Capacity ( MaxTxns ),
172+
.FullBw ( 1'b1 ),
173173
.data_t ( buf_t )
174174
) i_ar_no_atop_id_queue (
175175
.clk_i,

hw/floo_output_arbiter.sv

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,9 @@ module floo_output_arbiter import floo_pkg::*;
124124
// Arbitrate between wormhole and reduction arbiter
125125
// Reductions have higher priority than unicasts (index 0)
126126
cc_stream_arbiter #(
127-
.N_INP (2),
128-
.ARBITER("prio"),
129-
.DATA_T (flit_t)
127+
.NumInp (2),
128+
.ArbMode (cc_pkg::ARB_PRIO),
129+
.data_t (flit_t)
130130
) i_stream_arbiter (
131131
.clk_i,
132132
.rst_ni,

hw/floo_reduction_sync.sv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ module floo_reduction_sync import floo_pkg::*;
4545
end
4646

4747
cc_stream_join_dynamic #(
48-
.N_INP ( NumRoutes )
48+
.NumInp ( NumRoutes )
4949
) i_stream_join_dynamic (
5050
.inp_valid_i ( filtered_valid_in ),
5151
.inp_ready_o ( ready_o ),

hw/floo_reduction_unit.sv

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ module floo_reduction_unit
162162
// - Output 1: Offload unit
163163
// - Output 2: SelectAW unit
164164
cc_stream_demux #(
165-
.N_OUP ( 2 )
165+
.NumOup ( 2 )
166166
) i_operands_demux (
167167
.inp_valid_i ( operands_valid_out ),
168168
.inp_ready_o ( operands_ready_in ),
@@ -288,8 +288,8 @@ module floo_reduction_unit
288288

289289
assign result_mux_sel = metadata_flit_out.hdr.collective_op == SeqAW;
290290
cc_stream_mux #(
291-
.DATA_T ( flit_t ),
292-
.N_INP ( 2 )
291+
.data_t ( flit_t ),
292+
.NumInp ( 2 )
293293
) i_result_mux (
294294
.inp_data_i ( {aw_out, result_flit_in} ),
295295
.inp_valid_i ( {aw_valid_out, result_valid_in} ),
@@ -311,7 +311,7 @@ module floo_reduction_unit
311311
);
312312

313313
cc_stream_demux #(
314-
.N_OUP ( NumOutputs )
314+
.NumOup ( NumOutputs )
315315
) i_result_demux (
316316
.inp_valid_i ( result_flit_valid_out ),
317317
.inp_ready_o ( result_flit_ready_in ),

hw/floo_router.sv

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ module floo_router
215215
// onehot decoding of the input direction
216216
// bypass the reduction if only on e input member is selected (if none is selected then bypass too [should never occure but to avoid deadlocks])
217217
cc_popcount #(
218-
.INPUT_WIDTH (NumInput)
218+
.InputWidth (NumInput)
219219
) i_red_list_counter (
220220
.data_i (red_expected_in_route[in][v]),
221221
.popcount_o (red_how_many_participants[in][v])
@@ -228,7 +228,7 @@ module floo_router
228228
assign offload_reduction[in][v] = (~red_single_member[in][v]) &
229229
(is_seq_reduction_op(in_routed_data[in][v].hdr.collective_op));
230230
cc_stream_demux #(
231-
.N_OUP (2)
231+
.NumOup (2)
232232
) i_stream_demux (
233233
.inp_valid_i (in_valid[in][v]),
234234
.inp_ready_o (in_ready[in][v]),

0 commit comments

Comments
 (0)