convert branch pipeline to use msr/cia as immediates
[soc.git] / src / soc / fu / branch / br_input_record.py
1 from soc.fu.base_input_record import CompOpSubsetBase
2 from nmigen.hdl.rec import Layout
3
4 from soc.decoder.power_enums import MicrOp, Function
5
6
7 class CompBROpSubset(CompOpSubsetBase):
8 """CompBROpSubset
9
10 a copy of the relevant subset information from Decode2Execute1Type
11 needed for Branch operations. use with eq_from_execute1 (below) to
12 grab subsets.
13 """
14 def __init__(self, name=None):
15 layout = (('cia', 64), # PC "state"
16 ('insn_type', MicrOp),
17 ('fn_unit', Function),
18 ('insn', 32),
19 ('imm_data', Layout((("imm", 64), ("imm_ok", 1)))),
20 ('lk', 1),
21 ('is_32bit', 1),
22 )
23
24 super().__init__(layout, name=name)
25