Handle new changes in pseudocode parser
authorMichael Nolan <mtnolan2640@gmail.com>
Sun, 5 Apr 2020 19:26:20 +0000 (15:26 -0400)
committerMichael Nolan <mtnolan2640@gmail.com>
Sun, 5 Apr 2020 19:26:20 +0000 (15:26 -0400)
src/soc/decoder/isa/all.py
src/soc/decoder/isa/caller.py

index e6c5fb9b6e8f3614c8f0057b3f0b1a7c9d9354ab..b9be75f4c4e5d995823406ecfdeb2171110191e8 100644 (file)
@@ -8,12 +8,12 @@ from soc.decoder.isa.caller import ISACaller
 class ISA(ISACaller):
     def __init__(self, dec, regs):
         super().__init__(dec, regs)
-        self.fixedarith = fixedarith(dec, regs)
-        self.fixedload = fixedload(dec, regs)
-        self.fixedstore = fixedstore(dec, regs)
+        self.fixedarith = fixedarith()
+        self.fixedload = fixedload()
+        self.fixedstore = fixedstore()
 
         self.instrs = {
-            **self.fixedarith.instrs,
-            **self.fixedload.instrs,
-            **self.fixedstore.instrs,
+            **self.fixedarith.fixedarith_instrs,
+            **self.fixedload.fixedload_instrs,
+            **self.fixedstore.fixedstore_instrs,
         }
index c60bdfc877f5f484dac81f6c81e19d05e6a2d7fd..43e0271417e7f3df2410601b2cb8aad17760c601 100644 (file)
@@ -132,7 +132,8 @@ class ISACaller:
     def call(self, name):
         yield from self.prep_namespace()
 
-        function, read_regs, uninit_regs, write_regs = self.instrs[name]
+        function, read_regs, uninit_regs, write_regs, form \
+            = self.instrs[name]
         input_names = create_args(read_regs | uninit_regs)
         print(input_names)