project directories reorganization
This commit is contained in:
18
hw/rtl/VX_lsu_addr_gen.v
Normal file
18
hw/rtl/VX_lsu_addr_gen.v
Normal file
@@ -0,0 +1,18 @@
|
||||
`include "VX_define.v"
|
||||
|
||||
module VX_lsu_addr_gen (
|
||||
input wire[`NT_M1:0][31:0] base_address,
|
||||
input wire[31:0] offset,
|
||||
output wire[`NT_M1:0][31:0] address
|
||||
|
||||
);
|
||||
|
||||
|
||||
genvar index;
|
||||
generate
|
||||
for (index = 0; index < `NT; index = index + 1) begin : addresses
|
||||
assign address[index] = base_address[index] + offset;
|
||||
end
|
||||
endgenerate
|
||||
|
||||
endmodule
|
||||
Reference in New Issue
Block a user