1 from nmigen
import Signal
, Const
2 from ieee754
.fpcommon
.getop
import FPPipeContext
3 from soc
.alu
.pipe_data
import IntegerData
6 class CRInputData(IntegerData
):
7 def __init__(self
, pspec
):
8 super().__init
__(pspec
)
9 self
.a
= Signal(64, reset_less
=True) # RA
10 self
.cr
= Signal(64, reset_less
=True) # CR in
13 yield from super().__iter
__()
19 return lst
+ [self
.a
.eq(i
.a
),
22 class CROutputData(IntegerData
):
23 def __init__(self
, pspec
):
24 super().__init
__(pspec
)
25 self
.o
= Signal(64, reset_less
=True) # RA
26 self
.cr
= Signal(64, reset_less
=True) # CR in
29 yield from super().__iter
__()
35 return lst
+ [self
.o
.eq(i
.o
),