@@ -763,6 +763,7 @@ void DefOut::Impl::writeRegions(dbBlock* block)
763763 *_out << " ( " << defdist (box->xMin ()) << " " << defdist (box->yMin ())
764764 << " ) ( " << defdist (box->xMax ()) << " " << defdist (box->yMax ())
765765 << " )" ;
766+ ++cnt;
766767 }
767768
768769 switch ((dbRegionType::Value) region->getRegionType ()) {
@@ -1035,25 +1036,24 @@ void DefOut::Impl::writeBPin(dbBPin* bpin, int cnt)
10351036 *_out << " + LAYER " << lname << " ( " << xMin << " " << yMin << " ) ( "
10361037 << xMax << " " << yMax << " )" ;
10371038 } else {
1038- std::string layer_name = lname;
10391039 if (_version == DefOut::DEF_5_8) {
10401040 uint mask = box->getLayerMask ();
10411041 if (mask != 0 ) {
10421042 // add mask information to layer name
1043- layer_name += " MASK " + std::to_string (mask);
1043+ lname += " MASK " + std::to_string (mask);
10441044 }
10451045 }
10461046 if (bpin->hasEffectiveWidth ()) {
10471047 int w = defdist (bpin->getEffectiveWidth ());
1048- *_out << " + LAYER " << layer_name << " DESIGNRULEWIDTH " << w << " ( "
1048+ *_out << " + LAYER " << lname << " DESIGNRULEWIDTH " << w << " ( "
10491049 << xMin << " " << yMin << " ) ( " << xMax << " " << yMax << " )" ;
10501050 } else if (bpin->hasMinSpacing ()) {
10511051 int s = defdist (bpin->getMinSpacing ());
1052- *_out << " + LAYER " << layer_name << " SPACING " << s << " ( " << xMin
1052+ *_out << " + LAYER " << lname << " SPACING " << s << " ( " << xMin
10531053 << " " << yMin << " ) ( " << xMax << " " << yMax << " )" ;
10541054 } else {
1055- *_out << " + LAYER " << layer_name << " ( " << xMin << " " << yMin
1056- << " ) ( " << xMax << " " << yMax << " )" ;
1055+ *_out << " + LAYER " << lname << " ( " << xMin << " " << yMin << " ) ( "
1056+ << xMax << " " << yMax << " )" ;
10571057 }
10581058 }
10591059 }
@@ -2068,6 +2068,7 @@ void DefOut::Impl::writeProperties(dbObject* object)
20682068 std::string name = prop->getName ();
20692069 *_out << name << " " ;
20702070 writePropValue (prop);
2071+ ++cnt;
20712072 }
20722073}
20732074
0 commit comments