Skip to content

Commit

Permalink
dft: updating braces for DFT scan structures
Browse files Browse the repository at this point in the history
Signed-off-by: Felipe Garay <[email protected]>
  • Loading branch information
fgaray committed Nov 21, 2023
1 parent ab4be6e commit a5bb9a4
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 15 deletions.
21 changes: 14 additions & 7 deletions src/odb/src/db/dbScanChain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,20 +44,27 @@ template class dbTable<_dbScanChain>;

bool _dbScanChain::operator==(const _dbScanChain& rhs) const
{
if (name != rhs.name)
if (name != rhs.name) {
return false;
if (length != rhs.length)
}
if (length != rhs.length) {
return false;
if (scanIn != rhs.scanIn)
}
if (scanIn != rhs.scanIn) {
return false;
if (scanOut != rhs.scanOut)
}
if (scanOut != rhs.scanOut) {
return false;
if (scanClock != rhs.scanClock)
}
if (scanClock != rhs.scanClock) {
return false;
if (scanEnable != rhs.scanEnable)
}
if (scanEnable != rhs.scanEnable) {
return false;
if (testMode != rhs.testMode)
}
if (testMode != rhs.testMode) {
return false;
}

return true;
}
Expand Down
9 changes: 6 additions & 3 deletions src/odb/src/db/dbScanInst.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,15 @@ template class dbTable<_dbScanInst>;

bool _dbScanInst::operator==(const _dbScanInst& rhs) const
{
if (bits != rhs.bits)
if (bits != rhs.bits) {
return false;
if (scanIn != rhs.scanIn)
}
if (scanIn != rhs.scanIn) {
return false;
if (scanOut != rhs.scanOut)
}
if (scanOut != rhs.scanOut) {
return false;
}

return true;
}
Expand Down
9 changes: 6 additions & 3 deletions src/odb/src/db/dbScanPartition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,15 @@ template class dbTable<_dbScanPartition>;

bool _dbScanPartition::operator==(const _dbScanPartition& rhs) const
{
if (start_ != rhs.start_)
if (start_ != rhs.start_) {
return false;
if (stop_ != rhs.stop_)
}
if (stop_ != rhs.stop_) {
return false;
if (name != rhs.name)
}
if (name != rhs.name) {
return false;
}

return true;
}
Expand Down
6 changes: 4 additions & 2 deletions src/odb/src/db/dbScanPin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,12 @@ template class dbTable<_dbScanPin>;

bool _dbScanPin::operator==(const _dbScanPin& rhs) const
{
if (bterm != rhs.bterm)
if (bterm != rhs.bterm) {
return false;
if (iterm != rhs.iterm)
}
if (iterm != rhs.iterm) {
return false;
}

return true;
}
Expand Down

0 comments on commit a5bb9a4

Please sign in to comment.