From 585b496f7e46e424ff3034f7bb2c9bb8d50d5273 Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Wed, 1 Dec 2021 16:42:13 -0800 Subject: [PATCH] format code --- setup.py | 4 ++-- src/openpower/sv/sv_analysis.py | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/setup.py b/setup.py index 5de8b0c4..8220279c 100644 --- a/setup.py +++ b/setup.py @@ -20,7 +20,7 @@ install_requires = [ # https://git.libre-soc.org/?p=nmutil.git 'libresoc-nmutil', # these should be fine - 'pygdbmi', # gdb machine interfave + 'pygdbmi', # gdb machine interfave 'ply', # python lex yacc. very cool 'astor', # python AST manipulation ] @@ -56,7 +56,7 @@ setup( install_requires=install_requires, tests_require=test_requires, test_suite='nose.collector', - entry_points = { + entry_points={ 'console_scripts': [ 'pywriter=openpower.decoder.pseudo.pywriter:pywriter', 'pyfnwriter=openpower.decoder.pseudo.pyfnwriter:pyfnwriter', diff --git a/src/openpower/sv/sv_analysis.py b/src/openpower/sv/sv_analysis.py index 25ca81d2..f0a6601d 100644 --- a/src/openpower/sv/sv_analysis.py +++ b/src/openpower/sv/sv_analysis.py @@ -764,6 +764,7 @@ def output(format, svt, csvcols, insns, csvs_svp64, stream): 'minor_63l': 511, 'minor_63h': 16, } + def svp64_canonicalize(item): (value, csv) = item value = value.lower().replace("-", "_") @@ -780,7 +781,7 @@ def output(format, svt, csvcols, insns, csvs_svp64, stream): # definitions sv_cols = ['sv_in1', 'sv_in2', 'sv_in3', 'sv_out', 'sv_out2', - 'sv_cr_in', 'sv_cr_out'] + 'sv_cr_in', 'sv_cr_out'] fullcols = csvcols + sv_cols entries_svp64 = defaultdict(list) @@ -819,7 +820,7 @@ def output(format, svt, csvcols, insns, csvs_svp64, stream): if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument("-f", "--format", - type=Format, choices=Format, default=Format.VHDL, - help="format to be used (binutils or VHDL)") + type=Format, choices=Format, default=Format.VHDL, + help="format to be used (binutils or VHDL)") args = parser.parse_args() process_csvs(args.format) -- 2.30.2