Skip to content

Commit 72e57f2

Browse files
authored
Merge pull request #118 from siliconcompiler/tbuf-mapping
add tbuf mapping for yosys
2 parents 5f6c9fb + bf2733c commit 72e57f2

File tree

10 files changed

+42
-0
lines changed

10 files changed

+42
-0
lines changed

lambdapdk/freepdk45/libs/nangate45.py

+1
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ def setup():
7373
# Techmap
7474
lib.add('option', 'file', 'yosys_techmap', libdir + '/techmap/yosys/cells_latch.v')
7575
lib.add('option', 'file', 'yosys_addermap', libdir + '/techmap/yosys/cells_adders.v')
76+
lib.add('option', 'file', 'yosys_tbufmap', libdir + '/techmap/yosys/cells_tristatebuf.v')
7677

7778
# Defaults for OpenROAD tool variables
7879
lib.set('option', 'var', 'openroad_place_density', '0.50')
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module \$_TBUF_ (input A, input E, output Y);
2+
TBUF_X1 _TECHMAP_REPLACE_ (
3+
.A(A),
4+
.Z(Y),
5+
.EN(E));
6+
endmodule

lambdapdk/gf180/libs/gf180mcu.py

+1
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ def setup():
9999
# Yosys techmap
100100
lib.add('option', 'file', 'yosys_techmap', libdir + '/techmap/yosys/cells_latch.v')
101101
lib.add('option', 'file', 'yosys_addermap', libdir + '/techmap/yosys/cells_adders.v')
102+
lib.add('option', 'file', 'yosys_tbufmap', libdir + '/techmap/yosys/cells_tristatebuf.v')
102103

103104
# Openroad specific files
104105
lib.set('option', 'file', 'openroad_pdngen',
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module \$_TBUF_ (input A, input E, output Y);
2+
gf180mcu_fd_sc_mcu7t5v0__bufz_1 _TECHMAP_REPLACE_ (
3+
.I(A),
4+
.Z(Y),
5+
.EN(E));
6+
endmodule
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module \$_TBUF_ (input A, input E, output Y);
2+
gf180mcu_fd_sc_mcu9t5v0__bufz_1 _TECHMAP_REPLACE_ (
3+
.I(A),
4+
.Z(Y),
5+
.EN(E));
6+
endmodule

lambdapdk/ihp130/libs/sg13g2_stdcell.py

+3
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ def setup():
9292
lib.add('option', 'file', 'yosys_techmap',
9393
libdir + '/techmap/yosys/cells_latch.v',
9494
package='lambdapdk')
95+
lib.add('option', 'file', 'yosys_tbufmap',
96+
libdir + '/techmap/yosys/cells_tristatebuf.v',
97+
package='lambdapdk')
9598

9699
# Defaults for OpenROAD tool variables
97100
lib.set('option', 'var', 'openroad_place_density', '0.65')
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module \$_TBUF_ (input A, input E, output Y);
2+
sg13g2_ebufn_2 _TECHMAP_REPLACE_ (
3+
.A(A),
4+
.Z(Y),
5+
.TE_B(~E));
6+
endmodule
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module \$_TBUF_ (input A, input E, output Y);
2+
sky130_fd_sc_hd__ebufn_1 _TECHMAP_REPLACE_ (
3+
.A(A),
4+
.Z(Y),
5+
.TE_B(~E));
6+
endmodule
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module \$_TBUF_ (input A, input E, output Y);
2+
sky130_fd_sc_hdll__ebufn_1 _TECHMAP_REPLACE_ (
3+
.A(A),
4+
.Z(Y),
5+
.TE_B(~E));
6+
endmodule

lambdapdk/sky130/libs/sky130sc.py

+1
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ def setup():
150150
# Yosys techmap
151151
# TODO: separate this out properly for the different libraries
152152
lib.add('option', 'file', 'yosys_techmap', libdir + '/techmap/yosys/cells_latch.v')
153+
lib.add('option', 'file', 'yosys_tbufmap', libdir + '/techmap/yosys/cells_tristatebuf.v')
153154
if libtype == "hd":
154155
lib.add('option', 'file', 'yosys_addermap', libdir + '/techmap/yosys/cells_adders.v')
155156

0 commit comments

Comments
 (0)