Define and initialise the mode variable, to be used later on
authorCesar Strauss <cestrauss@gmail.com>
Tue, 16 Mar 2021 00:12:11 +0000 (21:12 -0300)
committerCesar Strauss <cestrauss@gmail.com>
Tue, 16 Mar 2021 00:12:11 +0000 (21:12 -0300)
src/soc/decoder/power_svp64_rm.py

index 5c2b497e5dba7e973cb8351662a4b330af6e6a4d..ed1ed301a32d6e1961f8f43b9063f0047b4ca715 100644 (file)
@@ -81,6 +81,7 @@ class SVP64RMModeDecode(Elaboratable):
     def elaborate(self, platform):
         m = Module()
         comb = m.d.comb
+        mode = self.rm_in.mode
 
         # decode pieces of mode
         is_ldst = Signal()