-
Notifications
You must be signed in to change notification settings - Fork 795
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ibex,fpga] Fix FPGA related Ibex RF issue
This commit manually pulls over lowRISC/ibex#2224 to fix the register file for the FPGA configuration. As we do not want to include other Ibex changes, this is done using a patch file. Signed-off-by: Pascal Nasahl <nasahlpa@lowrisc.org> (commit is original to earlgrey_1.0.0)
- Loading branch information
1 parent
547335f
commit 20bf77b
Showing
2 changed files
with
27 additions
and
4 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
23 changes: 23 additions & 0 deletions
23
hw/vendor/patches/lowrisc_ibex/rtl/0001-Fix-fpga-register-file.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,23 @@ | ||
diff --git a/ibex_register_file_fpga.sv b/ibex_register_file_fpga.sv | ||
index 7a0ae34b15..73e0afab2f 100644 | ||
--- a/ibex_register_file_fpga.sv | ||
+++ b/ibex_register_file_fpga.sv | ||
@@ -147,14 +147,14 @@ module ibex_register_file_fpga #( | ||
.out_o (mem_o_b) | ||
); | ||
|
||
- assign rdata_a_o = (raddr_a_i == '0) ? '0 : mem_o_a; | ||
- assign rdata_b_o = (raddr_b_i == '0) ? '0 : mem_o_b; | ||
+ assign rdata_a_o = (raddr_a_i == '0) ? WordZeroVal : mem_o_a; | ||
+ assign rdata_b_o = (raddr_b_i == '0) ? WordZeroVal : mem_o_b; | ||
end else begin : gen_no_rdata_mux_check | ||
// async_read a | ||
- assign rdata_a_o = (raddr_a_i == '0) ? '0 : mem[raddr_a_i]; | ||
+ assign rdata_a_o = (raddr_a_i == '0) ? WordZeroVal : mem[raddr_a_i]; | ||
|
||
// async_read b | ||
- assign rdata_b_o = (raddr_b_i == '0) ? '0 : mem[raddr_b_i]; | ||
+ assign rdata_b_o = (raddr_b_i == '0) ? WordZeroVal : mem[raddr_b_i]; | ||
end | ||
|
||
// we select |