aboutsummaryrefslogtreecommitdiffstats
path: root/passes/sat
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2019-06-21 17:44:21 -0700
committerEddie Hung <eddie@fpgeh.com>2019-06-21 17:44:21 -0700
commit6c2cb519965ac9b4057a90cd46f474c092967be2 (patch)
tree45f545af7700a244f64a0e42f96fae37df9f2914 /passes/sat
parent301e065aeee2d6a4b5009ebdc50028bafd3aac5d (diff)
parent1abe93e48d8bb78cd0753d46dfbe1885a1e803eb (diff)
downloadyosys-6c2cb519965ac9b4057a90cd46f474c092967be2.tar.gz
yosys-6c2cb519965ac9b4057a90cd46f474c092967be2.tar.bz2
yosys-6c2cb519965ac9b4057a90cd46f474c092967be2.zip
Merge remote-tracking branch 'origin/xaig' into xc7mux
Diffstat (limited to 'passes/sat')
-rw-r--r--passes/sat/sat.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/passes/sat/sat.cc b/passes/sat/sat.cc
index cbba738f0..e4654d835 100644
--- a/passes/sat/sat.cc
+++ b/passes/sat/sat.cc
@@ -659,6 +659,7 @@ struct SatHelper
void dump_model_to_vcd(std::string vcd_file_name)
{
+ rewrite_filename(vcd_file_name);
FILE *f = fopen(vcd_file_name.c_str(), "w");
if (!f)
log_cmd_error("Can't open output file `%s' for writing: %s\n", vcd_file_name.c_str(), strerror(errno));
@@ -761,6 +762,7 @@ struct SatHelper
void dump_model_to_json(std::string json_file_name)
{
+ rewrite_filename(json_file_name);
FILE *f = fopen(json_file_name.c_str(), "w");
if (!f)
log_cmd_error("Can't open output file `%s' for writing: %s\n", json_file_name.c_str(), strerror(errno));
@@ -1505,6 +1507,7 @@ struct SatPass : public Pass {
{
if (!cnf_file_name.empty())
{
+ rewrite_filename(cnf_file_name);
FILE *f = fopen(cnf_file_name.c_str(), "w");
if (!f)
log_cmd_error("Can't open output file `%s' for writing: %s\n", cnf_file_name.c_str(), strerror(errno));
@@ -1608,6 +1611,7 @@ struct SatPass : public Pass {
if (!cnf_file_name.empty())
{
+ rewrite_filename(cnf_file_name);
FILE *f = fopen(cnf_file_name.c_str(), "w");
if (!f)
log_cmd_error("Can't open output file `%s' for writing: %s\n", cnf_file_name.c_str(), strerror(errno));