-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Labels
Description
Version
Yosys 0.51+125 (git sha1 cc8fd3e, g++ 12.2.0-14 -fPIC -O3)
On which OS did this happen?
Linux
Reproduction Steps
- Run yosys on non-existent files:
yosys nonexistent.v
Expected Behavior
Yosys reports the files as missing / non-existent.
Actual Behavior
Yosys doesn't report missing files. It happily concludes the parsing with Successfully finished Verilog frontend. despite the file not being there.
$ ls nonexistent.v
ls: cannot access 'nonexistent.v': No such file or directory
$ yosys nonexistent.v
/----------------------------------------------------------------------------\
| yosys -- Yosys Open SYnthesis Suite |
| Copyright (C) 2012 - 2025 Claire Xenia Wolf <[email protected]> |
| Distributed under an ISC-like license, type "license" to see terms |
\----------------------------------------------------------------------------/
Yosys 0.51+125 (git sha1 cc8fd3efc, g++ 12.2.0-14 -fPIC -O3)
-- Parsing `nonexistent.v' using frontend ` -vlog2k' --
1. Executing Verilog-2005 frontend: nonexistent.v
Parsing Verilog input from `nonexistent.v' to AST representation.
Successfully finished Verilog frontend.
yosys>
exit
End of script. Logfile hash: 277a437cbe, CPU: user 0.00s system 0.01s, MEM: 15.56 MB peak
Yosys 0.51+125 (git sha1 cc8fd3efc, g++ 12.2.0-14 -fPIC -O3)
Time spent: 93% 2x read_verilog (0 sec), 6% 1x read (0 sec)