}[self](lines)
-def process_csvs(format):
+def read_csvs():
csvs = {}
csvs_svp64 = {}
bykey = {}
insns = {} # dictionary of CSV row, by instruction
insn_to_csv = {}
- print("# Draft SVP64 Power ISA register 'profile's")
- print('')
- print("this page is auto-generated, do not edit")
- print("created by http://libre-soc.org/openpower/sv_analysis.py")
- print('')
-
# Expand that (all .csv files)
pth = find_wiki_file("*.csv")
primarykeys = list(primarykeys)
primarykeys.sort()
+ return (csvs, csvs_svp64, primarykeys, bykey, insn_to_csv, insns,
+ dictkeys, immediates)
+
+
+def process_csvs(format):
+
+ print("# Draft SVP64 Power ISA register 'profile's")
+ print('')
+ print("this page is auto-generated, do not edit")
+ print("created by http://libre-soc.org/openpower/sv_analysis.py")
+ print('')
+
+ (csvs, csvs_svp64, primarykeys, bykey, insn_to_csv, insns,
+ dictkeys, immediates) = read_csvs()
+
# mapping to old SVPrefix "Forms"
mapsto = {'3R-1W-CRo': 'RM-1P-3S1D',
'2R-1W-CRio': 'RM-1P-2S1D',