Skip to content

Commit c103ce0

Browse files
committed
rsz: Fix driver check for bidir pins
After a similar fix to repair_timing also fix these two checks. Signed-off-by: Martin Povišer <[email protected]>
1 parent 29d7860 commit c103ce0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/rsz/src/BufferMove.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,9 @@ void BufferMove::debugCheckMultipleBuffers(Path* path, PathExpanded* expanded)
9191
const int start_index = expanded->startIndex();
9292
for (int i = start_index; i < path_length; i++) {
9393
const Path* path = expanded->path(i);
94+
const Vertex* path_vertex = path->vertex(sta_);
9495
const Pin* path_pin = path->pin(sta_);
95-
if (i > 0 && network_->isDriver(path_pin)
96+
if (i > 0 && path_vertex->isDriver(network_)
9697
&& !network_->isTopLevelPort(path_pin)) {
9798
const TimingArc* prev_arc = path->prevArc(sta_);
9899
printf("repair_setup %s: %s ---> %s \n",

src/rsz/src/RecoverPower.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ Vertex* RecoverPower::recoverPower(const Path* path, const Slack path_slack)
255255
const Path* path = expanded.path(i);
256256
const Vertex* path_vertex = path->vertex(sta_);
257257
const Pin* path_pin = path->pin(sta_);
258-
if (i > 0 && network_->isDriver(path_pin)
258+
if (i > 0 && path_vertex->isDriver(network_)
259259
&& !network_->isTopLevelPort(path_pin)) {
260260
const TimingArc* prev_arc = path->prevArc(sta_);
261261
const TimingArc* corner_arc = prev_arc->cornerArc(lib_ap);

0 commit comments

Comments
 (0)