example of how to use opkls to create something more than op=Signal()
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 5 Jul 2019 16:22:30 +0000 (17:22 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 5 Jul 2019 16:22:30 +0000 (17:22 +0100)
src/ieee754/fpdiv/pipeline.py

index 58fa8e9b0df0e73e64799d7d1ce57dd07d78ddf8..01aa462bde1306e85efb8aeeccead739cb951fc7 100644 (file)
@@ -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)