3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-20 07:36:39 +00:00

test_cell: Fix $bweqx

This commit is contained in:
Krystine Sherwin 2025-04-15 17:00:07 +12:00
parent 2d069c8a5e
commit 31aaf6e7f7
No known key found for this signature in database

View file

@ -433,13 +433,13 @@ static RTLIL::Cell* create_gold_module(RTLIL::Design *design, RTLIL::IdString ce
int a_size = GetSize(cell->getPort(ID::A));
wire = module->addWire(ID::B);
wire->width = a_size;
wire->port_output = true;
wire->port_input = true;
cell->setPort(ID::B, wire);
if (cell_type == ID($bwmux))
{
wire = module->addWire(ID::S);
wire->width = a_size;
wire->port_output = true;
wire->port_input = true;
cell->setPort(ID::S, wire);
}
wire = module->addWire(ID::Y);
@ -1017,10 +1017,8 @@ struct TestCellPass : public Pass {
{
cell_types[ID($eqx)] = "ABSY";
cell_types[ID($nex)] = "ABSY";
}
// $bweqx is additionally unsupported by ConstEval
if (nosat && techmap_cmd.compare("techmap -assert") != 0 && noeval)
cell_types[ID($bweqx)] = "A";
}
cell_types[ID($ge)] = "ABSY";
cell_types[ID($gt)] = "ABSY";