Skip to content

Commit

Permalink
Revert "RVV 0.9: Tighten fractional LMUL-SEW constraint (#2484)"
Browse files Browse the repository at this point in the history
This reverts commit 6249be3.
  • Loading branch information
aswaterman committed Jun 8, 2020
1 parent ab3dcdc commit 822d177
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/scala/rocket/CSR.scala
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,8 @@ class VType(implicit p: Parameters) extends CoreBundle {
def max_vsew = log2Ceil(eLen/8)
def max_vlmul = (1 << vlmul_mag.getWidth) - 1

def lmul_ok: Bool = Mux(this.vlmul_sign, this.vlmul_mag =/= 0 && ~this.vlmul_mag < max_vsew - this.vsew, true.B)
def lmul_ok: Bool = (!this.vlmul_sign || this.vlmul_mag =/= 0) &&
(this.vsew +& Cat(this.vlmul_sign, ~this.vlmul_mag) <= maxVLMax.log2)

def minVLMax: Int = ((maxVLMax / eLen) >> ((1 << vlmul_mag.getWidth) - 1)) max 1

Expand Down

0 comments on commit 822d177

Please sign in to comment.