mirror of
https://git.sr.ht/~kivikakk/niar
synced 2024-12-22 23:52:25 +00:00
cxxrtl: only write "opt" out when actually opt; write "noopt" otherwise.
This commit is contained in:
parent
359962b0fe
commit
dc26ba8c44
|
@ -139,6 +139,10 @@ def main(np: Project, args):
|
||||||
if args.optimize.opt_rtl:
|
if args.optimize.opt_rtl:
|
||||||
f.write("opt\n")
|
f.write("opt\n")
|
||||||
f.write(f"write_rtlil {_make_absolute(il_path)}.opt\n")
|
f.write(f"write_rtlil {_make_absolute(il_path)}.opt\n")
|
||||||
|
else:
|
||||||
|
# Allow apples-to-apples comparison of generated RTLIL by
|
||||||
|
# rewriting it with Yosys.
|
||||||
|
f.write(f"write_rtlil {_make_absolute(il_path)}.noopt\n")
|
||||||
f.write(f"write_cxxrtl -header {_make_absolute(cxxrtl_cc_path)}\n")
|
f.write(f"write_cxxrtl -header {_make_absolute(cxxrtl_cc_path)}\n")
|
||||||
|
|
||||||
def rtlil_to_cc():
|
def rtlil_to_cc():
|
||||||
|
|
Loading…
Reference in a new issue