1
0
Fork 0

Rationalize ALU function encoding

MULHSU and MULHU should match their ISA funct3 encodings to slightly
reduce HW cost.
This commit is contained in:
Andrew Waterman 2018-02-05 17:50:01 -08:00
parent c1eb795aba
commit 69441930b5
1 changed files with 2 additions and 2 deletions

View File

@ -33,8 +33,8 @@ object ALU
def FN_MUL = FN_ADD
def FN_MULH = FN_SL
def FN_MULHSU = FN_SLT
def FN_MULHU = FN_SLTU
def FN_MULHSU = FN_SEQ
def FN_MULHU = FN_SNE
def isMulFN(fn: UInt, cmp: UInt) = fn(1,0) === cmp(1,0)
def isSub(cmd: UInt) = cmd(3)