-
Notifications
You must be signed in to change notification settings - Fork 792
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[hw,prim_ram_1p,rtl] Add reset input to prim_ram_1p
A reset input is reasonable as the underlying macro might need a reset signal for internal flops. Signed-off-by: Robert Schilling <rschilling@rivosinc.com>
- Loading branch information
1 parent
a18b3dd
commit 7648c5b
Showing
13 changed files
with
90 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
hw/vendor/patches/lowrisc_ibex/dv/0003-PATCH-Add-rst-to-prim_ram_1p.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
From 3b121fa310582a7961b757fa9f870cff046679c1 Mon Sep 17 00:00:00 2001 | ||
From: Robert Schilling <rschilling@rivosinc.com> | ||
Date: Mon, 23 Dec 2024 11:15:10 +0100 | ||
Subject: [PATCH 1/1] [PATCH] Add rst to prim_ram_1p | ||
|
||
Signed-off-by: Robert Schilling <rschilling@rivosinc.com> | ||
--- | ||
uvm/icache/dv/prim_badbit/prim_badbit_ram_1p.sv | 4 +++- | ||
1 file changed, 3 insertions(+), 1 deletion(-) | ||
|
||
diff --git a/uvm/icache/dv/prim_badbit/prim_badbit_ram_1p.sv b/uvm/icache/dv/prim_badbit/prim_badbit_ram_1p.sv | ||
index 7fa4678f..fef9e9a1 100644 | ||
--- a/uvm/icache/dv/prim_badbit/prim_badbit_ram_1p.sv | ||
+++ b/uvm/icache/dv/prim_badbit/prim_badbit_ram_1p.sv | ||
@@ -19,6 +19,7 @@ module prim_badbit_ram_1p #( | ||
localparam int Aw = $clog2(Depth) // derived parameter | ||
) ( | ||
input logic clk_i, | ||
+ input logic rst_ni, | ||
|
||
input logic req_i, | ||
input logic write_i, | ||
@@ -36,7 +37,8 @@ module prim_badbit_ram_1p #( | ||
.DataBitsPerMask(DataBitsPerMask), | ||
.MemInitFile (MemInitFile) | ||
) u_mem ( | ||
.clk_i (clk_i), | ||
+ .rst_ni (rst_ni), | ||
|
||
.cfg_i ('0), | ||
.cfg_rsp_o(), | ||
.req_i (req_i), | ||
-- | ||
2.47.0 | ||
|
33 changes: 33 additions & 0 deletions
33
hw/vendor/patches/lowrisc_ibex/rtl/0004-PATCH-Add-rst-to-prim_ram_1p.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
From 805f8c59091632a1416c6cd2e2308c1e6a81752d Mon Sep 17 00:00:00 2001 | ||
From: Robert Schilling <rschilling@rivosinc.com> | ||
Date: Mon, 23 Dec 2024 11:18:32 +0100 | ||
Subject: [PATCH 1/1] [PATCH] Add rst to prim_ram_1p | ||
|
||
Signed-off-by: Robert Schilling <rschilling@rivosinc.com> | ||
--- | ||
ibex_top.sv | 2 ++ | ||
1 file changed, 2 insertions(+) | ||
|
||
diff --git a/ibex_top.sv b/ibex_top.sv | ||
index a90fee0e..4974270c 100644 | ||
--- a/ibex_top.sv | ||
+++ b/ibex_top.sv | ||
@@ -686,6 +686,7 @@ module ibex_top import ibex_pkg::*; #( | ||
.DataBitsPerMask (TagSizeECC) | ||
) tag_bank ( | ||
.clk_i, | ||
+ .rst_ni, | ||
|
||
.req_i (ic_tag_req[way]), | ||
|
||
@@ -705,6 +706,7 @@ module ibex_top import ibex_pkg::*; #( | ||
.DataBitsPerMask (LineSizeECC) | ||
) data_bank ( | ||
.clk_i, | ||
+ .rst_ni, | ||
|
||
.req_i (ic_data_req[way]), | ||
|
||
-- | ||
2.47.0 | ||
|