We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c6608e commit 01616edCopy full SHA for 01616ed
rtl/tc_l2/src/main/scala/port/BRANCH.scala
@@ -0,0 +1,15 @@
1
+package treecorel2
2
+
3
+import chisel3._
4
+import chisel3.util._
5
6
+import treecorel2.common.ConstVal
7
8
+class BRANCHIO extends Bundle {
9
+ val branch = Output(Bool()) // prev inst is a b/j
10
+ val jump = Output(Bool()) // is 'jal' or 'jalr'
11
+ val taken = Output(Bool()) // is prev branch taken
12
+ val idx = Output(UInt(ConstVal.GHRLen.W)) // prev idx of PHT
13
+ val pc = Output(UInt(ConstVal.AddrLen.W)) // prev instruction PC
14
+ val tgt = Output(UInt(ConstVal.AddrLen.W)) // prev branch tgt
15
+}
0 commit comments