Skip to content

Commit 8d626ad

Browse files
committed
gt2n: add platform and gcd design + BSPDN-related plumbing
Brings up the GT2N 2nm GAAFET PDK with buried-power-rail (BSPDN) and runs gcd through it end-to-end with the OpenROAD changes on the bspdn branch of tools/OpenROAD. * flow/platforms/gt2n/ new platform: config.mk top-level platform variables. fastroute.tcl, pdn.tcl, setRC.tcl, tapcell.tcl, cells_clkgate.v ORFS step config; PDN is BPR followpins only (backside rails come from elsewhere). lef/, lib/, gds/ copy of the GT2N tt w31 LVT collateral. gt2.lyt, gt2.lyp KLayout tech + per-layer colors (rainbow for front-side M0..M13 + RDL, warm/red shades for backside BPR/BM*/BRDL). gt2.layermap LEF layer -> GDS layer mapping. LICENSE, README.md upstream attribution. The local copy of gt2_6t_w31_lvt.lef carries a small authoring fix on the gt2_6t_tap_w31_lvt cell: BPR shapes that were declared as OBS are moved into a second PORT on each PG pin so the LEF correctly encodes the M1<->BPR bridge. Suggested upstream as azadnaeemi/GT2N#12. * flow/designs/gt2n/gcd/ new design: config.mk, constraint.sdc * tools/OpenROAD bump to bspdn tip (0e7eabb59d) which adds isBackside()/LEF58_BACKSIDE support and filters backside layers out of DRT. * tools/yosys pin to v0.64 release (6d2c445a) which works around the Ubuntu 24.04 / glibc 2.39 yosys-abc pipe deadlock in newer SHAs. * .gitignore whitelist flow/platforms/gt2n. Verified: gt2n/gcd produces 6_final.{def,gds,odb,sdc,v}. Signed-off-by: Matthew Guthaus <mrg@ucsc.edu>
1 parent 7b05472 commit 8d626ad

20 files changed

Lines changed: 32453 additions & 2 deletions

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ flow/platforms/*
6363
!flow/platforms/sky130io
6464
!flow/platforms/sky130ram
6565
!flow/platforms/gf180
66+
!flow/platforms/gt2n
6667
flow/private
6768

6869
# network

‎flow/designs/gt2n/gcd/config.mk‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
export DESIGN_NICKNAME = gcd
2+
export DESIGN_NAME = gcd
3+
export PLATFORM = gt2n
4+
5+
export VERILOG_FILES = $(DESIGN_HOME)/src/$(DESIGN_NAME)/gcd.v
6+
export SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NAME)/constraint.sdc
7+
8+
export CORE_UTILIZATION = 25
9+
export CORE_MARGIN = 0.5
10+
export PLACE_DENSITY = 0.35
11+
export TNS_END_PERCENT = 100
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
current_design gcd
2+
3+
set clk_name core_clock
4+
set clk_port_name clk
5+
# 500 ps clock (2 GHz) — modest target; lib path delays grow once realistic
6+
# wire RC kicks in. Tighten once a clean run lands.
7+
set clk_period 500
8+
set clk_io_pct 0.2
9+
10+
set clk_port [get_ports $clk_port_name]
11+
12+
create_clock -name $clk_name -period $clk_period $clk_port
13+
14+
set non_clock_inputs [all_inputs -no_clocks]
15+
16+
set_input_delay [expr $clk_period * $clk_io_pct] -clock $clk_name $non_clock_inputs
17+
set_output_delay [expr $clk_period * $clk_io_pct] -clock $clk_name [all_outputs]

‎flow/platforms/gt2n/LICENSE‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
BSD 3-Clause License
2+
3+
Copyright (c) 2025, azadnaeemi
4+
5+
Redistribution and use in source and binary forms, with or without
6+
modification, are permitted provided that the following conditions are met:
7+
8+
1. Redistributions of source code must retain the above copyright notice, this
9+
list of conditions and the following disclaimer.
10+
11+
2. Redistributions in binary form must reproduce the above copyright notice,
12+
this list of conditions and the following disclaimer in the documentation
13+
and/or other materials provided with the distribution.
14+
15+
3. Neither the name of the copyright holder nor the names of its
16+
contributors may be used to endorse or promote products derived from
17+
this software without specific prior written permission.
18+
19+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
23+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

‎flow/platforms/gt2n/README.md‎

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# GT2N PDK
2+
3+
<img src="./VirtualFabricationDemo.gif" alt="VirtualFabricationDemo" width="400">
4+
5+
This is the initial release for the GT2N PDK with 71 standard cells. It is based on 2nm GAAFET with BSPDN.
6+
7+
If you use this PDK for publishing your work, we would appreciate citation of the following paper:
8+
9+
D. Jang, P. Kumar, M. N. H. Shazon, S. J. Ram, A. Svizhenko, V. Moroz, A. Ceyhan, N. A. Radhakrishn, and A. Naeemi, "GT2N: An Open-Source 2nm Nanosheet PDK Enabling Multi-Width/VT Benchmarking," in IEEE International Symposium on Circuits and Systems (ISCAS) 2026 [link](https://www.dropbox.com/scl/fi/3to35aip31hfqj76q7g5x/dongwon_iscas26.pdf?rlkey=utm8my3qq36y8mo0hkvto6tnv&st=876o2oh8&dl=0).
10+
11+
Quick setup guide for Custom Compiler:
12+
13+
Create a folder (e.g. gt2_techlib) and copy GT2N/techlib/nmos_lvt and GT2N/techlib/pmos_lvt inside that folder.
14+
Inside the folder from where custom_compiler is run, add the following to the lib.defs file:
15+
gt2_official <path_to_techlib_directory>/gt2_techlib
16+
17+
You can specify any name for the library instead of using gt2_offical. The current standard cell schematics are linked with the devices using this name. In case any other library name is used, the device references might need to be updated in the schematics.
18+
19+
To assign technology to the lib, the following .tf file can be imported using "Technology Manager" and applied to the gt2_official lib:
20+
GT2N/techlib/gt2_techfile.tf
21+
22+
To import all the standard cells, either custom_compiler .oa format or .gds files can be used.
23+
Create a folder for the standard cell library (e.g. gt2_std_cells) and add it to the lib.defs file:
24+
gt2_std_cells <path_to_std_cells_directory>/gt2_std_cells
25+
26+
In the "Technology Manager", the associated technology needs to be changed to gt2_official (or the lib name used in the previous stage). Alternatively, the .tf file can also be imported and applied to gt2_std_cells. This is necessary, otherwise layers would not be identified. Any new library created needs to follow the same process. To assign colors to the layer, load "GT2N/techlib/gt2_layer_colors.tcl" using the "Display Resource Manager".
27+
28+
Copy everything inside GT2N/std_cells folder to gt2_std_cells. This includes layouts, schematics, and abstract views for custom_compiler.
29+
30+
Standard cell layouts can also be imported using the .gds file: GT2N/gds/gt2_6t_std_cells.gds
31+
32+
LVS and DRC rulesets for icvalidator are present in "GT2N/icv_runset".
33+
34+
Libraries are composed of 3 process corners (under development), 2 nanosheet width (W) flavors, and 5 threshold voltage (VT) flavors. (In the order of decreasing VT, HVT > SVT > LVT > ULVT > ELVT)
35+
36+
The collaterals required for synthesis and PnR are (depending on the process corner and W/VT flavor):
37+
38+
LIB: GT2N/lib/tt/gt2_6t_w31_lvt_tt_0p7v25c.lib
39+
40+
LEF: GT2N/lef/tt/gt2_6t_w31_lvt.lef
41+
42+
Techlef: GT2N/techlib/gt2_tech.lef
43+
44+
ICT: GT2N/qrc/GT2.ict
45+
46+
QRCTech: GT2N/qrc/GT2_qrc.tch
47+
48+
ITF: GT2N/nxtgrd/GT2.itf
49+
50+
NXTGRD: GT2N/nxtgrd/GT2.nxtgrd
51+
52+
The GAAFET (3-stack nanosheet) model card is (depending on the process corner and W/VT flavor):
53+
54+
GT2N/device/tt/gt2_w31_lvt_tt.sp
55+
56+
BSPDN support for Cadence Innovus implementation flow is under development.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// GT2N has no clock gate cell; provide a passthrough that Yosys can target.
2+
module OPENROAD_CLKGATE (CK, E, GCK);
3+
input CK;
4+
input E;
5+
output GCK;
6+
assign GCK = CK;
7+
endmodule

‎flow/platforms/gt2n/config.mk‎

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
# GT2N PDK platform - 2nm GAAFET with BSPDN (backside power)
2+
# Uses w31 LVT cells at the tt 0.7V/25C corner. Collateral lives entirely
3+
# under this platform dir.
4+
5+
export PROCESS = 2
6+
7+
#-----------------------------------------------------
8+
# Tech/Libs
9+
#-----------------------------------------------------
10+
export TECH_LEF = $(PLATFORM_DIR)/lef/gt2_tech.lef
11+
export SC_LEF = $(PLATFORM_DIR)/lef/gt2_6t_w31_lvt.lef
12+
13+
export LIB_FILES = $(PLATFORM_DIR)/lib/gt2_6t_w31_lvt_tt_0p7v25c.lib \
14+
$(ADDITIONAL_LIBS)
15+
export GDS_FILES = $(PLATFORM_DIR)/gds/gt2_6t_std_cells_w31_lvt.gds \
16+
$(ADDITIONAL_GDS)
17+
18+
# Cells that should not be used in synthesis/optimization
19+
export DONT_USE_CELLS = gt2_6t_filler_w31_lvt gt2_6t_tap_w31_lvt \
20+
gt2_6t_decapcc_w31_lvt gt2_6t_tiehigh_w31_lvt gt2_6t_tielow_w31_lvt
21+
22+
# Fill cells used in fill cell insertion
23+
export FILL_CELLS ?= gt2_6t_filler_w31_lvt gt2_6t_decapcc_w31_lvt
24+
25+
#-----------------------------------------------------
26+
# Yosys / synthesis
27+
#-----------------------------------------------------
28+
export SYNTH_MINIMUM_KEEP_SIZE ?= 10000
29+
30+
export TIEHI_CELL_AND_PORT = gt2_6t_tiehigh_w31_lvt Y
31+
export TIELO_CELL_AND_PORT = gt2_6t_tielow_w31_lvt Y
32+
33+
export MIN_BUF_CELL_AND_PORTS = gt2_6t_buf_x1_w31_lvt A Y
34+
35+
# No latch/adder cells in this library; skip those map files
36+
export LATCH_MAP_FILE =
37+
export CLKGATE_MAP_FILE = $(PLATFORM_DIR)/cells_clkgate.v
38+
export ADDER_MAP_FILE =
39+
40+
export ABC_DRIVER_CELL = gt2_6t_buf_x1_w31_lvt
41+
# Cap value derived from inv_x1 input cap (~0.5 fF). Multiply by 4.
42+
export ABC_LOAD_IN_FF = 2.0
43+
44+
#--------------------------------------------------------
45+
# Floorplan
46+
#--------------------------------------------------------
47+
export PLACE_SITE = gt2_6t
48+
49+
# IO pin placement layers
50+
export IO_PLACER_H ?= M2
51+
export IO_PLACER_V ?= M3
52+
53+
# Define default PDN config
54+
export PDN_TCL ?= $(PLATFORM_DIR)/pdn.tcl
55+
56+
# Endcap and Welltie cells
57+
export TAPCELL_TCL ?= $(PLATFORM_DIR)/tapcell.tcl
58+
export TAP_CELL_NAME = gt2_6t_tap_w31_lvt
59+
60+
export MACRO_PLACE_HALO ?= 1.0 1.0
61+
62+
#---------------------------------------------------------
63+
# Place
64+
#---------------------------------------------------------
65+
export PLACE_DENSITY ?= 0.40
66+
67+
#---------------------------------------------------------
68+
# Route
69+
#---------------------------------------------------------
70+
export MIN_ROUTING_LAYER = M2
71+
export MIN_CLK_ROUTING_LAYER = M3
72+
export MAX_ROUTING_LAYER = M5
73+
74+
export FASTROUTE_TCL ?= $(PLATFORM_DIR)/fastroute.tcl
75+
76+
# KLayout technology file (drives GDS export)
77+
export KLAYOUT_TECH_FILE = $(PLATFORM_DIR)/gt2.lyt
78+
79+
#---------------------------------------------------------
80+
# IR Drop
81+
#---------------------------------------------------------
82+
export PWR_NETS_VOLTAGES ?= vdd 0.7
83+
export GND_NETS_VOLTAGES ?= vss 0.0
84+
export IR_DROP_LAYER ?= BPR

‎flow/platforms/gt2n/fastroute.tcl‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
set_global_routing_layer_adjustment M2-M3 0.5
2+
set_global_routing_layer_adjustment M4-$::env(MAX_ROUTING_LAYER) 0.25
3+
4+
set_routing_layers -clock $::env(MIN_CLK_ROUTING_LAYER)-$::env(MAX_ROUTING_LAYER)
5+
set_routing_layers -signal $::env(MIN_ROUTING_LAYER)-$::env(MAX_ROUTING_LAYER)
376 KB
Binary file not shown.

0 commit comments

Comments
 (0)