forked from openhwgroup/cva6
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Makefile: * adding rvfi_pkg * adding absolute paths to the incdir to avoid relative path issues * move spike.sv from tbs to src core/cva6.sv: * change tval for new instr field of the scoreboard_entry_t * change trap to support all kinds of exceptions and interrupts core/decoder.sv: * change tval for 0 and add the old tval value to instr field core/include/ariane_pkg.sv: * add instr field on scoreboard_entry_t core/include/rvfi_pkg.sv: * new file that has: * st_rvfi struct, compare function, spike init function corev_apu/tb/common/spike.sv * change module to support rvfi_pkg verif/env/uvme/uvme_cva6_cfg.sv: * rename scooreboarding_enable to scoreboard_enable * rvfi_cfg.nret now properly set verif/env/uvme/uvme_cva6_constants.sv: * delete RVFI_NRET to avoid misconfigurations verif/env/uvme/uvme_cva6_env.sv: * rename scoreboarding * unify rvfi_monitors into one verif/env/uvme/uvme_cva6_pkg.sv: * add cva6_config_pkg to be available in the components verif/regress/install-spike.sh: * change SPIKE_SRC_DIR to core-v-verif verif/sim/Makefile: * avoid reconfigure if a config.log exists * add core_v_verif variable * add spike-tandem variable * add elfloader lib instead of ariane_dpi verif/sim/cva6.py: * solve trailing issues verif/sim/cva6.yaml: * delete steps variable #TODO add new timeout impl verif/sim/cva6_spike_log_to_trace_csv.py: * adapt for new spike impl verif/tb/uvmt/cva6_tb_wrapper.sv: * PRELOAD to elf_file verif/tb/uvmt/uvmt_cva6_pkg.sv: * add rvfi_pkg verif/tb/uvmt/uvmt_cva6_tb.sv: * add localparam RVFI_NRET * add rvfi_cause verif/tests/uvmt/compliance-tests/uvmt_cva6_firmware_test.sv: * add factory override for spike
- Loading branch information
1 parent
01e5658
commit 296d991
Showing
19 changed files
with
169 additions
and
277 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,16 @@ | ||
`ifndef __UVMA_RVFI_TDEFS_SV__ | ||
`define __UVMA_RVFI_TDEFS_SV__ | ||
`ifndef __UVMA_RVFI_PKG_SV__ | ||
`define __UVMA_RVFI_PKG_SV__ | ||
|
||
package rvfi_pkg; | ||
|
||
typedef struct { | ||
longint unsigned nret_id; | ||
longint unsigned cycle_cnt; | ||
longint unsigned order; | ||
longint unsigned insn; | ||
byte unsigned trap; | ||
byte unsigned halt; | ||
byte unsigned intr; | ||
int unsigned mode; | ||
int unsigned ixl; | ||
int unsigned dbg; | ||
int unsigned dbg_mode; | ||
longint unsigned nmip; | ||
|
||
longint unsigned insn_interrupt; | ||
longint unsigned insn_interrupt_id; | ||
longint unsigned insn_bus_fault; | ||
longint unsigned insn_nmi_store_fault; | ||
longint unsigned insn_nmi_load_fault; | ||
|
||
longint unsigned pc_rdata; | ||
longint unsigned pc_wdata; | ||
|
||
longint unsigned rs1_addr; | ||
longint unsigned rs1_rdata; | ||
|
||
longint unsigned rs2_addr; | ||
longint unsigned rs2_rdata; | ||
|
||
longint unsigned rs3_addr; | ||
longint unsigned rs3_rdata; | ||
|
||
longint unsigned rd1_addr; | ||
longint unsigned rd1_wdata; | ||
package rvfi_pkg; | ||
|
||
longint unsigned rd2_addr; | ||
longint unsigned rd2_wdata; | ||
`include "uvm_macros.svh" | ||
import uvm_pkg::*; | ||
|
||
longint unsigned mem_addr; | ||
longint unsigned mem_rdata; | ||
longint unsigned mem_rmask; | ||
longint unsigned mem_wdata; | ||
longint unsigned mem_wmask; | ||
`include "uvma_rvfi_constants.sv" | ||
`include "uvma_rvfi_tdefs.sv" | ||
`include "uvma_rvfi_utils.sv" | ||
|
||
} st_rvfi; | ||
endpackage | ||
|
||
`endif |
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
Oops, something went wrong.