From df82cbb17d36438fd88b7f8e73b92871933a7b45 Mon Sep 17 00:00:00 2001 From: Asherah Connor Date: Sat, 24 Aug 2024 22:24:28 +0300 Subject: [PATCH] cxxrtl: put externals separate to yosys script. --- niar/cxxrtl.py | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/niar/cxxrtl.py b/niar/cxxrtl.py index ca8fdf6..8cd0bf2 100644 --- a/niar/cxxrtl.py +++ b/niar/cxxrtl.py @@ -130,26 +130,29 @@ def main(np: Project, args): f.write(rtlil_text) cxxrtl_cc_path = np.path.build(subdir, f"{np.name}.cc") - yosys_script_path = _make_absolute(np.path.build(subdir, f"{np.name}.ys")) + yosys_script_path = _make_yosys_relative(np.path.build(subdir, f"{np.name}.ys")) black_boxes = {} + externals_paths = [] with open(yosys_script_path, "w") as f: for box_source in black_boxes.values(): f.write(f"read_rtlil <