Skip to content

Commit fb66759

Browse files
anujickslominski-ant
authored andcommitted
[DV] fix parameter type in axi_adapter_wrapper
Signed-off-by: Angelo Nujic <anujic@antmicro.com>
1 parent 98a2cd4 commit fb66759

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎verification/cocotb/block/lib_adapter/axi_adapter_wrapper.sv‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ module axi_adapter_wrapper
99
parameter type csr_cfg_t = target_csr_t,
1010
parameter bit ControllerEn = 0, // enables host controller configuration
1111
parameter bit TargetEn = 1, // enables target configuration
12+
parameter type hwif_out_t = csr_cfg_extractor#(csr_cfg_t)::hwif_out_t,
13+
parameter type hwif_in_t = csr_cfg_extractor#(csr_cfg_t)::hwif_in_t,
1214
parameter int unsigned CsrAddrWidth = (ControllerEn && TargetEn) ? controller_and_target_I3CCSR_pkg::controller_and_target_I3CCSR_MIN_ADDR_WIDTH :
1315
(ControllerEn) ? controller_I3CCSR_pkg::controller_I3CCSR_MIN_ADDR_WIDTH :
1416
target_I3CCSR_pkg::target_I3CCSR_MIN_ADDR_WIDTH,
@@ -166,8 +168,8 @@ module axi_adapter_wrapper
166168
.s_cpuif_wr_err(s_cpuif_wr_err)
167169
);
168170

169-
csr_cfg_t::hwif_in_t hwif_in;
170-
csr_cfg_t::hwif_out_t hwif_out;
171+
hwif_in_t hwif_in;
172+
hwif_out_t hwif_out;
171173

172174
assign hwif_in.rst_ni = areset_n;
173175

0 commit comments

Comments
 (0)