From: Luke Kenneth Casson Leighton Date: Thu, 30 Jun 2022 11:33:47 +0000 (+0100) Subject: do CSV isatables explicitly in sv_analysis.py X-Git-Tag: sv_maxu_works-initial~305 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dd5ddc52598c43e3943620bcb1641e60609b1497;p=openpower-isa.git do CSV isatables explicitly in sv_analysis.py for pandoc to pick up --- diff --git a/src/openpower/sv/sv_analysis.py b/src/openpower/sv/sv_analysis.py index 2522942c..b0acc256 100644 --- a/src/openpower/sv/sv_analysis.py +++ b/src/openpower/sv/sv_analysis.py @@ -707,16 +707,22 @@ def process_csvs(format): # now write out the csv files for value, csv in svp64.items(): if value == '-': + continue from time import sleep print ("WARNING, filename '-' should NOT exist. instrs missing") print ("TODO: fix this (and put in the bugreport number here)") sleep(2) - continue # print out svp64 tables by category print("## %s" % value) print('') - print('[[!table format=csv file="openpower/isatables/%s.csv"]]' % - value) + cols = csvcols + ['out2'] + print(tformat(cols)) + print(tformat([" - "] * (len(cols)))) + for d in csv: + row = [] + for k in cols: + row.append(d[k]) + print(tformat(row)) print('') #csvcols = ['insn', 'Ptype', 'Etype', '0', '1', '2', '3']