mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-21 13:23:40 +00:00
Added verification of SAT model to "eval -vloghammer_report" command
This commit is contained in:
parent
259cc1391e
commit
18f9477e95
2 changed files with 48 additions and 6 deletions
|
@ -53,17 +53,16 @@ struct SatGen
|
|||
this->prefix = prefix;
|
||||
}
|
||||
|
||||
std::vector<int> importSigSpec(RTLIL::SigSpec &sig, int timestep = -1)
|
||||
std::vector<int> importSigSpec(RTLIL::SigSpec sig, int timestep = -1)
|
||||
{
|
||||
assert(timestep < 0 || timestep > 0);
|
||||
RTLIL::SigSpec s = sig;
|
||||
sigmap->apply(s);
|
||||
s.expand();
|
||||
sigmap->apply(sig);
|
||||
sig.expand();
|
||||
|
||||
std::vector<int> vec;
|
||||
vec.reserve(s.chunks.size());
|
||||
vec.reserve(sig.chunks.size());
|
||||
|
||||
for (auto &c : s.chunks)
|
||||
for (auto &c : sig.chunks)
|
||||
if (c.wire == NULL) {
|
||||
vec.push_back(c.data.as_bool() ? ez->TRUE : ez->FALSE);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue