modules: synth: use UTILS_PATH env var for split_inouts.py path
Signed-off-by: Paweł Czarnecki <pczarnecki@antmicro.com>
This commit is contained in:
parent
7b7fa8ae3c
commit
e4f0639f8d
|
@ -97,12 +97,11 @@ class SynthModule(Module):
|
||||||
return mapping
|
return mapping
|
||||||
|
|
||||||
def execute(self, ctx: ModuleContext):
|
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) \
|
tcl_env = yosys_setup_tcl_env(ctx.values.yosys_tcl_env) \
|
||||||
if ctx.values.yosys_tcl_env else {}
|
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:
|
if get_verbosity_level() >= 2:
|
||||||
yield f'Synthesizing sources: {ctx.takes.sources}...'
|
yield f'Synthesizing sources: {ctx.takes.sources}...'
|
||||||
|
|
Loading…
Reference in New Issue