Skip to content

Commit 2130ec5

Browse files
nbdd0121marnovandermaas
authored andcommitted
[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 <[email protected]>
1 parent e5297ca commit 2130ec5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

dv/formal/check/top.sv

+6-1
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ module top import ibex_pkg::*; #(
103103
input logic scan_rst_ni
104104
);
105105

106+
localparam logic [31:0] CSR_MVENDORID_VALUE = 32'b0;
107+
localparam logic [31:0] CSR_MIMPID_VALUE = 32'b0;
108+
106109
default clocking @(posedge clk_i); endclocking
107110

108111
ibex_top #(
@@ -113,7 +116,9 @@ ibex_top #(
113116
.RV32E(RV32E),
114117
.BranchTargetALU(1'b1),
115118
.PMPEnable(1'b1),
116-
.PMPNumRegions(PMPNumRegions)
119+
.PMPNumRegions(PMPNumRegions),
120+
.CsrMvendorId (CSR_MVENDORID_VALUE),
121+
.CsrMimpId (CSR_MIMPID_VALUE)
117122
) ibex_top_i(.*);
118123

119124
// Core constraints

0 commit comments

Comments
 (0)