Skip to content

Commit 31a04f8

Browse files
committed
refactor: migrate to common_cells v2
1 parent 7b8394d commit 31a04f8

3 files changed

Lines changed: 30 additions & 30 deletions

File tree

Bender.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ package:
44

55
dependencies:
66
axi: { git: "https://github.com/pulp-platform/axi.git", version: 0.39.9 }
7-
common_cells: { git: "https://github.com/pulp-platform/common_cells.git", rev: v2-dev }
7+
common_cells: { git: "https://github.com/pulp-platform/common_cells.git", rev: v2-test }
88
common_verification: { git: "https://github.com/pulp-platform/common_verification.git", version: 0.2.1 }
99

1010
sources:

src/axi_res_tbl.sv

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ module axi_res_tbl #(
8787
logic [NUM_RESERVATIONS-1:0] field_in_use_d, field_in_use_q;
8888

8989
cc_plru_tree #(
90-
.Entries(NUM_RESERVATIONS)
90+
.ENTRIES(NUM_RESERVATIONS)
9191
) i_reservation_plru (
9292
.clk_i(clk_i),
9393
.rst_ni(rst_ni),
@@ -96,10 +96,10 @@ module axi_res_tbl #(
9696
);
9797

9898
cc_onehot_to_bin #(
99-
.OnehotWidth(NUM_RESERVATIONS)
99+
.ONEHOT_WIDTH(NUM_RESERVATIONS)
100100
) i_reservation_plru_bin (
101-
.onehot_i(plru_evict_oh),
102-
.bin_o(plru_evict)
101+
.onehot(plru_evict_oh),
102+
.bin(plru_evict)
103103
);
104104

105105
always_comb begin

src/axi_riscv_lrsc.sv

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -336,11 +336,11 @@ module axi_riscv_lrsc #(
336336

337337
// IQ Queue to track in-flight reads
338338
cc_id_queue #(
339-
.IdWidth (AXI_ID_WIDTH),
340-
.Capacity (AXI_MAX_READ_TXNS),
339+
.ID_WIDTH (AXI_ID_WIDTH),
340+
.CAPACITY (AXI_MAX_READ_TXNS),
341341
.data_t (r_flight_t),
342-
.FullBw (FULL_BANDWIDTH),
343-
.CutOupPopInpGnt (CUT_OUP_POP_INP_GNT)
342+
.FULL_BW (FULL_BANDWIDTH),
343+
.CUT_OUP_POP_INP_GNT (CUT_OUP_POP_INP_GNT)
344344
) i_read_in_flight_queue (
345345
.clk_i (clk_i),
346346
.rst_ni (rst_ni),
@@ -366,7 +366,7 @@ module axi_riscv_lrsc #(
366366

367367
// Fork requests from AR into reservation table and queue of in-flight reads.
368368
cc_stream_fork #(
369-
.NumOup (2)
369+
.N_OUP (2)
370370
) i_ar_push_fork (
371371
.clk_i (clk_i),
372372
.rst_ni (rst_ni),
@@ -497,10 +497,10 @@ module axi_riscv_lrsc #(
497497

498498
// FIFO to track commands for W bursts.
499499
cc_fifo #(
500-
.FallThrough(1'b0), // There would be a combinatorial loop if this were a fall-through
500+
.FALL_THROUGH(1'b0), // There would be a combinatorial loop if this were a fall-through
501501
// register. Optimizing this can reduce the latency of this module.
502-
.data_t (w_cmd_t),
503-
.Depth (AXI_MAX_WRITE_TXNS)
502+
.dtype (w_cmd_t),
503+
.DEPTH (AXI_MAX_WRITE_TXNS)
504504
) i_w_cmd_fifo (
505505
.clk_i (clk_i),
506506
.rst_ni (rst_ni),
@@ -522,11 +522,11 @@ module axi_riscv_lrsc #(
522522
b_cmd_flat_t b_status_inp_cmd_flat, b_status_oup_cmd_flat;
523523
assign b_status_inp_cmd_flat = b_cmd_flat_t'(b_status_inp_cmd);
524524
cc_id_queue #(
525-
.IdWidth (AXI_ID_WIDTH),
526-
.Capacity (AXI_MAX_WRITE_TXNS),
525+
.ID_WIDTH (AXI_ID_WIDTH),
526+
.CAPACITY (AXI_MAX_WRITE_TXNS),
527527
.data_t (b_cmd_flat_t),
528-
.FullBw (FULL_BANDWIDTH),
529-
.CutOupPopInpGnt (CUT_OUP_POP_INP_GNT)
528+
.FULL_BW (FULL_BANDWIDTH),
529+
.CUT_OUP_POP_INP_GNT (CUT_OUP_POP_INP_GNT)
530530
) i_b_status_queue (
531531
.clk_i (clk_i),
532532
.rst_ni (rst_ni),
@@ -552,11 +552,11 @@ module axi_riscv_lrsc #(
552552

553553
// ID Queue to track in-flight writes.
554554
cc_id_queue #(
555-
.IdWidth (AXI_ID_WIDTH),
556-
.Capacity (AXI_MAX_WRITE_TXNS),
555+
.ID_WIDTH (AXI_ID_WIDTH),
556+
.CAPACITY (AXI_MAX_WRITE_TXNS),
557557
.data_t (w_flight_t),
558-
.FullBw (FULL_BANDWIDTH),
559-
.CutOupPopInpGnt (CUT_OUP_POP_INP_GNT)
558+
.FULL_BW (FULL_BANDWIDTH),
559+
.CUT_OUP_POP_INP_GNT (CUT_OUP_POP_INP_GNT)
560560
) i_write_in_flight_queue (
561561
.clk_i (clk_i),
562562
.rst_ni (rst_ni),
@@ -593,8 +593,8 @@ module axi_riscv_lrsc #(
593593
// pragma translate_on
594594

595595
cc_stream_arbiter #(
596-
.data_t (wifq_exists_t),
597-
.NumInp (2)
596+
.DATA_T (wifq_exists_t),
597+
.N_INP (2)
598598
) i_wifq_exists_arb (
599599
.clk_i (clk_i),
600600
.rst_ni (rst_ni),
@@ -607,7 +607,7 @@ module axi_riscv_lrsc #(
607607
);
608608

609609
cc_stream_fork #(
610-
.NumOup (2)
610+
.N_OUP (2)
611611
) i_mst_b_fork (
612612
.clk_i (clk_i),
613613
.rst_ni (rst_ni),
@@ -619,9 +619,9 @@ module axi_riscv_lrsc #(
619619

620620
// FIFO to track B responses that are to be injected.
621621
cc_fifo #(
622-
.FallThrough (1'b0),
623-
.data_t (b_inj_t),
624-
.Depth (AXI_MAX_WRITE_TXNS)
622+
.FALL_THROUGH (1'b0),
623+
.dtype (b_inj_t),
624+
.DEPTH (AXI_MAX_WRITE_TXNS)
625625
) i_b_inj_fifo (
626626
.clk_i (clk_i),
627627
.rst_ni (rst_ni),
@@ -661,7 +661,7 @@ module axi_riscv_lrsc #(
661661

662662

663663
cc_fall_through_register #(
664-
.data_t (aw_chan_t)
664+
.T (aw_chan_t)
665665
) i_aw_trans_reg (
666666
.clk_i (clk_i),
667667
.rst_ni (rst_ni),
@@ -986,7 +986,7 @@ module axi_riscv_lrsc #(
986986

987987
// Register in front of slv_b to prevent changes by FSM while valid and not yet ready.
988988
cc_stream_register #(
989-
.data_t (b_chan_t)
989+
.T (b_chan_t)
990990
) slv_b_reg (
991991
.clk_i (clk_i),
992992
.rst_ni (rst_ni),
@@ -1004,7 +1004,7 @@ module axi_riscv_lrsc #(
10041004
// Fall-through register in front of slv_r to remove mutual dependency.
10051005
cc_spill_register #( // There would be a combinatorial loop if this were a fall-through register.
10061006
// Optimizing this can reduce the latency of this module.
1007-
.data_t (r_chan_t)
1007+
.T (r_chan_t)
10081008
) slv_r_reg (
10091009
.clk_i (clk_i),
10101010
.rst_ni (rst_ni),

0 commit comments

Comments
 (0)