mirror of
https://github.com/openhwgroup/cvw.git
synced 2025-04-19 03:24:50 -04:00
Merge pull request #1365 from coreyqh/ccov
Full priv and cacheways code coverage
This commit is contained in:
commit
ed93cca5f4
2 changed files with 18 additions and 0 deletions
|
@ -451,6 +451,12 @@ coverage exclude -scope /dut/core/priv/priv/csr/csru/csru -linerange [GetLineNum
|
|||
coverage exclude -scope /dut/core/priv/priv/csr/counters/counters/cntr[1] -linerange [GetLineNum ${SRC}/privileged/csrc.sv "MTIME traps"] -item e 1 -fecexprrow 2 4
|
||||
coverage exclude -scope /dut/core/priv/priv/csr/counters/counters/cntr[1] -linerange [GetLineNum ${SRC}/privileged/csrc.sv "assign NextHPMCOUNTERM"] -item b 1
|
||||
|
||||
# attempting to write stimecmp with STCE=0 traps, causing CSRSWriteM to go low
|
||||
coverage exclude -scope /dut/core/priv/priv/csr/csrs/csrs -linerange [GetLineNum ${SRC}/privileged/csrs.sv "assign WriteSTIMECMPM"] -item e 1 -fecexprrow 5
|
||||
|
||||
# mode != m_mode and TVM = 1 causes a trap, causing CSRSWriteM to go low
|
||||
coverage exclude -scope /dut/core/priv/priv/csr/csrs/csrs -linerange [GetLineNum ${SRC}/privileged/csrs.sv "assign WriteSATPM"] -item e 1 -fecexprrow 5 8
|
||||
|
||||
####################
|
||||
# EBU
|
||||
####################
|
||||
|
|
|
@ -31,20 +31,32 @@ main:
|
|||
li t0, 0x80100770
|
||||
sd zero, 0(t0)
|
||||
sd zero, 1(t0)
|
||||
lr.d t1, (t0)
|
||||
addi t0, t0, 1
|
||||
sc.d t2, t1, (t0)
|
||||
|
||||
// way 1
|
||||
li t0, 0x80101770
|
||||
sd zero, 0(t0)
|
||||
sd zero, 1(t0)
|
||||
lr.d t1, (t0)
|
||||
addi t0, t0, 1
|
||||
sc.d t2, t1, (t0)
|
||||
|
||||
// way 2
|
||||
li t0, 0x80102770
|
||||
sd zero, 0(t0)
|
||||
sd zero, 1(t0)
|
||||
lr.d t1, (t0)
|
||||
addi t0, t0, 1
|
||||
sc.d t2, t1, (t0)
|
||||
|
||||
// way 3
|
||||
li t0, 0x80103770
|
||||
sd zero, 0(t0)
|
||||
sd zero, 1(t0)
|
||||
lr.d t1, (t0)
|
||||
addi t0, t0, 1
|
||||
sc.d t2, t1, (t0)
|
||||
|
||||
j done
|
||||
|
|
Loading…
Add table
Reference in a new issue