Skip to content

Commit b9c6fd4

Browse files
committed
update latch gate detection method to avoid using hard coded pin name
Signed-off-by: Thinh Nguyen <nguyenthinh19011@gmail.com>
1 parent ddec16a commit b9c6fd4

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/ram/src/ram.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -689,8 +689,7 @@ void RamGen::findMasters()
689689
if (lp->isLatchData()) {
690690
has_latch_data = true;
691691
}
692-
if (std::string(lp->name()) == "GATE"
693-
|| std::string(lp->name()) == "G") {
692+
if (lp->isClock()) {
694693
has_gate = true;
695694
}
696695
}

0 commit comments

Comments
 (0)