Skip to content

Commit 58dbbe8

Browse files
authored
Merge pull request #366 from The-OpenROAD-Project/resizer
write_verilog vdd/vss port dcls
2 parents 015a8e0 + b894a42 commit 58dbbe8

File tree

6 files changed

+74
-3
lines changed

6 files changed

+74
-3
lines changed

src/dbSta/test/reg1.def

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
###############################################################################
21
# reg1.v
3-
###############################################################################
42

53
VERSION 5.8 ;
64
NAMESCASESENSITIVE ON ;

src/dbSta/test/regression_tests.tcl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,5 @@ record_tests {
2121
write_verilog2
2222
write_verilog3
2323
write_verilog4
24+
write_verilog5
2425
}

src/dbSta/test/write_verilog5.def

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
VERSION 5.8 ;
2+
NAMESCASESENSITIVE ON ;
3+
DIVIDERCHAR "/" ;
4+
BUSBITCHARS "[]" ;
5+
6+
DESIGN top ;
7+
8+
UNITS DISTANCE MICRONS 1000 ;
9+
10+
DIEAREA ( 0 0 ) ( 1000 1000 ) ;
11+
12+
13+
COMPONENTS 5 ;
14+
- u1 BUF_X1 ;
15+
END COMPONENTS
16+
17+
PINS 4 ;
18+
- in1 + NET in1 + DIRECTION INPUT ;
19+
- out1 + NET out + DIRECTION OUTPUT ;
20+
- VDD + NET VDD + DIRECTION INPUT + USE POWER ;
21+
- VSS + NET VSS + DIRECTION INPUT + USE GROUND ;
22+
END PINS
23+
24+
SPECIALNETS 2 ;
25+
- VSS ( * VSS )
26+
+ USE GROUND ;
27+
- VDD ( * VDD )
28+
+ USE POWER ;
29+
END SPECIALNETS
30+
31+
NETS 2 ;
32+
- in1 ( PIN in1 ) ( u1 A ) ;
33+
- out1 ( u1 Z ) ( PIN out1 ) ;
34+
END NETS
35+
36+
END DESIGN

src/dbSta/test/write_verilog5.ok

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
Notice 0: Reading LEF file: Nangate45/Nangate45.lef
2+
Notice 0: Created 22 technology layers
3+
Notice 0: Created 27 technology vias
4+
Notice 0: Created 134 library cells
5+
Notice 0: Finished LEF file: Nangate45/Nangate45.lef
6+
Notice 0:
7+
Reading DEF file: write_verilog5.def
8+
Notice 0: Design: top
9+
Notice 0: Created 4 pins.
10+
Notice 0: Created 1 components and 4 component-terminals.
11+
Notice 0: Created 2 special nets and 2 connections.
12+
Notice 0: Created 2 nets and 2 connections.
13+
Notice 0: Finished DEF file: write_verilog5.def
14+
module top (in1,
15+
out1,
16+
VDD,
17+
VSS);
18+
input in1;
19+
output out1;
20+
input VDD;
21+
input VSS;
22+
23+
BUF_X1 u1 (.A(in1),
24+
.Z(out1),
25+
.VDD(VDD),
26+
.VSS(VSS));
27+
endmodule

src/dbSta/test/write_verilog5.tcl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# write_verilog vdd/vss def pins
2+
source "helpers.tcl"
3+
read_lef Nangate45/Nangate45.lef
4+
read_liberty Nangate45/Nangate45_typ.lib
5+
read_def write_verilog5.def
6+
7+
set verilog_file [make_result_file write_verilog5.v]
8+
write_verilog -sort $verilog_file
9+
report_file $verilog_file

0 commit comments

Comments
 (0)