@@ -27,7 +27,7 @@ class DbvFixture : public tst::Fixture
2727TEST_F (DbvFixture, test_3dbv)
2828{
2929 // Test that database precision was set correctly
30- EXPECT_EQ (db_->getDbuPerMicron (), 100000 );
30+ EXPECT_EQ (db_->getDbuPerMicron (), 2000 );
3131
3232 auto chips = db_->getChips ();
3333 EXPECT_EQ (chips.size (), 2 );
@@ -118,8 +118,11 @@ TEST_F(DbvFixture, test_bump_map_parser)
118118 auto bump = *region->getChipBumps ().begin ();
119119 EXPECT_EQ (bump->getInst ()->getName (), " bump1" );
120120 EXPECT_EQ (bump->getInst ()->getMaster ()->getName (), " BUMP" );
121- EXPECT_EQ (bump->getInst ()->getOrigin ().x (), 100.0 * db_->getDbuPerMicron ());
122- EXPECT_EQ (bump->getInst ()->getOrigin ().y (), 200.0 * db_->getDbuPerMicron ());
121+ const double bump_size2 = 29.0 / 2 ;
122+ EXPECT_EQ (bump->getInst ()->getOrigin ().x (),
123+ (100.0 - bump_size2) * db_->getDbuPerMicron ());
124+ EXPECT_EQ (bump->getInst ()->getOrigin ().y (),
125+ (200.0 - bump_size2) * db_->getDbuPerMicron ());
123126 EXPECT_EQ (bump->getNet (), nullptr );
124127 EXPECT_EQ (bump->getBTerm (), nullptr );
125128 auto soc_inst = db_->getChip ()->findChipInst (" soc_inst" );
0 commit comments