cve2/scripts/sec
Davide Schiavone 468b3595cd
add X-IF 1.0 (#284)
* Core-V eXtension Interface (CV-X-IF) integration (#277)

* minor fixes (#283)

* minor fix again

* Changes to make the X_if addition compatible with the golden version of the core, minus the rf_we line (#289)

* Fix remaining sec inconsistency regarding the X-IF addition (#291)

* Changes to make the X_if addition compatible with the golden version of the core, minus the rf_we line

* [rt][sec][xif] Made the length of the cve2_id_stage's rf_wdata_sel dependent on the whether the X-IF is present

* [rtl][sec][xif] Made the length of the cve2_id_stage's rf_wdata_sel dependent on the whether the X-IF is present

* Clean Verilator warning about X-IF addition while keeping the RTL SEC-safe (#292)

* Changes to make the X_if addition compatible with the golden version of the core, minus the rf_we line

* [rt][sec][xif] Made the length of the cve2_id_stage's rf_wdata_sel dependent on the whether the X-IF is present

* [rtl][sec][xif] Made the length of the cve2_id_stage's rf_wdata_sel dependent on the whether the X-IF is present

* [rtl][xif][verilator] Clean warnings about enum-logic[] width mismatch on Verilator, while keeping the design logically equivalent. This is due to the cve2_decoder's rf_wdata_sel_o signal, which has its width dependent of the X-IF.

* fix xif

---------

Co-authored-by: FrancescoDeMalde-synthara <167969440+FrancescoDeMalde-synthara@users.noreply.github.com>
Co-authored-by: Cairo Caplan <cairo.caplan@eclipse-foundation.org>
2025-04-10 14:06:34 +02:00
..
cadence fix regfile 0 val and sec script (#119) 2023-05-31 14:42:22 +02:00
yosys Logical Equivalence Checking with Yosys EQY (#287) 2025-03-17 10:49:24 +01:00
README.md Add SEC scripts (#113) 2023-05-15 15:03:24 +02:00
sec.sh add X-IF 1.0 (#284) 2025-04-10 14:06:34 +02:00

Sequential Equivalence Checking (SEC)

This folder contains a SEC script that runs on Cadence Jaspergold

Running the script

From a bash shell, please execute:

./sec.sh -t cadence

Use sh ./sec.sh -t {cadence} if you run it from a tcsh shell.

The script clones the cve2 main branch of the core as a golden reference, and uses the current repository's rtl as revised version.

If you want to use another golden reference rtl, Set the GOLDEN_RTL enviromental variable to the new rtl before calling the sec.sh script.

export GOLDEN_RTL=YOUR_GOLDEN_CORE_RTL_PATH

or

setenv GOLDEN_RTL YOUR_GOLDEN_CORE_RTL_PATH

If the script succeeds, it returns 0, otherwise 1.

The sec.tcl scripts in the tool specific folders are executed on the tools to perform RTL to RTL SEC.