-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path,help-rvfi
executable file
·44 lines (37 loc) · 1.54 KB
/
,help-rvfi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/env bash
print-header 'RVFI'
print-url 'https://github.com/SymbioticEDA/riscv-formal/blob/master/docs/rvfi.md'
csv2table <<-EOF
FIELD,WIDTH,DESCRIPTION
rvfi_valid,NRET ,
rvfi_order,NRET * 64,instruction index
rvfi_insn ,NRET * ILEN,instruction word? opcode?
rvfi_trap ,NRET ,set for instructions that cannot be decoded; memory access violations; misaligned instructions
rvfi_halt ,NRET ,set for the last instruction retired before halting; not set when CPU reacts to a trap with a trap handler
rvfi_intr ,NRET ,first instruction that is part of a trap handler
rvfi_mode ,NRET * 2 ,priviledge level: 0=U-Mode; 1=S-Mode; 2=Reserved; 3=M-Mode
rvfi_ixl ,NRET * 2 ,MXL/SXL/UXL of the current privilege level: 1=32; 2=64
,,
rvfi_rs1_addr ,NRET * 5,register address
rvfi_rs2_addr ,NRET * 5,
rvfi_rs1_rdata,NRET * XLEN,value of the register
rvfi_rs2_rdata,NRET * XLEN,
rvfi_rd_addr ,NRET * 5,rd register address
rvfi_rd_wdata ,NRET * XLEN,value of the rd register
rvfi_pc_rdata ,NRET * XLEN,pc of retired instruction
rvfi_pc_wdata ,NRET * XLEN,pc of next instruction
,,
rvfi_mem_addr ,NRET * XLEN ,memory address
rvfi_mem_rmask,NRET * XLEN/8,specifies valid bytes
rvfi_mem_wmask,NRET * XLEN/8,
rvfi_mem_rdata,NRET * XLEN ,pre-state data read
rvfi_mem_wdata,NRET * XLEN ,post-state data write
,,
rvfi_csr_<csrname>_rmask,NRET * XLEN,specifes valid bits
rvfi_csr_<csrname>_wmask,NRET * XLEN,
rvfi_csr_<csrname>_rdata,NRET * XLEN,
rvfi_csr_<csrname>_wdata,NRET * XLEN,
,,
rvfi_rollback_valid, 1,
rvfi_rollback_order,64,
EOF