# now write out the csv files
for value, csv in svp64.items():
+ if value == '-':
+ 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('')
stream.write(f"{line}\n")
-if __name__ == '__main__':
+def main():
parser = argparse.ArgumentParser()
parser.add_argument("-f", "--format",
type=Format, choices=Format, default=Format.VHDL,
help="format to be used (binutils or VHDL)")
args = parser.parse_args()
process_csvs(args.format)
+
+
+if __name__ == '__main__':
+ # don't do anything other than call main() here, cuz this code is bypassed
+ # by the sv_analysis command created by setup.py
+ main()