mirror of
https://github.com/YosysHQ/yosys
synced 2026-04-17 01:33:26 +00:00
satgen: support $connect
This commit is contained in:
parent
ae946a598c
commit
0d353591fe
1 changed files with 2 additions and 2 deletions
|
|
@ -430,7 +430,7 @@ bool SatGen::importCell(RTLIL::Cell *cell, int timestep)
|
|||
return true;
|
||||
}
|
||||
|
||||
if (cell->type.in(ID($pos), ID($buf), ID($neg)))
|
||||
if (cell->type.in(ID($pos), ID($buf), ID($neg), ID($connect)))
|
||||
{
|
||||
std::vector<int> a = importDefSigSpec(cell->getPort(ID::A), timestep);
|
||||
std::vector<int> y = importDefSigSpec(cell->getPort(ID::Y), timestep);
|
||||
|
|
@ -438,7 +438,7 @@ bool SatGen::importCell(RTLIL::Cell *cell, int timestep)
|
|||
|
||||
std::vector<int> yy = model_undef ? ez->vec_var(y.size()) : y;
|
||||
|
||||
if (cell->type.in(ID($pos), ID($buf))) {
|
||||
if (cell->type.in(ID($pos), ID($buf), ID($connect))) {
|
||||
ez->assume(ez->vec_eq(a, yy));
|
||||
} else {
|
||||
std::vector<int> zero(a.size(), ez->CONST_FALSE);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue