document subkls in CompUnitRecord
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 21 May 2020 17:57:59 +0000 (18:57 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 21 May 2020 17:57:59 +0000 (18:57 +0100)
src/soc/experiment/compalu_multi.py

index 80148cb293b9d9a91a977423f06bc0a4d3da36c8..aa32022c987d07d58c3169b84432b20188ff8c83 100644 (file)
@@ -63,11 +63,14 @@ class CompUnitRecord(RecordObject):
 
     LDSTCompUnitRecord should derive from this class and add the
     additional signals it requires
+
+    :subkls:      the class (not an instance) needed to construct the opcode
     """
     def __init__(self, subkls, rwid, n_src, n_dst, name=None):
         RecordObject.__init__(self, name)
         self._n_src, self._n_dst = n_src, n_dst
         self._rwid = rwid
+        self._subkls = subkls
 
         src = []
         for i in range(n_src):