diff --git a/src/odb/test/cpp/helper/helper.cpp b/src/odb/test/cpp/helper/helper.cpp index 791c2957f0d..4253930024b 100644 --- a/src/odb/test/cpp/helper/helper.cpp +++ b/src/odb/test/cpp/helper/helper.cpp @@ -56,6 +56,23 @@ dbMaster* createMaster2X1(dbLib* lib, return master; } +dbMaster* createMaster1X1(dbLib* lib, + const char* name, + uint width, + uint height, + const char* in1, + const char* out) +{ + dbMaster* master = dbMaster::create(lib, name); + master->setWidth(width); + master->setHeight(height); + master->setType(dbMasterType::CORE); + dbMTerm::create(master, in1, dbIoType::INPUT, dbSigType::SIGNAL); + dbMTerm::create(master, out, dbIoType::OUTPUT, dbSigType::SIGNAL); + master->setFrozen(); + return master; +} + dbDatabase* createSimpleDB() { utl::Logger* logger = new utl::Logger(); @@ -68,6 +85,7 @@ dbDatabase* createSimpleDB() dbBlock::create(chip, "simple_block"); createMaster2X1(lib, "and2", 1000, 1000, "a", "b", "o"); createMaster2X1(lib, "or2", 500, 500, "a", "b", "o"); + createMaster1X1(lib, "inv1", 500, 500, "ip0", "op0"); return db; } diff --git a/src/odb/test/cpp/helper/helper.h b/src/odb/test/cpp/helper/helper.h index 04f7abe78c2..d4eee3debf3 100644 --- a/src/odb/test/cpp/helper/helper.h +++ b/src/odb/test/cpp/helper/helper.h @@ -41,6 +41,12 @@ odb::dbMaster* createMaster2X1(odb::dbLib* lib, const char* in1, const char* in2, const char* out); +odb::dbMaster* createMaster1X1(odb::dbLib* lib, + const char* name, + uint width, + uint height, + const char* in1, + const char* out); odb::dbDatabase* createSimpleDB();