Skip to content

Commit 01616ed

Browse files
committed
feat: add branch info io def
1 parent 8c6608e commit 01616ed

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)