Skip to content

Commit

Permalink
Merge pull request #16 from Rholais/patch-1
Browse files Browse the repository at this point in the history
Clean duplicated tri-state pin workaround
  • Loading branch information
eder-matheus committed Apr 22, 2019
2 parents 56dc81d + 64102f7 commit e537867
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions rsyn/src/rsyn/io/parser/lef_def/LEFControlParser.cpp
Expand Up @@ -231,19 +231,8 @@ int lefPinCB(lefrCallbackType_e c, lefiPin* pin, lefiUserData ud) {
<< lefPin.clsPinName << ". Pin direction is replaced to " << lefPin.clsPinDirection
<< " [LEF CONTROL PARSER]\n";
numWarningsInoutPins++;
} // end if
} // end if
// END WORKORUND to support inout data pin

// Mateus @ 190108 -- WORKORUND to support tristate pin
if (lefPin.clsPinDirection.compare("OUTPUT TRISTATE") == 0) {
lefPin.clsPinDirection = "OUTPUT";
if (numWarningsTristatePins < 10)
std::cout << "WARNING: Ignoring TRISTATE OUTPUT statement in pin "
<< lefPin.clsPinName << ". Pin direction is replaced to " << lefPin.clsPinDirection
<< " [LEF CONTROL PARSER]\n";
numWarningsTristatePins++;
} // end if
// END WORKORUND to support tristate data pin

// Mateus @ 190108 -- WORKORUND to support tristate pin
if (lefPin.clsPinDirection.compare("OUTPUT TRISTATE") == 0) {
Expand All @@ -253,9 +242,9 @@ int lefPinCB(lefrCallbackType_e c, lefiPin* pin, lefiUserData ud) {
<< lefPin.clsPinName << ". Pin direction is replaced to " << lefPin.clsPinDirection
<< " [LEF CONTROL PARSER]\n";
numWarningsTristatePins++;
} // end if
} // end if
// END WORKORUND to support tristate data pin

lefPin.clsHasPort = pin->numPorts() > 0;

if (lefPin.clsHasPort)
Expand Down

0 comments on commit e537867

Please sign in to comment.