Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/rsz/include/rsz/Resizer.hh
Original file line number Diff line number Diff line change
Expand Up @@ -778,6 +778,7 @@ class Resizer : public sta::dbStaState, public sta::dbNetworkObserver
void insertBufferPostProcess(odb::dbInst* buffer_inst);

void setLocation(odb::dbInst* db_inst, const odb::Point& pt);
odb::Point clampLocToCore(const odb::Point& loc, odb::dbMaster* master) const;
sta::LibertyCell* findTargetCell(sta::LibertyCell* cell,
float load_cap,
bool revisiting_inst);
Expand All @@ -804,7 +805,6 @@ class Resizer : public sta::dbStaState, public sta::dbNetworkObserver
float& limit,
float& slack,
const sta::Scene*& corner);
void warnBufferMovedIntoCore();
bool isLogicStdCell(const sta::Instance* inst);

bool okToBufferNet(const sta::Pin* driver_pin) const;
Expand Down Expand Up @@ -889,7 +889,6 @@ class Resizer : public sta::dbStaState, public sta::dbNetworkObserver
int swap_pin_count_ = 0;
int removed_buffer_count_ = 0;
bool exclude_clock_buffers_ = true;
bool buffer_moved_into_core_ = false;
bool match_cell_footprint_ = false;
bool equiv_cells_made_ = false;

Expand Down
1 change: 0 additions & 1 deletion src/rsz/src/RecoverPower.cc
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ bool RecoverPower::recoverPower(const float recover_power_percent, bool verbose)
init();
constexpr int digits = 3;
resize_count_ = 0;
resizer_->buffer_moved_into_core_ = false;

// Sort failing endpoints by slack.
sta::VertexSet& endpoints = sta_->endpoints();
Expand Down
1 change: 0 additions & 1 deletion src/rsz/src/RepairDesign.cc
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,6 @@ void RepairDesign::repairNet(sta::Net* net,
inserted_buffer_count_ = 0;
resize_count_ = 0;
resizer_->resized_multi_output_insts_.clear();
resizer_->buffer_moved_into_core_ = false;

sta_->checkSlewsPreamble();
sta_->checkCapacitancesPreamble(sta_->scenes());
Expand Down
1 change: 0 additions & 1 deletion src/rsz/src/RepairSetup.cc
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,6 @@ bool RepairSetup::repairSetup(const float setup_slack_margin,
// IMPROVE ME: rebuffering always looks at cmd corner
resizer_->rebuffer_->initOnCorner(sta_->cmdScene());
max_repairs_per_pass_ = max_repairs_per_pass;
resizer_->buffer_moved_into_core_ = false;

violator_collector_->init(setup_slack_margin);
violator_collector_->setMaxPassesPerEndpoint(max_passes);
Expand Down
66 changes: 32 additions & 34 deletions src/rsz/src/Resizer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1001,7 +1001,6 @@ void Resizer::bufferInputs(sta::LibertyCell* buffer_cell, bool verbose)

sta_->ensureClkNetwork(sta_->cmdMode());
inserted_buffer_count_ = 0;
buffer_moved_into_core_ = false;

{
est::IncrementalParasiticsGuard guard(estimate_parasitics_);
Expand Down Expand Up @@ -1139,7 +1138,6 @@ void Resizer::bufferOutputs(sta::LibertyCell* buffer_cell, bool verbose)
}

inserted_buffer_count_ = 0;
buffer_moved_into_core_ = false;

{
est::IncrementalParasiticsGuard guard(estimate_parasitics_);
Expand Down Expand Up @@ -5123,6 +5121,11 @@ sta::Instance* Resizer::makeInstance(sta::LibertyCell* cell,

void Resizer::insertBufferPostProcess(dbInst* buffer_inst)
{
// ODB's insertBuffer* already placed the instance; re-run through
// setLocation so clampLocToCore can pull it back inside the core if
// the insertion point landed in the die-core gap.
setLocation(buffer_inst, buffer_inst->getLocation());

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about replacing the setLocation() call in the following API?

void dbInsertBuffer::placeBufferAtLocation(dbInst* buffer_inst,
                                           const Point& loc,
                                           const char* reason)
{
  buffer_inst->setLocation(loc.getX(), loc.getY());
  buffer_inst->setPlacementStatus(dbPlacementStatus::PLACED);
  dlogPlacedBuffer(buffer_inst, loc, reason);
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makeInstance -> setLocation() path don't call placeBufferLocation() so rsz module's clamp() is still needed.

sta::Instance* Resizer::makeInstance(sta::LibertyCell* cell,
const char* name,
sta::Instance* parent,
const odb::Point& loc,
const odb::dbNameUniquifyType& uniquify)
{

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK. I see.

  • Only Resizer::setLocation() can see the core area (Resizer::core_ attribute), and Resizer::setLocation() cannot be called in odb::dbInsertBuffer::placeBufferAtLocation().


// Legalize the cell position for accurate parasitic estimation
if (estimate_parasitics_->getParasiticsSrc()
== est::ParasiticsSrc::kGlobalRouting
Expand All @@ -5145,33 +5148,35 @@ void Resizer::insertBufferPostProcess(dbInst* buffer_inst)

void Resizer::setLocation(dbInst* db_inst, const odb::Point& pt)
{
int x = pt.x();
int y = pt.y();
// Stay inside the lines.
if (core_exists_) {
dbMaster* master = db_inst->getMaster();
int width = master->getWidth();
if (x < core_.xMin()) {
x = core_.xMin();
buffer_moved_into_core_ = true;
} else if (x > core_.xMax() - width) {
// Make sure the instance is entirely inside core.
x = core_.xMax() - width;
buffer_moved_into_core_ = true;
}

int height = master->getHeight();
if (y < core_.yMin()) {
y = core_.yMin();
buffer_moved_into_core_ = true;
} else if (y > core_.yMax() - height) {
y = core_.yMax() - height;
buffer_moved_into_core_ = true;
}
const odb::Point loc = clampLocToCore(pt, db_inst->getMaster());

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Main change

db_inst->setPlacementStatus(dbPlacementStatus::PLACED);
db_inst->setLocation(loc.x(), loc.y());
if (loc != pt) {
debugPrint(logger_,
RSZ,
"buffer_clamp",
1,
"{} clamped to core ({}, {}) -> ({}, {})",
db_inst->getName(),
pt.x(),
pt.y(),
loc.x(),
loc.y());
}
}

db_inst->setPlacementStatus(dbPlacementStatus::PLACED);
db_inst->setLocation(x, y);
odb::Point Resizer::clampLocToCore(const odb::Point& loc,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Main fix

odb::dbMaster* master) const
{
if (!core_exists_) {
return loc;
}
const int x_max = std::max(
core_.xMin(), core_.xMax() - static_cast<int>(master->getWidth()));
const int y_max = std::max(
core_.yMin(), core_.yMax() - static_cast<int>(master->getHeight()));
return {std::clamp(loc.x(), core_.xMin(), x_max),
std::clamp(loc.y(), core_.yMin(), y_max)};
}

float Resizer::portCapacitance(sta::LibertyPort* input,
Expand Down Expand Up @@ -5281,13 +5286,6 @@ void Resizer::checkLoadSlews(const sta::Pin* drvr_pin,
delete pin_iter;
}

void Resizer::warnBufferMovedIntoCore()
{
if (buffer_moved_into_core_) {
logger_->warn(RSZ, 77, "some buffers were moved inside the core.");

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed unnecessary comment (It’s only implemented in code, but it’s not actually written to the log)

}
}

void Resizer::setDebugPin(const sta::Pin* pin)
{
debug_pin_ = pin;
Expand Down
1 change: 1 addition & 0 deletions src/rsz/test/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ TESTS = [
"repair_design3_verbose",
"repair_design4",
"repair_design5",
"repair_design_outside_core",
"repair_fanout1",
"repair_fanout1_hier",
"repair_fanout2",
Expand Down
1 change: 1 addition & 0 deletions src/rsz/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ or_integration_tests(
repair_design3_verbose
repair_design4
repair_design5
repair_design_outside_core
repair_fanout1
repair_fanout2
repair_fanout3
Expand Down
8 changes: 4 additions & 4 deletions src/rsz/test/buffer_ports10.defok
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ TRACKS Y 3340 DO 62 STEP 3200 LAYER metal9 ;
TRACKS X 3390 DO 62 STEP 3200 LAYER metal10 ;
TRACKS Y 3340 DO 62 STEP 3200 LAYER metal10 ;
COMPONENTS 5 ;
- input1 BUF_X1 + SOURCE TIMING + PLACED ( 101270 199930 ) N ;
- input2 BUF_X1 + SOURCE TIMING + PLACED ( 99750 199930 ) N ;
- output3 BUF_X1 + SOURCE TIMING + PLACED ( 100510 199930 ) N ;
- output4 BUF_X1 + SOURCE TIMING + PLACED ( 98990 199930 ) N ;
- input1 BUF_X1 + SOURCE TIMING + PLACED ( 101270 176400 ) N ;
- input2 BUF_X1 + SOURCE TIMING + PLACED ( 99750 176400 ) N ;
- output3 BUF_X1 + SOURCE TIMING + PLACED ( 100510 176400 ) N ;
- output4 BUF_X1 + SOURCE TIMING + PLACED ( 98990 176400 ) N ;
- r1 DFF_X1 + PLACED ( 96726 170871 ) N ;
END COMPONENTS
PINS 4 ;
Expand Down
8 changes: 4 additions & 4 deletions src/rsz/test/buffer_ports8.defok
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ TRACKS Y 3340 DO 62 STEP 3200 LAYER metal9 ;
TRACKS X 3390 DO 62 STEP 3200 LAYER metal10 ;
TRACKS Y 3340 DO 62 STEP 3200 LAYER metal10 ;
COMPONENTS 5 ;
- input1 BUF_X1 + SOURCE TIMING + PLACED ( 101270 199930 ) N ;
- input2 BUF_X1 + SOURCE TIMING + PLACED ( 99750 199930 ) N ;
- output3 BUF_X1 + SOURCE TIMING + PLACED ( 100510 199930 ) N ;
- output4 BUF_X1 + SOURCE TIMING + PLACED ( 98990 199930 ) N ;
- input1 BUF_X1 + SOURCE TIMING + PLACED ( 101270 176400 ) N ;
- input2 BUF_X1 + SOURCE TIMING + PLACED ( 99750 176400 ) N ;
- output3 BUF_X1 + SOURCE TIMING + PLACED ( 100510 176400 ) N ;
- output4 BUF_X1 + SOURCE TIMING + PLACED ( 98990 176400 ) N ;
- r1 DFF_X1 + PLACED ( 96726 170871 ) N ;
END COMPONENTS
PINS 4 ;
Expand Down
8 changes: 4 additions & 4 deletions src/rsz/test/buffer_ports9.defok
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ TRACKS Y 3340 DO 62 STEP 3200 LAYER metal9 ;
TRACKS X 3390 DO 62 STEP 3200 LAYER metal10 ;
TRACKS Y 3340 DO 62 STEP 3200 LAYER metal10 ;
COMPONENTS 5 ;
- input1 BUF_X16 + SOURCE TIMING + PLACED ( 101270 199930 ) N ;
- input2 BUF_X16 + SOURCE TIMING + PLACED ( 99750 199930 ) N ;
- output3 BUF_X16 + SOURCE TIMING + PLACED ( 100510 199930 ) N ;
- output4 BUF_X16 + SOURCE TIMING + PLACED ( 98990 199930 ) N ;
- input1 BUF_X16 + SOURCE TIMING + PLACED ( 101270 176400 ) N ;
- input2 BUF_X16 + SOURCE TIMING + PLACED ( 99750 176400 ) N ;
- output3 BUF_X16 + SOURCE TIMING + PLACED ( 100510 176400 ) N ;
- output4 BUF_X16 + SOURCE TIMING + PLACED ( 98990 176400 ) N ;
- r1 DFF_X1 + PLACED ( 96726 170871 ) N ;
END COMPONENTS
PINS 4 ;
Expand Down
36 changes: 18 additions & 18 deletions src/rsz/test/gcd_resize.defok
Original file line number Diff line number Diff line change
Expand Up @@ -745,24 +745,24 @@ COMPONENTS 673 ;
- hold97 CLKBUF_X1 + SOURCE TIMING + PLACED ( 61811 108365 ) N ;
- hold98 CLKBUF_X1 + SOURCE TIMING + PLACED ( 124175 137055 ) N ;
- hold99 CLKBUF_X1 + SOURCE TIMING + PLACED ( 115635 138174 ) N ;
- output1 BUF_X1 + SOURCE TIMING + PLACED ( 200190 111020 ) N ;
- output10 BUF_X1 + SOURCE TIMING + PLACED ( 70 77700 ) N ;
- output11 BUF_X1 + SOURCE TIMING + PLACED ( 200190 85260 ) N ;
- output12 BUF_X1 + SOURCE TIMING + PLACED ( 200190 188580 ) N ;
- output13 BUF_X1 + SOURCE TIMING + PLACED ( 130150 201530 ) N ;
- output14 BUF_X1 + SOURCE TIMING + PLACED ( 200190 33460 ) N ;
- output15 BUF_X1 + SOURCE TIMING + PLACED ( 200190 162820 ) N ;
- output16 BUF_X1 + SOURCE TIMING + PLACED ( 147630 201530 ) N ;
- output17 BUF_X1 + SOURCE TIMING + PLACED ( 70 13020 ) N ;
- output18 BUF_X1 + SOURCE TIMING + PLACED ( 112670 201530 ) N ;
- output2 BUF_X1 + SOURCE TIMING + PLACED ( 200070 201530 ) N ;
- output3 BUF_X1 + SOURCE TIMING + PLACED ( 200190 72380 ) N ;
- output4 BUF_X1 + SOURCE TIMING + PLACED ( 200190 149940 ) N ;
- output5 BUF_X1 + SOURCE TIMING + PLACED ( 94810 201530 ) N ;
- output6 BUF_X1 + SOURCE TIMING + PLACED ( 165110 201530 ) N ;
- output7 BUF_X1 + SOURCE TIMING + PLACED ( 17670 70 ) N ;
- output8 BUF_X1 + SOURCE TIMING + PLACED ( 70 129220 ) N ;
- output9 BUF_X1 + SOURCE TIMING + PLACED ( 70 193900 ) N ;
- output1 BUF_X1 + SOURCE TIMING + PLACED ( 179360 111020 ) N ;
- output10 BUF_X1 + SOURCE TIMING + PLACED ( 20140 77700 ) N ;
- output11 BUF_X1 + SOURCE TIMING + PLACED ( 179360 85260 ) N ;
- output12 BUF_X1 + SOURCE TIMING + PLACED ( 179360 179200 ) N ;
- output13 BUF_X1 + SOURCE TIMING + PLACED ( 130150 179200 ) N ;
- output14 BUF_X1 + SOURCE TIMING + PLACED ( 179360 33460 ) N ;
- output15 BUF_X1 + SOURCE TIMING + PLACED ( 179360 162820 ) N ;
- output16 BUF_X1 + SOURCE TIMING + PLACED ( 147630 179200 ) N ;
- output17 BUF_X1 + SOURCE TIMING + PLACED ( 20140 22400 ) N ;
- output18 BUF_X1 + SOURCE TIMING + PLACED ( 112670 179200 ) N ;
- output2 BUF_X1 + SOURCE TIMING + PLACED ( 179360 179200 ) N ;
- output3 BUF_X1 + SOURCE TIMING + PLACED ( 179360 72380 ) N ;
- output4 BUF_X1 + SOURCE TIMING + PLACED ( 179360 149940 ) N ;
- output5 BUF_X1 + SOURCE TIMING + PLACED ( 94810 179200 ) N ;
- output6 BUF_X1 + SOURCE TIMING + PLACED ( 165110 179200 ) N ;
- output7 BUF_X1 + SOURCE TIMING + PLACED ( 20140 22400 ) N ;
- output8 BUF_X1 + SOURCE TIMING + PLACED ( 20140 129220 ) N ;
- output9 BUF_X1 + SOURCE TIMING + PLACED ( 20140 179200 ) N ;
END COMPONENTS
PINS 54 ;
- clk + NET clk + DIRECTION INPUT + USE SIGNAL
Expand Down
12 changes: 6 additions & 6 deletions src/rsz/test/gcd_resize.ok
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,16 @@ Pin Limit Cap Slack
_449_/ZN 10.47 3.45 7.02 (MET)

Driver length delay
_759_/Z manhtn 105.4 steiner 105.4 0.00
_850_/Z manhtn 95.8 steiner 95.8 0.00
_759_/Z manhtn 83.9 steiner 83.9 0.00
_850_/Z manhtn 80.7 steiner 80.7 0.00
_786_/Z manhtn 80.4 steiner 80.4 0.00
_813_/Z manhtn 78.4 steiner 78.4 0.00
_847_/Z manhtn 77.7 steiner 77.7 0.00
_839_/Z manhtn 76.3 steiner 76.3 0.00
_551_/Z manhtn 73.6 steiner 73.7 0.00
_851_/Z manhtn 69.5 steiner 69.5 0.00
reset manhtn 67.3 steiner 67.3 0.00
_725_/Z manhtn 67.2 steiner 67.2 0.00
_849_/Z manhtn 64.8 steiner 64.8 0.00
_461_/Z manhtn 63.8 steiner 84.8 0.00
req_msg[18] manhtn 61.4 steiner 61.4 0.00
_847_/Z manhtn 60.3 steiner 60.3 0.00
_851_/Z manhtn 58.3 steiner 58.3 0.00
Design area 751 um^2 12% utilization.
No differences found.
94 changes: 94 additions & 0 deletions src/rsz/test/repair_design_outside_core.def
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
VERSION 5.8 ;
DIVIDERCHAR "/" ;
BUSBITCHARS "[]" ;
DESIGN outside_core ;
UNITS DISTANCE MICRONS 2000 ;
DIEAREA ( 0 0 ) ( 400000 400000 ) ;
ROW ROW_0 FreePDK45_38x28_10R_NP_162NW_34O 20140 22400 N DO 420 BY 1 STEP 380 0 ;
ROW ROW_1 FreePDK45_38x28_10R_NP_162NW_34O 20140 25200 FS DO 420 BY 1 STEP 380 0 ;
ROW ROW_2 FreePDK45_38x28_10R_NP_162NW_34O 20140 28000 N DO 420 BY 1 STEP 380 0 ;
ROW ROW_3 FreePDK45_38x28_10R_NP_162NW_34O 20140 30800 FS DO 420 BY 1 STEP 380 0 ;
ROW ROW_4 FreePDK45_38x28_10R_NP_162NW_34O 20140 33600 N DO 420 BY 1 STEP 380 0 ;
ROW ROW_5 FreePDK45_38x28_10R_NP_162NW_34O 20140 36400 FS DO 420 BY 1 STEP 380 0 ;
ROW ROW_6 FreePDK45_38x28_10R_NP_162NW_34O 20140 39200 N DO 420 BY 1 STEP 380 0 ;
ROW ROW_7 FreePDK45_38x28_10R_NP_162NW_34O 20140 42000 FS DO 420 BY 1 STEP 380 0 ;
ROW ROW_8 FreePDK45_38x28_10R_NP_162NW_34O 20140 44800 N DO 420 BY 1 STEP 380 0 ;
ROW ROW_9 FreePDK45_38x28_10R_NP_162NW_34O 20140 47600 FS DO 420 BY 1 STEP 380 0 ;
ROW ROW_10 FreePDK45_38x28_10R_NP_162NW_34O 20140 50400 N DO 420 BY 1 STEP 380 0 ;
ROW ROW_11 FreePDK45_38x28_10R_NP_162NW_34O 20140 53200 FS DO 420 BY 1 STEP 380 0 ;
ROW ROW_12 FreePDK45_38x28_10R_NP_162NW_34O 20140 56000 N DO 420 BY 1 STEP 380 0 ;
ROW ROW_13 FreePDK45_38x28_10R_NP_162NW_34O 20140 58800 FS DO 420 BY 1 STEP 380 0 ;
ROW ROW_14 FreePDK45_38x28_10R_NP_162NW_34O 20140 61600 N DO 420 BY 1 STEP 380 0 ;
ROW ROW_15 FreePDK45_38x28_10R_NP_162NW_34O 20140 64400 FS DO 420 BY 1 STEP 380 0 ;
ROW ROW_16 FreePDK45_38x28_10R_NP_162NW_34O 20140 67200 N DO 420 BY 1 STEP 380 0 ;
ROW ROW_17 FreePDK45_38x28_10R_NP_162NW_34O 20140 70000 FS DO 420 BY 1 STEP 380 0 ;
ROW ROW_18 FreePDK45_38x28_10R_NP_162NW_34O 20140 72800 N DO 420 BY 1 STEP 380 0 ;
ROW ROW_19 FreePDK45_38x28_10R_NP_162NW_34O 20140 75600 FS DO 420 BY 1 STEP 380 0 ;
ROW ROW_20 FreePDK45_38x28_10R_NP_162NW_34O 20140 78400 N DO 420 BY 1 STEP 380 0 ;
ROW ROW_21 FreePDK45_38x28_10R_NP_162NW_34O 20140 81200 FS DO 420 BY 1 STEP 380 0 ;
ROW ROW_22 FreePDK45_38x28_10R_NP_162NW_34O 20140 84000 N DO 420 BY 1 STEP 380 0 ;
ROW ROW_23 FreePDK45_38x28_10R_NP_162NW_34O 20140 86800 FS DO 420 BY 1 STEP 380 0 ;
ROW ROW_24 FreePDK45_38x28_10R_NP_162NW_34O 20140 89600 N DO 420 BY 1 STEP 380 0 ;
ROW ROW_25 FreePDK45_38x28_10R_NP_162NW_34O 20140 92400 FS DO 420 BY 1 STEP 380 0 ;
ROW ROW_26 FreePDK45_38x28_10R_NP_162NW_34O 20140 95200 N DO 420 BY 1 STEP 380 0 ;
ROW ROW_27 FreePDK45_38x28_10R_NP_162NW_34O 20140 98000 FS DO 420 BY 1 STEP 380 0 ;
ROW ROW_28 FreePDK45_38x28_10R_NP_162NW_34O 20140 100800 N DO 420 BY 1 STEP 380 0 ;
ROW ROW_29 FreePDK45_38x28_10R_NP_162NW_34O 20140 103600 FS DO 420 BY 1 STEP 380 0 ;
ROW ROW_30 FreePDK45_38x28_10R_NP_162NW_34O 20140 106400 N DO 420 BY 1 STEP 380 0 ;
ROW ROW_31 FreePDK45_38x28_10R_NP_162NW_34O 20140 109200 FS DO 420 BY 1 STEP 380 0 ;
ROW ROW_32 FreePDK45_38x28_10R_NP_162NW_34O 20140 112000 N DO 420 BY 1 STEP 380 0 ;
ROW ROW_33 FreePDK45_38x28_10R_NP_162NW_34O 20140 114800 FS DO 420 BY 1 STEP 380 0 ;
ROW ROW_34 FreePDK45_38x28_10R_NP_162NW_34O 20140 117600 N DO 420 BY 1 STEP 380 0 ;
ROW ROW_35 FreePDK45_38x28_10R_NP_162NW_34O 20140 120400 FS DO 420 BY 1 STEP 380 0 ;
ROW ROW_36 FreePDK45_38x28_10R_NP_162NW_34O 20140 123200 N DO 420 BY 1 STEP 380 0 ;
ROW ROW_37 FreePDK45_38x28_10R_NP_162NW_34O 20140 126000 FS DO 420 BY 1 STEP 380 0 ;
ROW ROW_38 FreePDK45_38x28_10R_NP_162NW_34O 20140 128800 N DO 420 BY 1 STEP 380 0 ;
ROW ROW_39 FreePDK45_38x28_10R_NP_162NW_34O 20140 131600 FS DO 420 BY 1 STEP 380 0 ;
ROW ROW_40 FreePDK45_38x28_10R_NP_162NW_34O 20140 134400 N DO 420 BY 1 STEP 380 0 ;
ROW ROW_41 FreePDK45_38x28_10R_NP_162NW_34O 20140 137200 FS DO 420 BY 1 STEP 380 0 ;
ROW ROW_42 FreePDK45_38x28_10R_NP_162NW_34O 20140 140000 N DO 420 BY 1 STEP 380 0 ;
ROW ROW_43 FreePDK45_38x28_10R_NP_162NW_34O 20140 142800 FS DO 420 BY 1 STEP 380 0 ;
ROW ROW_44 FreePDK45_38x28_10R_NP_162NW_34O 20140 145600 N DO 420 BY 1 STEP 380 0 ;
ROW ROW_45 FreePDK45_38x28_10R_NP_162NW_34O 20140 148400 FS DO 420 BY 1 STEP 380 0 ;
ROW ROW_46 FreePDK45_38x28_10R_NP_162NW_34O 20140 151200 N DO 420 BY 1 STEP 380 0 ;
ROW ROW_47 FreePDK45_38x28_10R_NP_162NW_34O 20140 154000 FS DO 420 BY 1 STEP 380 0 ;
ROW ROW_48 FreePDK45_38x28_10R_NP_162NW_34O 20140 156800 N DO 420 BY 1 STEP 380 0 ;
ROW ROW_49 FreePDK45_38x28_10R_NP_162NW_34O 20140 159600 FS DO 420 BY 1 STEP 380 0 ;
ROW ROW_50 FreePDK45_38x28_10R_NP_162NW_34O 20140 162400 N DO 420 BY 1 STEP 380 0 ;
ROW ROW_51 FreePDK45_38x28_10R_NP_162NW_34O 20140 165200 FS DO 420 BY 1 STEP 380 0 ;
ROW ROW_52 FreePDK45_38x28_10R_NP_162NW_34O 20140 168000 N DO 420 BY 1 STEP 380 0 ;
ROW ROW_53 FreePDK45_38x28_10R_NP_162NW_34O 20140 170800 FS DO 420 BY 1 STEP 380 0 ;
ROW ROW_54 FreePDK45_38x28_10R_NP_162NW_34O 20140 173600 N DO 420 BY 1 STEP 380 0 ;
ROW ROW_55 FreePDK45_38x28_10R_NP_162NW_34O 20140 176400 FS DO 420 BY 1 STEP 380 0 ;
COMPONENTS 7 ;
- drvr DFF_X1 + PLACED ( 50000 50000 ) N ;
- load0 DFF_X1 + PLACED ( 0 0 ) N ;
- load1 DFF_X1 + PLACED ( 195000 0 ) N ;
- load2 DFF_X1 + PLACED ( 0 195000 ) N ;
- load3 DFF_X1 + PLACED ( 195000 195000 ) N ;
- load4 DFF_X1 + PLACED ( 100000 0 ) N ;
- load5 DFF_X1 + PLACED ( 0 100000 ) N ;
END COMPONENTS
PINS 8 ;
- clk + NET clk + DIRECTION INPUT + USE SIGNAL ;
- in1 + NET in1 + DIRECTION INPUT + USE SIGNAL ;
- out0 + NET out0 + DIRECTION OUTPUT + USE SIGNAL ;
- out1 + NET out1 + DIRECTION OUTPUT + USE SIGNAL ;
- out2 + NET out2 + DIRECTION OUTPUT + USE SIGNAL ;
- out3 + NET out3 + DIRECTION OUTPUT + USE SIGNAL ;
- out4 + NET out4 + DIRECTION OUTPUT + USE SIGNAL ;
- out5 + NET out5 + DIRECTION OUTPUT + USE SIGNAL ;
END PINS
NETS 9 ;
- clk ( PIN clk ) ( load5 CK ) ( load4 CK ) ( load3 CK ) ( load2 CK ) ( load1 CK ) ( load0 CK )
( drvr CK ) + USE SIGNAL ;
- in1 ( PIN in1 ) ( drvr D ) + USE SIGNAL ;
- net0 ( load5 D ) ( load4 D ) ( load3 D ) ( load2 D ) ( load1 D ) ( load0 D ) ( drvr Q ) + USE SIGNAL ;
- out0 ( PIN out0 ) ( load0 Q ) + USE SIGNAL ;
- out1 ( PIN out1 ) ( load1 Q ) + USE SIGNAL ;
- out2 ( PIN out2 ) ( load2 Q ) + USE SIGNAL ;
- out3 ( PIN out3 ) ( load3 Q ) + USE SIGNAL ;
- out4 ( PIN out4 ) ( load4 Q ) + USE SIGNAL ;
- out5 ( PIN out5 ) ( load5 Q ) + USE SIGNAL ;
END NETS
END DESIGN
16 changes: 16 additions & 0 deletions src/rsz/test/repair_design_outside_core.ok
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[INFO ODB-0227] LEF file: Nangate45/Nangate45.lef, created 22 layers, 27 vias, 135 library cells
[INFO ODB-0128] Design: outside_core
[INFO ODB-0252] Updated 8 pins.
[INFO ODB-0253] Updated 7 components.
[INFO ODB-0254] Updated 9 nets and 21 connections.
[WARNING RSZ-0065] max wire length less than 693u increases wire delays.
Iteration | Area | Resized | Buffers | Nets repaired | Remaining
---------------------------------------------------------------------
0 | +0.0% | 0 | 0 | 0 | 16
[DEBUG RSZ-buffer_clamp] fanout1 clamped to core (101780, 1230) -> (101780, 22400)
[DEBUG RSZ-buffer_clamp] wire2 clamped to core (101780, 1230) -> (101780, 22400)
[DEBUG RSZ-buffer_clamp] wire3 clamped to core (192030, 1230) -> (178220, 22400)
final | +9.2% | 0 | 3 | 1 | 0
---------------------------------------------------------------------
[INFO RSZ-0035] Found 1 fanout violations.
[INFO RSZ-0038] Inserted 3 buffers in 1 nets.
Loading
Loading