mirror of
https://github.com/lowRISC/ibex.git
synced 2025-04-23 13:27:10 -04:00
[dv] Access CPUCTRLSTS and SECURESEED in riscv_rand_instr_test
This commit is contained in:
parent
cb01156154
commit
4dca23383a
2 changed files with 3 additions and 1 deletions
|
@ -131,6 +131,8 @@ const privileged_reg_t implemented_csr[] = {
|
|||
MTVAL, // Machine bad address or instruction
|
||||
MIE, // Machine interrupt enable
|
||||
MIP, // Machine interrupt pending
|
||||
12'h7c0, // CPU Control and Status (Ibex Specific)
|
||||
12'h7c1, // Secure Seed (Ibex Specific)
|
||||
MCYCLE, // Machine cycle counter (lower 32 bits)
|
||||
MCYCLEH, // Machine cycle counter (upper 32 bits)
|
||||
//MINSTRET, // Machine instructions retired counter (lower 32 bits)
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
+instr_cnt=10000
|
||||
+num_of_sub_program=5
|
||||
+gen_all_csrs_by_default=1
|
||||
+add_csr_write=MSTATUS,MEPC,MCAUSE,MTVAL,0x7c0
|
||||
+add_csr_write=MSTATUS,MEPC,MCAUSE,MTVAL,0x7c0,0x7c1
|
||||
+no_csr_instr=0
|
||||
rtl_test: core_ibex_base_test
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue