minor updates

This commit is contained in:
Blaise Tine 2023-12-05 06:15:15 -08:00
parent 22fef445ff
commit c397fb5f4b
2 changed files with 4 additions and 3 deletions

View file

@ -436,7 +436,7 @@
// Number of Banks
`ifndef DCACHE_NUM_BANKS
`define DCACHE_NUM_BANKS (`NUM_LSU_LANES)
`define DCACHE_NUM_BANKS `MIN(`NUM_LSU_LANES, 4)
`endif
// Core Response Queue Size

View file

@ -191,14 +191,15 @@ module VX_stream_xbar #(
end
end
wire [`CLOG2(NUM_INPUTS+1)-1:0] collision_count;
wire [`CLOG2(NUM_INPUTS+1)-1:0] collision_count, collision_count_r;
`POP_COUNT(collision_count, per_cycle_collision);
`BUFFER(collision_count_r, collision_count);
always @(posedge clk) begin
if (reset) begin
collisions_r <= '0;
end else begin
collisions_r <= collisions_r + PERF_CTR_BITS'(collision_count);
collisions_r <= collisions_r + PERF_CTR_BITS'(collision_count_r);
end
end