[BUGFIX] Revert way_idx fix
The added code results in width mismatch for NUM_WAYS = 4.
This commit is contained in:
13
hw/rtl/cache/VX_cache_data.sv
vendored
13
hw/rtl/cache/VX_cache_data.sv
vendored
@@ -93,12 +93,13 @@ module VX_cache_data #(
|
||||
assign wren = fill;
|
||||
end
|
||||
|
||||
generate if (NUM_WAYS == 1) begin
|
||||
wire [0:0] way_idx;
|
||||
end else begin
|
||||
wire [`CLOG2(NUM_WAYS)-1:0] way_idx;
|
||||
end
|
||||
endgenerate
|
||||
wire [`CLOG2(NUM_WAYS)-1:0] way_idx;
|
||||
// generate if (NUM_WAYS == 1) begin
|
||||
// wire [0:0] way_idx;
|
||||
// end else begin
|
||||
// wire [`CLOG2(NUM_WAYS)-1:0] way_idx;
|
||||
// end
|
||||
// endgenerate
|
||||
|
||||
VX_onehot_encoder #(
|
||||
.N (NUM_WAYS)
|
||||
|
||||
Reference in New Issue
Block a user