Skip to content

Commit

Permalink
Revert "Chagned makro names"
Browse files Browse the repository at this point in the history
This reverts commit c8dfa5b.
  • Loading branch information
fischeti committed Aug 1, 2024
1 parent 6af1b1a commit 0a813d3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions hw/tcdm_interface/include/tcdm_interface/assign.svh
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
// The channel assignments `TCDM_ASSIGN_XX(dst, src)` assign all payload and
// the valid signal of the `XX` channel from the `src` to the `dst` interface
// and they assign the ready signal from the `src` to the `dst` interface. The
// interface assignment `TCDM_ASSIGN_CLUSTER(dst, src)` assigns all channels including
// interface assignment `TCDM_ASSIGN(dst, src)` assigns all channels including
// handshakes as if `src` was the master of `dst`.
//
// Usage Example: `TCDM_ASSIGN_CLUSTER(slv, mst) `TCDM_ASSIGN_Q(dst, src, aw)
// Usage Example: `TCDM_ASSIGN(slv, mst) `TCDM_ASSIGN_Q(dst, src, aw)
// `TCDM_ASSIGN_P(dst, src)
`define TCDM_ASSIGN_Q_CHAN(__opt_as, dst, src, __sep_dst, __sep_src) \
__opt_as dst.q``__sep_dst``addr = src.q``__sep_src``addr; \
Expand All @@ -41,7 +41,7 @@
__opt_as dst.q``__sep_dst``user = src.q``__sep_src``user;
`define TCDM_ASSIGN_P_CHAN(__opt_as, dst, src, __sep_dst, __sep_src) \
__opt_as dst.p``__sep_dst``data = src.p``__sep_src``data;
`define TCDM_ASSIGN_CLUSTER(slv, mst) \
`define TCDM_ASSIGN(slv, mst) \
`TCDM_ASSIGN_Q_CHAN(assign, slv, mst, _, _) \
`TCDM_ASSIGN_HANDSHAKE(assign, slv, mst, q) \
`TCDM_ASSIGN_P_CHAN(assign, mst, slv, _, _) \
Expand Down
2 changes: 1 addition & 1 deletion hw/tcdm_interface/test/reqrsp_to_tcdm_tb.sv
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ module reqrsp_to_tcdm_tb import reqrsp_pkg::*; #(
);

`REQRSP_ASSIGN(master, master_dv)
`TCDM_ASSIGN_CLUSTER(slave_dv, slave)
`TCDM_ASSIGN(slave_dv, slave)

// ----------------
// Clock generation
Expand Down
4 changes: 2 additions & 2 deletions hw/tcdm_interface/test/tcdm_mux_tb.sv
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ module tcdm_mux_tb import reqrsp_pkg::*; #(
.mst (slave)
);

`TCDM_ASSIGN_CLUSTER(slave_dv, slave)
`TCDM_ASSIGN(slave_dv, slave)
for (genvar i = 0; i < NrPorts; i++) begin : gen_if_assignment
`TCDM_ASSIGN_CLUSTER(master[i], master_dv[i])
`TCDM_ASSIGN(master[i], master_dv[i])
end

// ----------------
Expand Down

0 comments on commit 0a813d3

Please sign in to comment.