add option to create microwatt-formatted VHDL
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 18 Mar 2021 11:21:05 +0000 (11:21 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 18 Mar 2021 11:21:05 +0000 (11:21 +0000)
openpower/sv_analysis.py

index 5e47025b93815813728fca0687a8a7b57ff80d3a..aa59afb3d4e3afb3405f73333e0e2d69ff124a0a 100644 (file)
@@ -215,6 +215,7 @@ def process_csvs():
                 continue
             if insn_name.startswith('bc') or 'rfid' in insn_name:
                 continue
+
             insns[insn_name] = row # accumulate csv data by instruction
             insn_to_csv[insn_name] = csvname_ # CSV file name by instruction
             dkey = create_key(row)
@@ -571,8 +572,10 @@ def process_csvs():
         #csvcols = ['insn', 'Ptype', 'Etype', '0', '1', '2', '3']
         write_csv("%s.csv" % value, csv, csvcols)
 
+    # okaaay, now we re-read them back in for producing microwatt SV
+
     # get SVP64 augmented CSV files
-    svt = SVP64RM()
+    svt = SVP64RM(microwatt_format=True)
     # Expand that (all .csv files)
     pth = find_wiki_file("*.csv")