bb248c23ba9a538f9554ea9b87e171231ffdeb7a
1 from nmigen
import Signal
, Const
2 from ieee754
.fpcommon
.getop
import FPPipeContext
7 def __init__(self
, pspec
):
8 self
.ctx
= FPPipeContext(pspec
)
9 self
.muxid
= self
.ctx
.muxid
15 return [self
.ctx
.eq(i
.ctx
)]
18 class CRInputData(IntegerData
):
19 def __init__(self
, pspec
):
20 super().__init
__(pspec
)
21 self
.a
= Signal(64, reset_less
=True) # RA
22 self
.cr
= Signal(64, reset_less
=True) # CR in
25 yield from super().__iter
__()
31 return lst
+ [self
.a
.eq(i
.a
),
34 class CROutputData(IntegerData
):
35 def __init__(self
, pspec
):
36 super().__init
__(pspec
)
37 self
.o
= Signal(64, reset_less
=True) # RA
38 self
.cr
= Signal(64, reset_less
=True) # CR in
41 yield from super().__iter
__()
47 return lst
+ [self
.o
.eq(i
.o
),