diff options
author | Ben Widawsky <ben@bwidawsk.net> | 2019-06-20 10:27:59 -0700 |
---|---|---|
committer | Ben Widawsky <ben@bwidawsk.net> | 2019-06-20 10:27:59 -0700 |
commit | 8767ec3fbdc0986854107de9cf178953ef09f1db (patch) | |
tree | bf0a7b57648b28d715369a7f4cee4b926b3a38ac /kernel | |
parent | 3b1e5264d8e333937fa9c06075b092bfd27be317 (diff) | |
download | yosys-8767ec3fbdc0986854107de9cf178953ef09f1db.tar.gz yosys-8767ec3fbdc0986854107de9cf178953ef09f1db.tar.bz2 yosys-8767ec3fbdc0986854107de9cf178953ef09f1db.zip |
Add a few more filename rewrites
This now allows a full pipeline to work, something such as:
yosys -p "synth_ecp5 -json ~/work/fpga/prjtrellis/examples/ecp5_evn/blinky.v"
Otherwise, you will get something along the lines of:
ERROR: Can't open output file `~/work/fpga/prjtrellis/examples/ecp5_evn/blinky.v' for writing: No such file or directory
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/register.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/register.cc b/kernel/register.cc index 71eb6b187..26da96b95 100644 --- a/kernel/register.cc +++ b/kernel/register.cc @@ -545,6 +545,7 @@ void Backend::extra_args(std::ostream *&f, std::string &filename, std::vector<st } filename = arg; + rewrite_filename(filename); std::ofstream *ff = new std::ofstream; ff->open(filename.c_str(), std::ofstream::trunc); yosys_output_files.insert(filename); |