newcelltypes: test against builtin_ff_cell_types

This commit is contained in:
Emil J. Tywoniak 2025-11-26 00:03:43 +01:00
parent 299d64ad9f
commit 92543c5bfe
1 changed files with 3 additions and 0 deletions

View File

@ -30,6 +30,9 @@ TEST(CellTypesTest, basic)
std::cout << i << " " << type.str() << "\n";
EXPECT_EQ(older.cell_known(type), newer.cell_known(type));
if (RTLIL::builtin_ff_cell_types().count(type) != StaticCellTypes::categories.is_ff(type))
std::cout << i << " " << type.str() << "\n";
EXPECT_EQ(RTLIL::builtin_ff_cell_types().count(type), StaticCellTypes::categories.is_ff(type));
}
yosys_shutdown();
}