2b240263ab0cc9badbbeaa4e180cfba382c7bdb2
1 from nmigen
import Signal
, Const
2 from ieee754
.fpcommon
.getop
import FPPipeContext
3 from soc
.fu
.alu
.pipe_data
import IntegerData
6 class CRInputData(IntegerData
):
7 regspec
= [('INT', 'a', '0:63'),
9 def __init__(self
, pspec
):
10 super().__init
__(pspec
)
11 self
.a
= Signal(64, reset_less
=True) # RA
12 self
.cr
= Signal(32, reset_less
=True) # CR in
15 yield from super().__iter
__()
21 return lst
+ [self
.a
.eq(i
.a
),
24 class CROutputData(IntegerData
):
25 regspec
= [('INT', 'o', '0:63'),
27 def __init__(self
, pspec
):
28 super().__init
__(pspec
)
29 self
.o
= Signal(64, reset_less
=True) # RA
30 self
.cr
= Signal(32, reset_less
=True) # CR in
33 yield from super().__iter
__()
39 return lst
+ [self
.o
.eq(i
.o
),