BranchPlugin do not use casez anymore

This commit is contained in:
Charles Papon 2023-03-15 17:43:44 +08:00
parent 13061b8b2e
commit 0aa8cb11e0
1 changed files with 6 additions and 3 deletions

View File

@ -190,7 +190,8 @@ class BranchPlugin(earlyBranch : Boolean,
BranchCtrlEnum.B -> input(INSTRUCTION)(14 downto 12).mux( BranchCtrlEnum.B -> input(INSTRUCTION)(14 downto 12).mux(
B"000" -> eq , B"000" -> eq ,
B"001" -> !eq , B"001" -> !eq ,
M"1-1" -> !less, B"101" -> !less,
B"111" -> !less,
default -> less default -> less
) )
) )
@ -251,7 +252,8 @@ class BranchPlugin(earlyBranch : Boolean,
BranchCtrlEnum.B -> input(INSTRUCTION)(14 downto 12).mux( BranchCtrlEnum.B -> input(INSTRUCTION)(14 downto 12).mux(
B"000" -> eq , B"000" -> eq ,
B"001" -> !eq , B"001" -> !eq ,
M"1-1" -> !less, B"101" -> !less,
B"111" -> !less,
default -> less default -> less
) )
) )
@ -333,7 +335,8 @@ class BranchPlugin(earlyBranch : Boolean,
BranchCtrlEnum.B -> input(INSTRUCTION)(14 downto 12).mux( BranchCtrlEnum.B -> input(INSTRUCTION)(14 downto 12).mux(
B"000" -> eq , B"000" -> eq ,
B"001" -> !eq , B"001" -> !eq ,
M"1-1" -> !less, B"101" -> !less,
B"111" -> !less,
default -> less default -> less
) )
) )