mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-24 01:25:33 +00:00
Merge remote-tracking branch 'origin/master' into xaig_dff
This commit is contained in:
commit
f3e150d9a5
7 changed files with 12 additions and 9 deletions
|
@ -777,7 +777,7 @@ struct AigerBackend : public Backend {
|
|||
}
|
||||
break;
|
||||
}
|
||||
extra_args(f, filename, args, argidx);
|
||||
extra_args(f, filename, args, argidx, !ascii_mode);
|
||||
|
||||
Module *top_module = design->top_module();
|
||||
|
||||
|
|
|
@ -1143,7 +1143,7 @@ struct XAigerBackend : public Backend {
|
|||
}
|
||||
break;
|
||||
}
|
||||
extra_args(f, filename, args, argidx);
|
||||
extra_args(f, filename, args, argidx, !ascii_mode);
|
||||
|
||||
Module *top_module = design->top_module();
|
||||
|
||||
|
|
|
@ -897,9 +897,12 @@ struct BtorWorker
|
|||
|
||||
int sid = get_bv_sid(GetSize(s));
|
||||
int nid = next_nid++;
|
||||
btorf("%d input %d %s\n", nid, sid);
|
||||
btorf("%d input %d\n", nid, sid);
|
||||
nid_width[nid] = GetSize(s);
|
||||
|
||||
for (int j = 0; j < GetSize(s); j++)
|
||||
nidbits.push_back(make_pair(nid, j));
|
||||
|
||||
i += GetSize(s)-1;
|
||||
continue;
|
||||
}
|
||||
|
|
|
@ -266,7 +266,7 @@ struct ProtobufBackend : public Backend {
|
|||
}
|
||||
break;
|
||||
}
|
||||
extra_args(f, filename, args, argidx);
|
||||
extra_args(f, filename, args, argidx, !text_mode);
|
||||
|
||||
log_header(design, "Executing Protobuf backend.\n");
|
||||
|
||||
|
@ -338,7 +338,7 @@ struct ProtobufPass : public Pass {
|
|||
if (!filename.empty()) {
|
||||
rewrite_filename(filename);
|
||||
std::ofstream *ff = new std::ofstream;
|
||||
ff->open(filename.c_str(), std::ofstream::trunc);
|
||||
ff->open(filename.c_str(), text_mode ? std::ofstream::trunc : (std::ofstream::trunc | std::ofstream::binary));
|
||||
if (ff->fail()) {
|
||||
delete ff;
|
||||
log_error("Can't open file `%s' for writing: %s\n", filename.c_str(), strerror(errno));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue