[BUGFIX] Revert way_idx fix

The added code results in width mismatch for NUM_WAYS = 4.
This commit is contained in:
Hansung Kim
2023-11-28 18:44:47 -08:00
parent c3c9a4b5d8
commit 5825680303

View File

@@ -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)