Skip to content

Commit 7a7f80c

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 dd16357 commit 7a7f80c

18 files changed

Lines changed: 33046 additions & 0 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: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# GT2N PDK
2+
3+
> **Source:** copied verbatim from [azadnaeemi/GT2N](https://github.com/azadnaeemi/GT2N) at commit [`54f81feb2b`](https://github.com/azadnaeemi/GT2N/commit/54f81feb2b9c334d283538c1bc91bf3a34b02c02) (2026-06-05). This release split the original `gt2_6t_tap_w31_lvt` into a frontside-PDN variant (`gt2_6t_tapfspdn_w31_lvt`) and a backside-PDN variant (`gt2_6t_tapbspdn_w31_lvt`); the latter is what this ORFS platform points `TAP_CELL_NAME` at, since the PDN here is backside-only. Resolves the original BPR `OBS` → `PORT` issue ([azadnaeemi/GT2N#12](https://github.com/azadnaeemi/GT2N/issues/12)).
4+
5+
<img src="./VirtualFabricationDemo.gif" alt="VirtualFabricationDemo" width="400">
6+
7+
This is the initial release for the GT2N PDK with 71 standard cells. It is based on 2nm GAAFET with BSPDN.
8+
9+
If you use this PDK for publishing your work, we would appreciate citation of the following paper:
10+
11+
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).
12+
13+
Quick setup guide for Custom Compiler:
14+
15+
Create a folder (e.g. gt2_techlib) and copy GT2N/techlib/nmos_lvt and GT2N/techlib/pmos_lvt inside that folder.
16+
Inside the folder from where custom_compiler is run, add the following to the lib.defs file:
17+
gt2_official <path_to_techlib_directory>/gt2_techlib
18+
19+
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.
20+
21+
To assign technology to the lib, the following .tf file can be imported using "Technology Manager" and applied to the gt2_official lib:
22+
GT2N/techlib/gt2_techfile.tf
23+
24+
To import all the standard cells, either custom_compiler .oa format or .gds files can be used.
25+
Create a folder for the standard cell library (e.g. gt2_std_cells) and add it to the lib.defs file:
26+
gt2_std_cells <path_to_std_cells_directory>/gt2_std_cells
27+
28+
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".
29+
30+
Copy everything inside GT2N/std_cells folder to gt2_std_cells. This includes layouts, schematics, and abstract views for custom_compiler.
31+
32+
Standard cell layouts can also be imported using the .gds file: GT2N/gds/gt2_6t_std_cells.gds
33+
34+
LVS and DRC rulesets for icvalidator are present in "GT2N/icv_runset".
35+
36+
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)
37+
38+
The collaterals required for synthesis and PnR are (depending on the process corner and W/VT flavor):
39+
40+
LIB: GT2N/lib/tt/gt2_6t_w31_lvt_tt_0p7v25c.lib
41+
42+
LEF: GT2N/lef/tt/gt2_6t_w31_lvt.lef
43+
44+
Techlef: GT2N/techlib/gt2_tech.lef
45+
46+
ICT: GT2N/qrc/GT2.ict
47+
48+
QRCTech: GT2N/qrc/GT2_qrc.tch
49+
50+
ITF: GT2N/nxtgrd/GT2.itf
51+
52+
NXTGRD: GT2N/nxtgrd/GT2.nxtgrd
53+
54+
The GAAFET (3-stack nanosheet) model card is (depending on the process corner and W/VT flavor):
55+
56+
GT2N/device/tt/gt2_w31_lvt_tt.sp
57+
58+
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: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
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_tapbspdn_w31_lvt \
20+
gt2_6t_tapfspdn_w31_lvt gt2_6t_decapcc_w31_lvt \
21+
gt2_6t_tiehigh_w31_lvt gt2_6t_tielow_w31_lvt
22+
23+
# Fill cells used in fill cell insertion
24+
export FILL_CELLS ?= gt2_6t_filler_w31_lvt gt2_6t_decapcc_w31_lvt
25+
26+
#-----------------------------------------------------
27+
# Yosys / synthesis
28+
#-----------------------------------------------------
29+
export SYNTH_MINIMUM_KEEP_SIZE ?= 10000
30+
31+
export TIEHI_CELL_AND_PORT = gt2_6t_tiehigh_w31_lvt Y
32+
export TIELO_CELL_AND_PORT = gt2_6t_tielow_w31_lvt Y
33+
34+
export MIN_BUF_CELL_AND_PORTS = gt2_6t_buf_x1_w31_lvt A Y
35+
36+
# No latch/adder cells in this library; skip those map files
37+
export LATCH_MAP_FILE =
38+
export CLKGATE_MAP_FILE = $(PLATFORM_DIR)/cells_clkgate.v
39+
export ADDER_MAP_FILE =
40+
41+
export ABC_DRIVER_CELL = gt2_6t_buf_x1_w31_lvt
42+
# Cap value derived from inv_x1 input cap (~0.5 fF). Multiply by 4.
43+
export ABC_LOAD_IN_FF = 2.0
44+
45+
#--------------------------------------------------------
46+
# Floorplan
47+
#--------------------------------------------------------
48+
export PLACE_SITE = gt2_6t
49+
50+
# IO pin placement layers
51+
export IO_PLACER_H ?= M2
52+
export IO_PLACER_V ?= M3
53+
54+
# Define default PDN config
55+
export PDN_TCL ?= $(PLATFORM_DIR)/pdn.tcl
56+
57+
# Endcap and Welltie cells
58+
export TAPCELL_TCL ?= $(PLATFORM_DIR)/tapcell.tcl
59+
export TAP_CELL_NAME = gt2_6t_tapbspdn_w31_lvt
60+
61+
export MACRO_PLACE_HALO ?= 1.0 1.0
62+
63+
#---------------------------------------------------------
64+
# Place
65+
#---------------------------------------------------------
66+
export PLACE_DENSITY ?= 0.40
67+
68+
#---------------------------------------------------------
69+
# Route
70+
#---------------------------------------------------------
71+
export MIN_ROUTING_LAYER = M2
72+
export MIN_CLK_ROUTING_LAYER = M3
73+
export MAX_ROUTING_LAYER = M5
74+
75+
export FASTROUTE_TCL ?= $(PLATFORM_DIR)/fastroute.tcl
76+
77+
# KLayout technology file (drives GDS export)
78+
export KLAYOUT_TECH_FILE = $(PLATFORM_DIR)/gt2.lyt
79+
80+
#---------------------------------------------------------
81+
# IR Drop
82+
#---------------------------------------------------------
83+
export PWR_NETS_VOLTAGES ?= vdd 0.7
84+
export GND_NETS_VOLTAGES ?= vss 0.0
85+
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)