Skip to content

Commit 05da1c5

Browse files
committed
Changed log output slightly.
1 parent bd40ff7 commit 05da1c5

11 files changed

Lines changed: 29 additions & 45 deletions

src/rsz/src/Resizer.cc

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -746,12 +746,11 @@ void Resizer::findBuffers()
746746
}
747747
}
748748

749-
LibertyCell* Resizer::selectBufferCell(LibertyCell* buffer_cell)
749+
LibertyCell* Resizer::selectBufferCell(LibertyCell* user_buffer_cell)
750750
{
751751
// Prefer user-specified buffer cell if provided.
752-
if (buffer_cell) {
753-
logger_->info(RSZ, 31, "Using the given buffer: {}", buffer_cell->name());
754-
return buffer_cell;
752+
if (user_buffer_cell) {
753+
return user_buffer_cell;
755754
}
756755

757756
// Otherwise, find the weakest buffer with the lowest drive resistance.
@@ -760,13 +759,8 @@ LibertyCell* Resizer::selectBufferCell(LibertyCell* buffer_cell)
760759
// No buffer?
761760
if (buffer_lowest_drive_ == nullptr) {
762761
logger_->error(RSZ, 23, "No buffers found.");
763-
return nullptr;
764762
}
765763

766-
logger_->info(
767-
RSZ, 52,
768-
"Using the buffer with the lowest driving resistance: {}",
769-
buffer_lowest_drive_->name());
770764
return buffer_lowest_drive_;
771765
}
772766

@@ -812,7 +806,10 @@ void Resizer::bufferInputs(LibertyCell* buffer_cell)
812806
}
813807

814808
logger_->info(
815-
RSZ, 27, "Inserted {} input buffers.", inserted_buffer_count_);
809+
RSZ, 27,
810+
"Inserted {} {} input buffers.",
811+
inserted_buffer_count_, selected_buffer_cell->name());
812+
816813
if (inserted_buffer_count_ > 0) {
817814
level_drvr_vertices_valid_ = false;
818815
}
@@ -1037,7 +1034,11 @@ void Resizer::bufferOutputs(LibertyCell* buffer_cell)
10371034
}
10381035

10391036
logger_->info(
1040-
RSZ, 28, "Inserted {} output buffers.", inserted_buffer_count_);
1037+
RSZ, 28,
1038+
"Inserted {} {} output buffers.",
1039+
inserted_buffer_count_,
1040+
selected_buffer_cell->name());
1041+
10411042
if (inserted_buffer_count_ > 0) {
10421043
level_drvr_vertices_valid_ = false;
10431044
}

src/rsz/test/buffer_ports1.ok

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
[INFO ODB-0131] Created 5 components and 27 component-terminals.
55
[INFO ODB-0132] Created 2 special nets and 10 connections.
66
[INFO ODB-0133] Created 12 nets and 14 connections.
7-
[INFO RSZ-0052] Using the buffer with the lowest driving resistance: BUF_X1
8-
[INFO RSZ-0027] Inserted 2 input buffers.
9-
[INFO RSZ-0052] Using the buffer with the lowest driving resistance: BUF_X1
10-
[INFO RSZ-0028] Inserted 1 output buffers.
7+
[INFO RSZ-0027] Inserted 2 BUF_X1 input buffers.
8+
[INFO RSZ-0028] Inserted 1 BUF_X1 output buffers.
119
No differences found.

src/rsz/test/buffer_ports3.ok

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,5 @@
44
[INFO ODB-0130] Created 8 pins.
55
[INFO ODB-0131] Created 1 components and 10 component-terminals.
66
[INFO ODB-0133] Created 8 nets and 8 connections.
7-
[INFO RSZ-0052] Using the buffer with the lowest driving resistance: BUF_X1
8-
[INFO RSZ-0027] Inserted 0 input buffers.
9-
[INFO RSZ-0052] Using the buffer with the lowest driving resistance: BUF_X1
10-
[INFO RSZ-0028] Inserted 4 output buffers.
7+
[INFO RSZ-0027] Inserted 0 BUF_X1 input buffers.
8+
[INFO RSZ-0028] Inserted 4 BUF_X1 output buffers.

src/rsz/test/buffer_ports4.ok

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
[INFO ODB-0131] Created 250 components and 2000 component-terminals.
55
[INFO ODB-0132] Created 2 special nets and 500 connections.
66
[INFO ODB-0133] Created 2 nets and 500 connections.
7-
[INFO RSZ-0052] Using the buffer with the lowest driving resistance: BUF_X1
8-
[INFO RSZ-0027] Inserted 1 input buffers.
7+
[INFO RSZ-0027] Inserted 1 BUF_X1 input buffers.
98
max slew
109

1110
Pin Limit Slew Slack

src/rsz/test/buffer_ports5.ok

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,5 @@
44
[INFO ODB-0131] Created 5 components and 27 component-terminals.
55
[INFO ODB-0132] Created 2 special nets and 10 connections.
66
[INFO ODB-0133] Created 10 nets and 14 connections.
7-
[INFO RSZ-0052] Using the buffer with the lowest driving resistance: BUF_X1
8-
[INFO RSZ-0027] Inserted 2 input buffers.
9-
[INFO RSZ-0052] Using the buffer with the lowest driving resistance: BUF_X1
10-
[INFO RSZ-0028] Inserted 1 output buffers.
7+
[INFO RSZ-0027] Inserted 2 BUF_X1 input buffers.
8+
[INFO RSZ-0028] Inserted 1 BUF_X1 output buffers.

src/rsz/test/buffer_ports6.ok

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,5 @@
33
[INFO ODB-0130] Created 2 pins.
44
[INFO ODB-0131] Created 1 components and 7 component-terminals.
55
[INFO ODB-0132] Created 4 special nets and 4 connections.
6-
[INFO RSZ-0052] Using the buffer with the lowest driving resistance: BUF_X1
7-
[INFO RSZ-0027] Inserted 0 input buffers.
8-
[INFO RSZ-0052] Using the buffer with the lowest driving resistance: BUF_X1
9-
[INFO RSZ-0028] Inserted 0 output buffers.
6+
[INFO RSZ-0027] Inserted 0 BUF_X1 input buffers.
7+
[INFO RSZ-0028] Inserted 0 BUF_X1 output buffers.

src/rsz/test/buffer_ports7.ok

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,5 @@
55
[INFO ODB-0131] Created 2 components and 13 component-terminals.
66
[INFO ODB-0132] Created 2 special nets and 0 connections.
77
[INFO ODB-0133] Created 4 nets and 5 connections.
8-
[INFO RSZ-0052] Using the buffer with the lowest driving resistance: sky130_fd_sc_hs__dlygate4sd1_1
9-
[INFO RSZ-0028] Inserted 0 output buffers.
8+
[INFO RSZ-0028] Inserted 0 sky130_fd_sc_hs__dlygate4sd1_1 output buffers.
109
No differences found.

src/rsz/test/buffer_ports8.ok

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ Iteration | Overflow | HPWL (um) | HPWL(%) | Penalty | Group
5050
[INFO GPL-1011] Total routability artificial inflation: 0.00 (+0.00%)
5151
[INFO GPL-1012] Total timing-driven delta area: 0.00 (+0.00%)
5252
[INFO GPL-1013] Final placement area: 4.52 (+0.00%)
53-
[INFO RSZ-0052] Using the buffer with the lowest driving resistance: BUF_X1
54-
[INFO RSZ-0027] Inserted 2 input buffers.
55-
[INFO RSZ-0052] Using the buffer with the lowest driving resistance: BUF_X1
56-
[INFO RSZ-0028] Inserted 2 output buffers.
53+
[INFO RSZ-0027] Inserted 2 BUF_X1 input buffers.
54+
[INFO RSZ-0028] Inserted 2 BUF_X1 output buffers.
5755
No differences found.

src/rsz/test/buffer_ports9.ok

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ Iteration | Overflow | HPWL (um) | HPWL(%) | Penalty | Group
5050
[INFO GPL-1011] Total routability artificial inflation: 0.00 (+0.00%)
5151
[INFO GPL-1012] Total timing-driven delta area: 0.00 (+0.00%)
5252
[INFO GPL-1013] Final placement area: 4.52 (+0.00%)
53-
[INFO RSZ-0031] Using the given buffer: BUF_X16
54-
[INFO RSZ-0027] Inserted 2 input buffers.
55-
[INFO RSZ-0031] Using the given buffer: BUF_X16
56-
[INFO RSZ-0028] Inserted 2 output buffers.
53+
[INFO RSZ-0027] Inserted 2 BUF_X16 input buffers.
54+
[INFO RSZ-0028] Inserted 2 BUF_X16 output buffers.
5755
No differences found.

src/rsz/test/gcd_resize.ok

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@
55
[INFO ODB-0132] Created 5 special nets and 1142 connections.
66
[INFO ODB-0133] Created 528 nets and 1412 connections.
77
worst slack max 1.34
8-
[INFO RSZ-0052] Using the buffer with the lowest driving resistance: BUF_X1
9-
[INFO RSZ-0027] Inserted 0 input buffers.
10-
[INFO RSZ-0052] Using the buffer with the lowest driving resistance: BUF_X1
11-
[INFO RSZ-0028] Inserted 18 output buffers.
8+
[INFO RSZ-0027] Inserted 0 BUF_X1 input buffers.
9+
[INFO RSZ-0028] Inserted 18 BUF_X1 output buffers.
1210
Iteration | Area | Resized | Buffers | Nets repaired | Remaining
1311
---------------------------------------------------------------------
1412
0 | +0.0% | 0 | 0 | 0 | 546

0 commit comments

Comments
 (0)