new cache states
This commit is contained in:
23
rtl/cache/VX_cache_bank_valid.v
vendored
Normal file
23
rtl/cache/VX_cache_bank_valid.v
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
`include "../VX_define.v"
|
||||
|
||||
module VX_cache_bank_valid
|
||||
#(
|
||||
parameter NUMBER_BANKS = 0
|
||||
)
|
||||
(
|
||||
input wire [`NT_M1:0] i_p_valid,
|
||||
input wire [`NT_M1:0][31:0] i_p_addr,
|
||||
output wire [NUMBER_BANKS - 1 : 0][`NT_M1:0] thread_track_banks
|
||||
);
|
||||
|
||||
|
||||
|
||||
|
||||
genvar t_id;
|
||||
for (t_id = 0; t_id <= `NT_M1; t_id = t_id + 1)
|
||||
begin
|
||||
wire[2:0] threads_bank = i_p_addr[t_id][4:2];
|
||||
assign thread_track_banks[threads_bank][t_id] = i_p_valid[t_id];
|
||||
end
|
||||
|
||||
endmodule
|
||||
Reference in New Issue
Block a user