-
Notifications
You must be signed in to change notification settings - Fork 397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error executing run_vtr_flow with -start yosys #2152
Comments
One workaround to this is to specify a full path to the temp dir with |
I am also able to resolve this by replacing this line architecture_file_path = str(vtr.paths.scripts_path / architecture_file) with this: architecture_file_path = str(architecture_file) in this file: #23535b02bb3afde26daf9d3887606c9e21192311 |
There seems to be an issue with running the basic usage example for
run_vtr_flow
with-start yosys
.Expected Behaviour
In the docs, the example invocation for running VTR with Yosys as the front-end is:
./run_vtr_flow PATH_TO_VERILOG_FILE.v PATH_TO_ARCH_FILE.xml -start yosys
. This should run without error.Current Behaviour
Instead, when that command is invoked, Python produces a traceback to an error:
The issue appears to be in vtr_flow/scripts/python_libs/vtr/yosys/yosys.py. Beginning at line 190, there appear to be various paths with a name: *_full_path. I believe these are paths are for copying files into the
temp_dir
that gets created during this flow. However, appended to many of these paths is:vtr.paths.scripts_path
which I believe is a mistake. In my case, printingvtr.paths.scripts_path
out yields:/home/ept/tools/vtr-verilog-to-routing/vtr_flow/scripts
. So it looks like the script is trying to copy files into/home/ept/tools/vtr-verilog-to-routing/vtr_flow/scripts/temp
instead ofmy_invocation_dir/temp/
(wheremy_invocation_dir
is the directory where I invoked vtr_flow).Possible Solution
I think this should be as easy as removing
vtr.paths.scripts_path
from the beginning of the target paths. I would have created a PR, but wasn't sure I had this right.Steps to Reproduce
cd $VTR_ROOT
mkdir stuff
cd stuff
../vtr_flow/scripts/run_vtr_flow.py $VTR_ROOT/doc/src/quickstart/blink.v ../vtr_flow/arch/timing/EArch.xml -start yosys
Context
Your Environment
2f34458
The text was updated successfully, but these errors were encountered: