From 0aa8cb11e0b939f5a36ffd2e41ba0e706ec50e03 Mon Sep 17 00:00:00 2001 From: Charles Papon Date: Wed, 15 Mar 2023 17:43:44 +0800 Subject: [PATCH] BranchPlugin do not use casez anymore --- src/main/scala/vexriscv/plugin/BranchPlugin.scala | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/main/scala/vexriscv/plugin/BranchPlugin.scala b/src/main/scala/vexriscv/plugin/BranchPlugin.scala index 24d42fa..4ca33ca 100644 --- a/src/main/scala/vexriscv/plugin/BranchPlugin.scala +++ b/src/main/scala/vexriscv/plugin/BranchPlugin.scala @@ -190,7 +190,8 @@ class BranchPlugin(earlyBranch : Boolean, BranchCtrlEnum.B -> input(INSTRUCTION)(14 downto 12).mux( B"000" -> eq , B"001" -> !eq , - M"1-1" -> !less, + B"101" -> !less, + B"111" -> !less, default -> less ) ) @@ -251,7 +252,8 @@ class BranchPlugin(earlyBranch : Boolean, BranchCtrlEnum.B -> input(INSTRUCTION)(14 downto 12).mux( B"000" -> eq , B"001" -> !eq , - M"1-1" -> !less, + B"101" -> !less, + B"111" -> !less, default -> less ) ) @@ -333,7 +335,8 @@ class BranchPlugin(earlyBranch : Boolean, BranchCtrlEnum.B -> input(INSTRUCTION)(14 downto 12).mux( B"000" -> eq , B"001" -> !eq , - M"1-1" -> !less, + B"101" -> !less, + B"111" -> !less, default -> less ) )