mirror of
https://github.com/openhwgroup/cve2.git
synced 2025-04-23 13:37:20 -04:00
Comment on RV32E register address check in compressed decoder
It is not necessary to do this check in the compressed decoder. If a compressed instruction in RV32E tries to access any register x16 - x31, the regular decoder triggers an illegal instruction exception and the controller writes the actual faulting (compressed) instruction to `mtval`.
This commit is contained in:
parent
5093e0a0d2
commit
73e94fb6f8
1 changed files with 8 additions and 0 deletions
|
@ -69,6 +69,10 @@ module ibex_compressed_decoder (
|
|||
end
|
||||
|
||||
// C1
|
||||
//
|
||||
// Register address checks for RV32E are performed in the regular instruction decoder.
|
||||
// If this check fails, an illegal instruction exception is triggered and the controller
|
||||
// writes the actual faulting instruction to mtval.
|
||||
2'b01: begin
|
||||
unique case (instr_i[15:13])
|
||||
3'b000: begin
|
||||
|
@ -187,6 +191,10 @@ module ibex_compressed_decoder (
|
|||
end
|
||||
|
||||
// C2
|
||||
//
|
||||
// Register address checks for RV32E are performed in the regular instruction decoder.
|
||||
// If this check fails, an illegal instruction exception is triggered and the controller
|
||||
// writes the actual faulting instruction to mtval.
|
||||
2'b10: begin
|
||||
unique case (instr_i[15:13])
|
||||
3'b000: begin
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue