diff --git a/niar/cxxrtl.py b/niar/cxxrtl.py index c3e3cfd..39352f7 100644 --- a/niar/cxxrtl.py +++ b/niar/cxxrtl.py @@ -105,24 +105,45 @@ def main(np: Project, args): cr = CommandRunner(force=args.force) with logtime(logging.DEBUG, "elaboration"): - il_path = np.path.build(f"{np.name}.il") + il_path = np.path.build(f"{np.name}.cc.il") rtlil_text = rtlil.convert(design, name=np.name, platform=platform) with open(il_path, "w") as f: f.write(rtlil_text) cxxrtl_cc_path = np.path.build(f"{np.name}.cc") - yosys_script_path = _make_absolute(np.path.build(f"{np.name}-cxxrtl.ys")) + yosys_script_path = _make_absolute(np.path.build(f"{np.name}.cc.ys")) black_boxes = {} with open(yosys_script_path, "w") as f: for box_source in black_boxes.values(): f.write(f"read_rtlil <