mirror of
https://github.com/lowRISC/ibex.git
synced 2025-06-28 09:17:17 -04:00
[dv,formal] constrain CSR values for mvendorid and mimpid
These values were originally constants but now are parameters. Constrain them for formal. Signed-off-by: Gary Guo <gary.guo@lowrisc.org>
This commit is contained in:
parent
2c2dc5040f
commit
10270b6e9a
1 changed files with 6 additions and 1 deletions
|
@ -103,6 +103,9 @@ module top import ibex_pkg::*; #(
|
||||||
input logic scan_rst_ni
|
input logic scan_rst_ni
|
||||||
);
|
);
|
||||||
|
|
||||||
|
localparam logic [31:0] CSR_MVENDORID_VALUE = 32'b0;
|
||||||
|
localparam logic [31:0] CSR_MIMPID_VALUE = 32'b0;
|
||||||
|
|
||||||
default clocking @(posedge clk_i); endclocking
|
default clocking @(posedge clk_i); endclocking
|
||||||
|
|
||||||
ibex_top #(
|
ibex_top #(
|
||||||
|
@ -113,7 +116,9 @@ ibex_top #(
|
||||||
.RV32E(RV32E),
|
.RV32E(RV32E),
|
||||||
.BranchTargetALU(1'b1),
|
.BranchTargetALU(1'b1),
|
||||||
.PMPEnable(1'b1),
|
.PMPEnable(1'b1),
|
||||||
.PMPNumRegions(PMPNumRegions)
|
.PMPNumRegions(PMPNumRegions),
|
||||||
|
.CsrMvendorId (CSR_MVENDORID_VALUE),
|
||||||
|
.CsrMimpId (CSR_MIMPID_VALUE)
|
||||||
) ibex_top_i(.*);
|
) ibex_top_i(.*);
|
||||||
|
|
||||||
// Core constraints
|
// Core constraints
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue