Skip to content

Commit

Permalink
bram reset fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tinebp committed Aug 3, 2024
1 parent c1b8ecf commit 9c5aee5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
4 changes: 3 additions & 1 deletion hw/rtl/cache/VX_cache_data.sv
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,10 @@ module VX_cache_data #(
.SIZE (`CS_LINES_PER_BANK)
) byteen_store (
.clk (clk),
.reset (1'b0),
.read (write || fill || flush),
.write (init || write || fill || flush),
`UNUSED_PIN (wren),
.wren (1'b1),
.addr (line_sel),
.wdata (bs_wdata),
.rdata (bs_rdata)
Expand Down Expand Up @@ -161,6 +162,7 @@ module VX_cache_data #(
.RW_ASSERT (1)
) data_store (
.clk (clk),
.reset (1'b0),
.read (line_read),
.write (line_write),
.wren (line_wren),
Expand Down
3 changes: 2 additions & 1 deletion hw/rtl/cache/VX_cache_tags.sv
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,10 @@ module VX_cache_tags #(
.RW_ASSERT (1)
) tag_store (
.clk (clk),
.reset (1'b0),
.read (line_read),
.write (line_write),
`UNUSED_PIN (wren),
.wren (1'b1),
.addr (line_sel),
.wdata (line_wdata),
.rdata (line_rdata)
Expand Down
4 changes: 4 additions & 0 deletions hw/rtl/libs/VX_sp_ram.sv
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,14 @@ module VX_sp_ram #(
parameter NO_RWCHECK = 0,
parameter RW_ASSERT = 0,
parameter LUTRAM = 0,
parameter RESET_RAM = 0,
parameter INIT_ENABLE = 0,
parameter INIT_FILE = "",
parameter [DATAW-1:0] INIT_VALUE = 0,
parameter ADDRW = `LOG2UP(SIZE)
) (
input wire clk,
input wire reset,
input wire read,
input wire write,
input wire [WRENW-1:0] wren,
Expand All @@ -45,12 +47,14 @@ module VX_sp_ram #(
.NO_RWCHECK (NO_RWCHECK),
.RW_ASSERT (RW_ASSERT),
.LUTRAM (LUTRAM),
.RESET_RAM (RESET_RAM),
.INIT_ENABLE (INIT_ENABLE),
.INIT_FILE (INIT_FILE),
.INIT_VALUE (INIT_VALUE),
.ADDRW (ADDRW)
) dp_ram (
.clk (clk),
.reset (reset),
.read (read),
.write (write),
.wren (wren),
Expand Down
1 change: 1 addition & 0 deletions hw/rtl/mem/VX_local_mem.sv
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ module VX_local_mem import VX_gpu_pkg::*; #(
.WRENW (WORD_SIZE)
) data_store (
.clk (clk),
.reset (1'b0),
.read (1'b1),
.write (per_bank_req_valid[i] && per_bank_req_ready[i] && per_bank_req_rw[i]),
.wren (per_bank_req_byteen[i]),
Expand Down

0 comments on commit 9c5aee5

Please sign in to comment.