From: Luke Kenneth Casson Leighton Date: Fri, 5 Jul 2019 16:22:30 +0000 (+0100) Subject: example of how to use opkls to create something more than op=Signal() X-Git-Tag: ls180-24jan2020~914 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=118d244796255108881cf579054a29412ccdba2e;p=ieee754fpu.git example of how to use opkls to create something more than op=Signal() --- 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)