From 118d244796255108881cf579054a29412ccdba2e Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 5 Jul 2019 17:22:30 +0100 Subject: [PATCH] example of how to use opkls to create something more than op=Signal() --- src/ieee754/fpdiv/pipeline.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/ieee754/fpdiv/pipeline.py b/src/ieee754/fpdiv/pipeline.py index 58fa8e9b..01aa462b 100644 --- a/src/ieee754/fpdiv/pipeline.py +++ b/src/ieee754/fpdiv/pipeline.py @@ -135,7 +135,13 @@ class FPDIVMuxInOut(ReservationStations): """ def __init__(self, width, num_rows, op_wid=0): self.id_wid = num_bits(width) - self.pspec = {'width': width, 'id_wid': self.id_wid, 'op_wid': op_wid} + self.pspec = {) + self.pspec['width'] = width + self.pspec['id_wid'] = self.id_wid + self.pspec['op_wid'] = op_wid + # XXX TODO - a class (or function?) that takes the pspec (right here) + # and creates... "something". that "something" MUST have an eq function + # self.pspec['opkls'] = DivPipeCoreOperation self.alu = FPDIVBasePipe(self.pspec) ReservationStations.__init__(self, num_rows) -- 2.30.2