1 from soc
.fu
.base_input_record
import CompOpSubsetBase
2 from nmigen
.hdl
.rec
import Layout
4 from openpower
.decoder
.power_enums
import MicrOp
, Function
, CryIn
7 class CompSROpSubset(CompOpSubsetBase
):
10 a copy of the relevant subset information from Decode2Execute1Type
11 needed for ALU operations. use with eq_from_execute1 (below) to
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)))),
19 ('oe', Layout((("oe", 1), ("ok", 1)))),
22 ('input_carry', CryIn
),
31 super().__init
__(layout
, name
=name
)