mirror of
https://github.com/openhwgroup/cvw.git
synced 2025-04-19 03:24:50 -04:00
commit
2ad4f20900
2 changed files with 8 additions and 0 deletions
|
@ -439,6 +439,12 @@ coverage exclude -scope /dut/core/hzu -linerange [GetLineNum ${SRC}/hazard/hazar
|
|||
# Instruction Misaligned never asserted because compresssed instructions are accepted
|
||||
coverage exclude -scope /dut/core/priv/priv/trap -linerange [GetLineNum ${SRC}/privileged/trap.sv "assign ExceptionM"] -item e 1 -fecexprrow 2
|
||||
|
||||
# Attempting to access fflags, frm, fcsr with mstatus.FS = 0 traps, so checking for (STATUS_FS != 2'b00)
|
||||
# before enabling writes to these CSRs is redundant and uncoverable
|
||||
coverage exclude -scope /dut/core/priv/priv/csr/csru/csru -linerange [GetLineNum ${SRC}/privileged/csru.sv "assign WriteFRMM"] -item e 1 -fecexprrow 3
|
||||
coverage exclude -scope /dut/core/priv/priv/csr/csru/csru -linerange [GetLineNum ${SRC}/privileged/csru.sv "assign WriteFFLAGSM"] -item e 1 -fecexprrow 3
|
||||
|
||||
|
||||
####################
|
||||
# EBU
|
||||
####################
|
||||
|
|
|
@ -51,6 +51,8 @@ module csru import cvw::*; #(parameter cvw_t P) (
|
|||
logic WriteFFLAGSM;
|
||||
|
||||
// Write enables
|
||||
// Explicitly checking STATUS_FS != 0 is redundant since the instruction traps otherwise,
|
||||
// causing CSRWriteM to go low, but it is left here for safety
|
||||
assign WriteFRMM = CSRUWriteM & (STATUS_FS != 2'b00) & (CSRAdrM == FRM | CSRAdrM == FCSR);
|
||||
assign WriteFFLAGSM = CSRUWriteM & (STATUS_FS != 2'b00) & (CSRAdrM == FFLAGS | CSRAdrM == FCSR);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue