// ============================================================================ // q27_tcmos_btbt.va — Verilog-A Target Compact Model for Q27 Foundry Co-Design // Track A+ (Rev.1): Band-to-Band Tunneling Ternary CMOS (T-CMOS BTBT) // // Physics contract for foundry process integration: // Single transistor exhibits 3 distinct conduction regimes vs |Vgs|: // 1. OFF (|Vgs| < vth_btbt): I_off ~ 10 pA (subthreshold) // 2. MID (vth_btbt < |Vgs| < vth_mos): I_btbt ~ 50 nA (constant-current // band-to-band tunneling plateau) // 3. ON (|Vgs| > vth_mos): I_on ~ 200 uA (MOS drift channel) // // Architectural payoff vs standard planar CMOS (SKY130A): // - Standard Ternary Inverter (STI_2T): 2 transistors (vs 14T-27T planar CMOS) // - 1-Trit Static Memory (TSRAM_6T): 6 transistors (vs 32T planar CMOS) // - Shared VMID=VDD/2 supply rail: NOT REQUIRED (self-generated at 50 nA) // - Mid-state static power per STI_2T: ~90 nW at 1.8V (vs ~15-29 uW planar) // ============================================================================ `include "constants.vams" `include "disciplines.vams" module q27_ntfet_btbt(d, g, s, b); inout d, g, s, b; electrical d, g, s, b; parameter real vth_btbt = 0.35; // [V] BTBT turn-on threshold parameter real vth_mos = 1.38; // [V] Strong MOS inversion threshold (wide 0-plateau) parameter real i_btbt = 50.0e-9; // [A] Constant-current tunneling plateau parameter real k_mos = 800.0e-6;// [A/V^2] Strong MOS transconductance parameter real v_slope = 0.030; // [V] Transition smoothness (subthreshold) parameter real v_sat = 0.08; // [V] Drain saturation knee parameter real g_leak = 5.0e-12; // [S] Off-state leakage conductance parameter real c_g = 0.8e-15; // [F] Gate capacitance real vgs, vds, sw_btbt, v_ov, i_mos, i_core, id; analog begin vgs = V(g, s); vds = V(d, s); // Smooth BTBT plateau turn-on sw_btbt = 0.5 * (1.0 + tanh((vgs - vth_btbt) / v_slope)); // Smooth MOS overdrive above vth_mos v_ov = v_slope * ln(1.0 + exp(min((vgs - vth_mos) / v_slope, 40.0))); i_mos = k_mos * v_ov * v_ov; i_core = (i_btbt * sw_btbt + i_mos) * tanh(vds / v_sat); id = i_core + g_leak * vds; I(d, s) <+ id; I(g, s) <+ c_g * ddt(V(g, s)); I(g, d) <+ 0.3 * c_g * ddt(V(g, d)); end endmodule module q27_ptfet_btbt(d, g, s, b); inout d, g, s, b; electrical d, g, s, b; parameter real vth_btbt = 0.35; parameter real vth_mos = 1.38; parameter real i_btbt = 50.0e-9; parameter real k_mos = 800.0e-6; parameter real v_slope = 0.030; parameter real v_sat = 0.08; parameter real g_leak = 5.0e-12; parameter real c_g = 0.8e-15; real vsg, vsd, sw_btbt, v_ov, i_mos, i_core, isd; analog begin vsg = V(s, g); vsd = V(s, d); sw_btbt = 0.5 * (1.0 + tanh((vsg - vth_btbt) / v_slope)); v_ov = v_slope * ln(1.0 + exp(min((vsg - vth_mos) / v_slope, 40.0))); i_mos = k_mos * v_ov * v_ov; i_core = (i_btbt * sw_btbt + i_mos) * tanh(vsd / v_sat); isd = i_core + g_leak * vsd; I(s, d) <+ isd; I(g, s) <+ c_g * ddt(V(g, s)); I(g, d) <+ 0.3 * c_g * ddt(V(g, d)); end endmodule