move over to from openpower imports
[soc.git] / src / soc / fu / mul / mul_input_record.py
1 from soc.fu.base_input_record import CompOpSubsetBase
2 from nmigen.hdl.rec import Layout
3
4 from openpower.decoder.power_enums import MicrOp, Function, CryIn
5
6
7 class CompMULOpSubset(CompOpSubsetBase):
8 """CompMULOpSubset
9
10 a copy of the relevant subset information from Decode2Execute1Type
11 needed for MUL operations. use with eq_from_execute1 (below) to
12 grab subsets.
13 """
14 def __init__(self, name=None):
15 layout = (('insn_type', MicrOp),
16 ('fn_unit', Function),
17 ('imm_data', Layout((("data", 64), ("ok", 1)))),
18 ('rc', Layout((("rc", 1), ("ok", 1)))), # Data
19 ('oe', Layout((("oe", 1), ("ok", 1)))), # Data
20 ('write_cr0', 1),
21 ('is_32bit', 1),
22 ('is_signed', 1),
23 ('insn', 32),
24 )
25
26 super().__init__(layout, name=name)
27