3ceab14a1d69704b638f8a54ab323958b937727a
1 from ieee754
.fpcommon
.getop
import FPPipeContext
2 from nmutil
.dynamicpipe
import SimpleHandshakeRedir
7 def __init__(self
, pspec
):
8 self
.ctx
= FPPipeContext(pspec
)
9 self
.muxid
= self
.ctx
.muxid
15 return [self
.ctx
.eq(i
.ctx
)]
18 return self
.ctx
.ports()
20 # hmmm there has to be a better way than this
21 def get_rec_width(rec
):
23 # Setup random inputs for dut.op
31 def __init__(self
, id_wid
):
32 self
.pipekls
= SimpleHandshakeRedir
34 self
.opkls
= lambda _
: self
.opsubsetkls(name
="op")
35 self
.op_wid
= get_rec_width(self
.opkls(None)) # hmm..