Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft: Add m-mode, s-mode CLIC interrupt testcases #436

Draft
wants to merge 9 commits into
base: dev
Choose a base branch
from
54 changes: 54 additions & 0 deletions coverage/rvi_smclic.cgf
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
clicdirect-01:
config:
- check ISA:=regex(.*I.*Zicsr.*Smclic.*); def rvtest_mtrap_routine=True
csr_comb:
mcause >> (xlen-1) == 1: 0

cliclevel-01:
config:
- check ISA:=regex(.*I.*Zicsr.*Smclic.*); def rvtest_mtrap_routine=True
csr_comb:
mcause >> (xlen-1) == 1: 0

cliclevel-02:
config:
- check ISA:=regex(.*I.*Zicsr.*Smclic.*); def rvtest_mtrap_routine=True
csr_comb:
mcause >> (xlen-1) == 1: 0

cliclevel-03:
config:
- check ISA:=regex(.*I.*Zicsr.*Smclic.*); def rvtest_mtrap_routine=True
csr_comb:
mcause >> (xlen-1) == 1: 0

cliclevel-04:
config:
- check ISA:=regex(.*I.*Zicsr.*Smclic.*); def rvtest_mtrap_routine=True
csr_comb:
mcause >> (xlen-1) == 1: 0

clicnomint-01:
config:
- check ISA:=regex(.*I.*Zicsr.*Smclic.*); def rvtest_mtrap_routine=True
csr_comb:
mcause >> (xlen-1) == 0: 0

clicnomint-02:
config:
- check ISA:=regex(.*I.*Zicsr.*Smclic.*); def rvtest_mtrap_routine=True
csr_comb:
mcause >> (xlen-1) == 0: 0

clicnomint-03:
config:
- check ISA:=regex(.*I.*Zicsr.*Smclic.*); def rvtest_mtrap_routine=True
csr_comb:
mcause >> (xlen-1) == 0: 0

clicwfi-01:
config:
- check ISA:=regex(.*I.*Zicsr.*Smclic.*); def rvtest_mtrap_routine=True
csr_comb:
mcause >> (xlen-1) == 1: 0

96 changes: 96 additions & 0 deletions coverage/rvi_ssclic.cgf
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
sclicdeleg-01:
config:
- check ISA:=regex(.*I.*Zicsr.*Ssclic.*); def rvtest_mtrap_routine=True
csr_comb:
mcause >> (xlen-1) == 1: 0

sclicmdisable-01:
config:
- check ISA:=regex(.*I.*Zicsr.*Ssclic.*); def rvtest_mtrap_routine=True
csr_comb:
mcause >> (xlen-1) == 0: 0

sclicmdisable-02:
config:
- check ISA:=regex(.*I.*Zicsr.*Ssclic.*); def rvtest_mtrap_routine=True
csr_comb:
mcause >> (xlen-1) == 0: 0

sclicmdisable-03:
config:
- check ISA:=regex(.*I.*Zicsr.*Ssclic.*); def rvtest_mtrap_routine=True
csr_comb:
mcause >> (xlen-1) == 0: 0

sclicnodeleg-01:
config:
- check ISA:=regex(.*I.*Zicsr.*Ssclic.*); def rvtest_mtrap_routine=True
csr_comb:
mcause >> (xlen-1) == 1: 0

sclicorder-01:
config:
- check ISA:=regex(.*I.*Zicsr.*Ssclic.*); def rvtest_mtrap_routine=True
csr_comb:
mcause >> (xlen-1) == 1: 0

sclicorder-02:
config:
- check ISA:=regex(.*I.*Zicsr.*Ssclic.*); def rvtest_mtrap_routine=True
csr_comb:
mcause >> (xlen-1) == 1: 0

sclicorder-03:
config:
- check ISA:=regex(.*I.*Zicsr.*Ssclic.*); def rvtest_mtrap_routine=True
csr_comb:
mcause >> (xlen-1) == 1: 0

sclicorder-04:
config:
- check ISA:=regex(.*I.*Zicsr.*Ssclic.*); def rvtest_mtrap_routine=True
csr_comb:
mcause >> (xlen-1) == 1: 0

sclicprivorder-01:
config:
- check ISA:=regex(.*I.*Zicsr.*Ssclic.*); def rvtest_mtrap_routine=True
csr_comb:
mcause >> (xlen-1) == 1: 0

sclicprivorder-02:
config:
- check ISA:=regex(.*I.*Zicsr.*Ssclic.*); def rvtest_mtrap_routine=True
csr_comb:
mcause >> (xlen-1) == 1: 0

sclicprivorder-03:
config:
- check ISA:=regex(.*I.*Zicsr.*Ssclic.*); def rvtest_mtrap_routine=True
csr_comb:
mcause >> (xlen-1) == 1: 0

sclicsdisable-01:
config:
- check ISA:=regex(.*I.*Zicsr.*Ssclic.*); def rvtest_mtrap_routine=True
csr_comb:
mcause >> (xlen-1) == 0: 0

sclicsdisable-02:
config:
- check ISA:=regex(.*I.*Zicsr.*Ssclic.*); def rvtest_mtrap_routine=True
csr_comb:
mcause >> (xlen-1) == 0: 0

sclicsdisable-03:
config:
- check ISA:=regex(.*I.*Zicsr.*Ssclic.*); def rvtest_mtrap_routine=True
csr_comb:
mcause >> (xlen-1) == 0: 0

sclicwfi-01:
config:
- check ISA:=regex(.*I.*Zicsr.*Ssclic.*); def rvtest_mtrap_routine=True
csr_comb:
mcause >> (xlen-1) == 1: 0

Loading