You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 11, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 11, 2026. It is now read-only.
Hi, When I use yowasp to generate netlist with Teroshdl and vscode I get the following error. Please take a look at the attached file. Thank you netlist_error.log
First, absolute paths currently don't work on Windows. I haven't used TerosHDL but check if you can get it to pass relative paths to YoWASP. (This is still a bug in YoWASP, just one that might not be trivial to address.)
but this is what TerosHDL calls and doesn't work yowasp-yosys -p "read_verilog -sv ..\..\..\Documents\Projects\test\frontend\dsp\rtl\dsp_xcc_v2.v; proc; opt; write_json C:\Users\bhara\.teroshdl_yosys_output.json; stat"
Can you ask TerosHDL developers to contact me directly regarding this issue? (In this GitHub issue, by email, whichever is more convenient.) Then we can work something out.
In commit 4ae03d9 I've changed the path handling so that on Windows, absolute and relative paths with any components would work. (It also improves relative path handling on *nix.) Note that on Windows, paths must be delimited by forward slashes, /, rather than backward slashes, \\; this is due to the way WASI implements path handling.
You can install YoWASP Yosys built from this commit with:
Activity
whitequark commentedon Oct 5, 2021
Okay, there are several separate issues here:
shutil.rmtree(called fromtempfile.TemporaryDirectorydestructor) that happens only when the first issue is triggered. This is Python bug #35144, fixed in bpo-29982: Add "ignore_cleanup_errors" param to tempfile.TemporaryDirectory() python/cpython#24793 (not in a release yet).BharathS11 commentedon Oct 7, 2021
Hi, Thanks for responding. TerosHDL developers updated the tool to use relative path
The following commands work
but this is what TerosHDL calls and doesn't work
yowasp-yosys -p "read_verilog -sv ..\..\..\Documents\Projects\test\frontend\dsp\rtl\dsp_xcc_v2.v; proc; opt; write_json C:\Users\bhara\.teroshdl_yosys_output.json; stat"I think the doubles quotes cause the issue.
whitequark commentedon Oct 7, 2021
Can you ask TerosHDL developers to contact me directly regarding this issue? (In this GitHub issue, by email, whichever is more convenient.) Then we can work something out.
whitequark commentedon Oct 7, 2021
In commit 4ae03d9 I've changed the path handling so that on Windows, absolute and relative paths with any components would work. (It also improves relative path handling on *nix.) Note that on Windows, paths must be delimited by forward slashes,
/, rather than backward slashes,\\; this is due to the way WASI implements path handling.You can install YoWASP Yosys built from this commit with:
whitequark commentedon Oct 31, 2021
@BharathS11 Can you please confirm whether you were able to get the updated package to work?
whitequark commentedon Feb 6, 2023
Both of these paths should work since commit 4ae03d9, closing. Please comment if there are still any issues.
qarlosalberto commentedon May 20, 2024
I'm improving the support for
yowasp-yosysin TerosHDL. Currently, is it possible to use absolute paths in Windows and Linux? Thanks.whitequark commentedon May 20, 2024
Sure. You have to use
/instead of\though.qarlosalberto commentedon May 20, 2024
Great!!
I'm doing some tests. This command works fine:
But not this command:
There aren't errors. But in the second command
yowasp-yosysdoesn't create the file/tmp/hola.json. I am doing something wrong?whitequark commentedon May 20, 2024
The
/tmpsubtree is internally mounted to a temporary directory created just for this purpose, as it is unconditionally used by Yosys for e.g. running abc. The/tmpdirectory is hardcoded in wasi-libc sources so you'll need to pick a different temporary location.The same is true of
/share, for different reasons.qarlosalberto commentedon May 20, 2024
Ahh okok, thanks!! I will choose other path.