From e4f0639f8d2e68ee11f948ececdbd85f7d0071d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Czarnecki?= Date: Tue, 14 Jun 2022 16:55:39 +0200 Subject: [PATCH] modules: synth: use UTILS_PATH env var for split_inouts.py path MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Paweł Czarnecki --- f4pga/common_modules/synth.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/f4pga/common_modules/synth.py b/f4pga/common_modules/synth.py index b3d1943..9069fcf 100755 --- a/f4pga/common_modules/synth.py +++ b/f4pga/common_modules/synth.py @@ -97,12 +97,11 @@ class SynthModule(Module): return mapping def execute(self, ctx: ModuleContext): - split_inouts = os.path.join(ctx.share, 'scripts/split_inouts.py') - synth_tcl = os.path.join(ctx.values.tcl_scripts, 'synth.tcl') - conv_tcl = os.path.join(ctx.values.tcl_scripts, 'conv.tcl') - tcl_env = yosys_setup_tcl_env(ctx.values.yosys_tcl_env) \ if ctx.values.yosys_tcl_env else {} + split_inouts = os.path.join(tcl_env["UTILS_PATH"], 'split_inouts.py') + synth_tcl = os.path.join(ctx.values.tcl_scripts, 'synth.tcl') + conv_tcl = os.path.join(ctx.values.tcl_scripts, 'conv.tcl') if get_verbosity_level() >= 2: yield f'Synthesizing sources: {ctx.takes.sources}...'