'console_scripts': [
'pywriter=openpower.decoder.pseudo.pywriter:pywriter',
'pyfnwriter=openpower.decoder.pseudo.pyfnwriter:pyfnwriter',
- 'sv_analysis=openpower.sv.sv_analysis:process_csvs',
+ 'sv_analysis=openpower.sv.sv_analysis:main',
'pypowersim=openpower.decoder.isa.pypowersim:run_simulation',
'pysvp64asm=openpower.sv.trans.svp64:asm_process'
]
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()