start adding svp64 enums
[soc.git] / src / soc / decoder / power_svp64.py
index 32498f954566d25cde49a688ad0bcac248067ba7..8bb896afcd11664edba15c42ffd93e6980df6557 100644 (file)
@@ -128,6 +128,13 @@ class SVP64RM:
             cr_out = entry['CR out']
             entry['sv_cr_out'] = svp64_dest.get(cr_out, None)
 
+            # more enum-friendly Ptype names.  should have done this in
+            # sv_analysis.py, oh well
+            if entry['SV_Ptype'] == '1P':
+                if entry['SV_Ptype'] = 'P1'
+            if entry['SV_Ptype'] == '2P':
+                if entry['SV_Ptype'] = 'P2'
+
         return v30b
 
 if __name__ == '__main__':