forgot to clean up workspace in source
[soc.git] / src / soc / fu / trap / trap_input_record.py
1 from soc.fu.base_input_record import CompOpSubsetBase
2 from soc.decoder.power_enums import (MicrOp, Function)
3
4
5 class CompTrapOpSubset(CompOpSubsetBase):
6 """CompTrapOpSubset
7
8 a copy of the relevant subset information from Decode2Execute1Type
9 needed for TRAP operations. use with eq_from_execute1 (below) to
10 grab subsets.
11 """
12 def __init__(self, name=None):
13 layout = (('insn_type', MicrOp),
14 ('fn_unit', Function),
15 ('insn', 32),
16 ('is_32bit', 1),
17 ('traptype', 5), # see trap main_stage.py and PowerDecoder2
18 ('trapaddr', 13),
19 )
20
21 super().__init__(layout, name=name)
22