Skip to content

Commit 6ea5454

Browse files
committed
gt2n: add the remaining W/Vt flavors from upstream 308b221
The platform was bringing up a single (w31, lvt) corner. Upstream 308b221 ships ten W/Vt combinations at tt 0.7V/25C: w13 (13 nm nanosheet) and w31 (31 nm), each in hvt / svt / lvt / ulvt / elvt. All ten use the same gt2_6t site (0.042 x 0.144) and the same tech LEF, so any subset of (W, Vt) tuples can coexist in a single block and synthesis can size + W/Vt-trade across the full menu. Vendor the nine new (W, Vt) triplets directly from upstream 308b221 (LEF + lib + GDS, all with the tap-cell split intact), and parameterise the platform config on two ordered lists modelled on asap7's ASAP7_USE_VT pattern: GT2N_USE_W nanosheet-width families to load. Default: 'w31'. GT2N_USE_VT Vt flavors to load. Default: 'lvt hvt svt ulvt elvt'. The first word of each list is the primary value. The (primary W, primary Vt) tuple drives canonical single-cell references (tap, tiehi/tielo, buffer, ABC driver); the rest of the Cartesian product rides along as additional LEF / lib / GDS so Yosys + ABC see every loaded sizing option. Includes the upstream lib refresh (default_operating_conditions, voltage_map, pg_pin annotations on every cell). Smoke: gt2n/gcd full flow clean, EXIT=0. Signed-off-by: Matthew Guthaus <mrg@ucsc.edu>
1 parent 87a1d90 commit 6ea5454

32 files changed

Lines changed: 244294 additions & 22 deletions

‎flow/platforms/gt2n/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# GT2N PDK
22

3-
> **Source:** copied from [azadnaeemi/GT2N](https://github.com/azadnaeemi/GT2N) at commit [`54f81feb2b`](https://github.com/azadnaeemi/GT2N/commit/54f81feb2b9c334d283538c1bc91bf3a34b02c02) (2026-06-05), which incorporates the BPR `OBS` → `PORT` fix from [azadnaeemi/GT2N#12](https://github.com/azadnaeemi/GT2N/issues/12). That commit also renames the tap cell `gt2_6t_tap_w31_lvt` into a `gt2_6t_tapfspdn_w31_lvt` / `gt2_6t_tapbspdn_w31_lvt` pair in the LEF and lib, but the matching GDS cells for the new names were not added upstream ([azadnaeemi/GT2N#16](https://github.com/azadnaeemi/GT2N/issues/16)). To keep the LEF, lib, and GDS consistent so KLayout GDS-merge resolves the tap instances at flow exit, this local copy keeps the BPR PORT geometry but undoes the rename: there is one macro / lib cell `gt2_6t_tap_w31_lvt`, matching the single tap cell still present in the GDS. Revisit once upstream resolves #16.
3+
> **Source:** copied verbatim from [azadnaeemi/GT2N](https://github.com/azadnaeemi/GT2N) at commit [`308b221`](https://github.com/azadnaeemi/GT2N/commit/308b221b82e19199a9691f2f78cbc7ce981481ca) (2026-06-09). This release splits the original `gt2_6t_tap_w*_*` cell into a frontside-PDN variant (`gt2_6t_tapfspdn_w*_*`, M1 + BPR pins, full width) and a backside-PDN variant (`gt2_6t_tapbspdn_w*_*`, BPR-only pins, half width) in both the LEF and the GDS, resolving the LEF / GDS mismatch we filed as [azadnaeemi/GT2N#16](https://github.com/azadnaeemi/GT2N/issues/16). The platform `TAP_CELL_NAME` points at the backside-PDN variant since the PDN here is backside-only. Also incorporates the BPR `OBS` → `PORT` fix from [azadnaeemi/GT2N#12](https://github.com/azadnaeemi/GT2N/issues/12).
44
55
<img src="./VirtualFabricationDemo.gif" alt="VirtualFabricationDemo" width="400">
66

‎flow/platforms/gt2n/config.mk‎

Lines changed: 65 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,90 @@
11
# 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.
2+
# Collateral lives entirely under this platform dir; all corners shipped
3+
# at tt 0.7V/25C only (SS/FF are upstream-under-development).
4+
#
5+
# Multi-W / multi-Vt setup (Cartesian product of two ordered lists,
6+
# modeled on asap7's ASAP7_USE_VT). All loaded (W, Vt) combos share
7+
# the same gt2_6t site (0.042 x 0.144) and the same tech LEF, so they
8+
# can coexist in a single block and synthesis can size + W/Vt-trade
9+
# across the full menu:
10+
#
11+
# GT2N_USE_W ordered list of nanosheet-width families to load.
12+
# w13 = 13 nm sheet (lower drive / lower cap / lower
13+
# leakage); w31 = 31 nm sheet. Default w31 only.
14+
# GT2N_USE_VT ordered list of Vt flavors to load. Default loads
15+
# all five (lvt hvt svt ulvt elvt) so ABC has the
16+
# full menu without forcing the user to enumerate.
17+
#
18+
# The first word of each list is the primary value. The (primary W,
19+
# primary Vt) tuple drives canonical single-cell references (tap,
20+
# tiehi/tielo, buffer, ABC driver). The rest of the Cartesian product
21+
# rides along as additional LEF / lib / GDS. Reorder either list to
22+
# pick a different synthesis default.
423

524
export PROCESS = 2
625

26+
export GT2N_USE_W ?= w31
27+
export GT2N_USE_VT ?= lvt hvt svt ulvt elvt
28+
29+
export PRIMARY_W = $(word 1, $(GT2N_USE_W))
30+
export OTHER_W = $(wordlist 2, $(words $(GT2N_USE_W)), $(GT2N_USE_W))
31+
export PRIMARY_VT = $(word 1, $(GT2N_USE_VT))
32+
export OTHER_VT = $(wordlist 2, $(words $(GT2N_USE_VT)), $(GT2N_USE_VT))
33+
34+
# Cartesian product of (W, Vt) used by every cell-name template below.
35+
ALL_WVT = $(foreach w,$(GT2N_USE_W), $(foreach vt,$(GT2N_USE_VT),$(w)_$(vt)))
36+
PRIMARY_WVT = $(PRIMARY_W)_$(PRIMARY_VT)
37+
OTHER_WVT = $(filter-out $(PRIMARY_WVT),$(ALL_WVT))
38+
739
#-----------------------------------------------------
840
# Tech/Libs
941
#-----------------------------------------------------
1042
export TECH_LEF = $(PLATFORM_DIR)/lef/gt2_tech.lef
11-
export SC_LEF = $(PLATFORM_DIR)/lef/gt2_6t_w31_lvt.lef
43+
export SC_LEF = $(PLATFORM_DIR)/lef/gt2_6t_$(PRIMARY_WVT).lef
44+
export ADDITIONAL_LEFS += $(foreach wvt,$(OTHER_WVT), \
45+
$(PLATFORM_DIR)/lef/gt2_6t_$(wvt).lef)
1246

13-
export LIB_FILES = $(PLATFORM_DIR)/lib/gt2_6t_w31_lvt_tt_0p7v25c.lib \
47+
export LIB_FILES = $(PLATFORM_DIR)/lib/gt2_6t_$(PRIMARY_WVT)_tt_0p7v25c.lib \
48+
$(foreach wvt,$(OTHER_WVT), \
49+
$(PLATFORM_DIR)/lib/gt2_6t_$(wvt)_tt_0p7v25c.lib) \
1450
$(ADDITIONAL_LIBS)
15-
export GDS_FILES = $(PLATFORM_DIR)/gds/gt2_6t_std_cells_w31_lvt.gds \
16-
$(ADDITIONAL_GDS)
1751

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 \
21-
gt2_6t_tiehigh_w31_lvt gt2_6t_tielow_w31_lvt
52+
export GDS_FILES = $(PLATFORM_DIR)/gds/gt2_6t_std_cells_$(PRIMARY_WVT).gds \
53+
$(foreach wvt,$(OTHER_WVT), \
54+
$(PLATFORM_DIR)/gds/gt2_6t_std_cells_$(wvt).gds) \
55+
$(ADDITIONAL_GDS)
2256

23-
# Fill cells used in fill cell insertion
24-
export FILL_CELLS ?= gt2_6t_filler_w31_lvt gt2_6t_decapcc_w31_lvt
57+
# Cells that should not be used in synthesis/optimization (tap / filler
58+
# / decap / tie across every loaded W,Vt combo).
59+
export DONT_USE_CELLS = $(foreach wvt,$(ALL_WVT), \
60+
gt2_6t_filler_$(wvt) \
61+
gt2_6t_tapfspdn_$(wvt) \
62+
gt2_6t_tapbspdn_$(wvt) \
63+
gt2_6t_decapcc_$(wvt) \
64+
gt2_6t_tiehigh_$(wvt) \
65+
gt2_6t_tielow_$(wvt))
66+
67+
# Fill cells used in fill cell insertion.
68+
export FILL_CELLS ?= $(foreach wvt,$(ALL_WVT), \
69+
gt2_6t_filler_$(wvt) \
70+
gt2_6t_decapcc_$(wvt))
2571

2672
#-----------------------------------------------------
2773
# Yosys / synthesis
2874
#-----------------------------------------------------
2975
export SYNTH_MINIMUM_KEEP_SIZE ?= 10000
3076

31-
export TIEHI_CELL_AND_PORT = gt2_6t_tiehigh_w31_lvt Y
32-
export TIELO_CELL_AND_PORT = gt2_6t_tielow_w31_lvt Y
77+
export TIEHI_CELL_AND_PORT = gt2_6t_tiehigh_$(PRIMARY_WVT) Y
78+
export TIELO_CELL_AND_PORT = gt2_6t_tielow_$(PRIMARY_WVT) Y
3379

34-
export MIN_BUF_CELL_AND_PORTS = gt2_6t_buf_x1_w31_lvt A Y
80+
export MIN_BUF_CELL_AND_PORTS = gt2_6t_buf_x1_$(PRIMARY_WVT) A Y
3581

3682
# No latch/adder cells in this library; skip those map files
3783
export LATCH_MAP_FILE =
3884
export CLKGATE_MAP_FILE = $(PLATFORM_DIR)/cells_clkgate.v
3985
export ADDER_MAP_FILE =
4086

41-
export ABC_DRIVER_CELL = gt2_6t_buf_x1_w31_lvt
87+
export ABC_DRIVER_CELL = gt2_6t_buf_x1_$(PRIMARY_WVT)
4288
# Cap value derived from inv_x1 input cap (~0.5 fF). Multiply by 4.
4389
export ABC_LOAD_IN_FF = 2.0
4490

@@ -56,7 +102,9 @@ export PDN_TCL ?= $(PLATFORM_DIR)/pdn.tcl
56102

57103
# Endcap and Welltie cells
58104
export TAPCELL_TCL ?= $(PLATFORM_DIR)/tapcell.tcl
59-
export TAP_CELL_NAME = gt2_6t_tap_w31_lvt
105+
# The PDN here is backside-only, so pick the backside-PDN tap variant
106+
# (BPR pins only, half-width, no M1 shapes).
107+
export TAP_CELL_NAME = gt2_6t_tapbspdn_$(PRIMARY_WVT)
60108

61109
export MACRO_PLACE_HALO ?= 1.0 1.0
62110

382 KB
Binary file not shown.
382 KB
Binary file not shown.
378 KB
Binary file not shown.
382 KB
Binary file not shown.
382 KB
Binary file not shown.
382 KB
Binary file not shown.
382 KB
Binary file not shown.
2 KB
Binary file not shown.

0 commit comments

Comments
 (0)