From 586831ae78d909d6ac76fcd3e07952ea88b3e014 Mon Sep 17 00:00:00 2001 From: Thomas Benz Date: Fri, 4 Aug 2023 10:46:06 +0200 Subject: [PATCH] axi_to_reg: Change type definition scope to localparam --- hw/future/axi_to_reg_v2.sv | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/hw/future/axi_to_reg_v2.sv b/hw/future/axi_to_reg_v2.sv index 6c760b68b..54c2e2181 100644 --- a/hw/future/axi_to_reg_v2.sv +++ b/hw/future/axi_to_reg_v2.sv @@ -43,14 +43,14 @@ module axi_to_reg_v2 #( // how many times is the AXI bus wider than the regbus? localparam int unsigned NumBanks = AxiDataWidth / RegDataWidth; - typedef logic [AxiAddrWidth-1 :0] addr_t; - typedef logic [RegDataWidth-1 :0] reg_data_t; - typedef logic [RegDataWidth/8-1:0] reg_strb_t; + localparam type reg_addr_t = logic [AxiAddrWidth-1 :0]; + localparam type reg_data_t = logic [RegDataWidth-1 :0]; + localparam type reg_strb_t = logic [RegDataWidth/8-1:0]; // TCDM BUS logic [NumBanks-1:0] mem_req; logic [NumBanks-1:0] mem_gnt; - addr_t [NumBanks-1:0] mem_addr; + reg_addr_t [NumBanks-1:0] mem_addr; reg_data_t [NumBanks-1:0] mem_wdata; reg_strb_t [NumBanks-1:0] mem_strb; logic [NumBanks-1:0] mem_we; @@ -75,7 +75,7 @@ module axi_to_reg_v2 #( .BufDepth ( 32'd1 ), .HideStrb ( 1'b0 ), .OutFifoDepth ( 32'd1 ), - .addr_t ( addr_t ), + .addr_t ( reg_addr_t ), .mem_data_t ( reg_data_t ), .mem_strb_t ( reg_strb_t ) ) i_axi_to_detailed_mem (