Skip to content

Commit

Permalink
Merge pull request #3694 from ngc7331/upstream/fix-rvc-caddi4spn-ill
Browse files Browse the repository at this point in the history
Fix: c.addi4spn with imm=0 and rd'!=0 should be reserved
  • Loading branch information
jerryz123 authored Jan 28, 2025
2 parents ea7bb3a + b5f5a8e commit 8fa6290
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/rocket/RVC.scala
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,12 @@ class RVCDecoder(x: UInt, xLen: Int, fLen: Int, useAddiForMv: Boolean = false) {
}

def q0_ill = {
def allz = !(x(12, 2).orR)
def immz = !(x(12, 5).orR)
def fld = if (fLen >= 64) false.B else true.B
def flw32 = if (xLen == 64 || fLen >= 32) false.B else true.B
def fsd = if (fLen >= 64) false.B else true.B
def fsw32 = if (xLen == 64 || fLen >= 32) false.B else true.B
Seq(allz, fld, false.B, flw32, true.B, fsd, false.B, fsw32)
Seq(immz, fld, false.B, flw32, true.B, fsd, false.B, fsw32)
}

def q1_ill = {
Expand Down

0 comments on commit 8fa6290

Please sign in to comment.