1 from soc
.fu
.base_input_record
import CompOpSubsetBase
2 from openpower
.decoder
.power_enums
import MicrOp
, Function
, CryIn
3 from nmigen
.hdl
.rec
import Layout
6 class CompALUOpSubset(CompOpSubsetBase
):
9 a copy of the relevant subset information from Decode2Execute1Type
10 needed for ALU operations. use with eq_from_execute1 (below) to
13 def __init__(self
, name
=None):
14 layout
= (('insn_type', MicrOp
),
15 ('fn_unit', Function
),
16 ('imm_data', Layout((("data", 64), ("ok", 1)))),
17 ('rc', Layout((("rc", 1), ("ok", 1)))), # Data
18 ('oe', Layout((("oe", 1), ("ok", 1)))), # Data
23 ('input_carry', CryIn
),
27 ('data_len', 4), # actually used by ALU, in OP_EXTS
30 super().__init
__(layout
, name
=name
)