Skip to content

Commit

Permalink
Update core/cache_subsystem/wt_dcache_mem.sv
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
Gchauvon and github-actions[bot] authored May 31, 2024
1 parent 9fcad88 commit 74d0504
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions core/cache_subsystem/wt_dcache_mem.sv
Original file line number Diff line number Diff line change
Expand Up @@ -332,24 +332,24 @@ module wt_dcache_mem
assign rd_vld_bits_o[i] = vld_tag_rdata[i][CVA6Cfg.DCACHE_TAG_WIDTH];

// Tag RAM
sram_cache #(
// tag + valid bit
.DATA_WIDTH (CVA6Cfg.DCACHE_TAG_WIDTH + 1),
.BYTE_ACCESS(0),
.TECHNO_CUT (CVA6Cfg.TechnoCut),
.NUM_WORDS (CVA6Cfg.DCACHE_NUM_WORDS)
) i_tag_sram (
.clk_i (clk_i),
.rst_ni (rst_ni),
.req_i (vld_req[i]),
.we_i (vld_we),
.addr_i (vld_addr),
.wuser_i('0),
.wdata_i({vld_wdata[i], wr_cl_tag_i}),
.be_i ('1),
.ruser_o(),
.rdata_o(vld_tag_rdata[i])
);
sram_cache #(
// tag + valid bit
.DATA_WIDTH (CVA6Cfg.DCACHE_TAG_WIDTH + 1),
.BYTE_ACCESS(0),
.TECHNO_CUT (CVA6Cfg.TechnoCut),
.NUM_WORDS (CVA6Cfg.DCACHE_NUM_WORDS)
) i_tag_sram (
.clk_i (clk_i),
.rst_ni (rst_ni),
.req_i (vld_req[i]),
.we_i (vld_we),
.addr_i (vld_addr),
.wuser_i('0),
.wdata_i({vld_wdata[i], wr_cl_tag_i}),
.be_i ('1),
.ruser_o(),
.rdata_o(vld_tag_rdata[i])
);
end

always_ff @(posedge clk_i or negedge rst_ni) begin : p_regs
Expand Down

0 comments on commit 74d0504

Please sign in to comment.