Options ResourceUsage=yes UseNutmegFormat=no EnableOptim=no TopDesignName="PA3_lib:Test5_FullPA_Optimization_v6:schematic" DcopOutputNodeVoltages=yes DcopOutputPinCurrents=yes DcopOutputAllSweepPoints=no DcopOutputDcopType=0
; Library Name: PA3_lib
; Cell Name: 5 SecondStage_v6
; View Name: schematic
define "5#20SecondStage_v6" ( P1 P2 )
;parameters
L:L3 P1 0 L=1.331216 nH R=1e-12 Ohm Noise=yes
C:C3 P1 vg C=7.268545 pF
L:L2 P2 0 L=1.277087 nH R=1e-12 Ohm Noise=yes
C:C2 vd P2 C=5.308445 pF
simulator lang=ads
Vdd2=1.8
Vgg21=0.3 tune{ -0.1 to 1 by 0.1 }
V_Source:SRC3 Vgg21 0 Type="V_DC" Vdc=Vgg21 V SaveCurrent=1
"nmos_rf":M1 vd vg 0 0 lr=0.18 um wr=8 um nr=64
V_Source:SRC1 Vdd2 0 Type="V_DC" Vdc=Vdd2 V SaveCurrent=1
R:R2 Vgg21 vg R=1 kOhm Noise=yes
Short:Idc N__4 vd Mode=0 SaveCurrent=yes
L:L1 Vdd2 N__4 L=0.51 nH Noise=yes
C:C1 0 vd C=2 pF
end "5#20SecondStage_v6"
Tran:Tran1 StartTime=1 nsec StopTime=1.5 nsec MaxTimeStep=1.0 nsec LimitStepForTL=yes TimeStepControl=2 TruncTol=7.0 ChargeTol=1.0e-14 IntegMethod=0 MaxGearOrder=2 \
Mu=0.5 MaxOrder=4 Freq[1]=1.0 GHz Order[1]=3 HB_Window=no \
HB_Sol=no ImpApprox=no ShortTL_Delay=1.0 psec ImpMode=1 UseInitCond=no \
LoadGminDC=no CheckKCL=yes CheckOnlyDeltaV=yes OverloadAlert=no DeviceBypass=no \
MaxIters=10 MaxItersDC=200 DevOpPtLevel=0 StatusLevel=2 OutputAllPoints=yes \
NoiseScale=1 ImpEnforcePassivity=yes \
OutputPlan="Tran1_Output"
OutputPlan:Tran1_Output \
Type="Output" \
UseNodeNestLevel=yes \
NodeNestLevel=2 \
UseEquationNestLevel=yes \
EquationNestLevel=2 \
UseSavedEquationNestLevel=yes \
SavedEquationNestLevel=2 \
UseDeviceCurrentNestLevel=no \
DeviceCurrentNestLevel=0 \
DeviceCurrentDeviceType="All" \
DeviceCurrentSymSyntax=yes \
UseCurrentNestLevel=yes \
CurrentNestLevel=999 \
UseDeviceVoltageNestLevel=no \
DeviceVoltageNestLevel=0 \
DeviceVoltageDeviceType="All"
"5#20SecondStage_v6":X1 N__4 N__6
S_Param:SP2 CalcS=yes CalcY=no CalcZ=no GroupDelayAperture=1e-4 FreqConversion=no FreqConversionPort=1 StatusLevel=2 CalcNoise=no SortNoise=0 BandwidthForNoise=1.0 Hz DevOpPtLevel=0 \
SweepVar="freq" SweepPlan="SP2_stim" OutputPlan="SP2_Output"
SweepPlan: SP2_stim Start=1 GHz Stop=20 GHz Step=0.5 GHz
OutputPlan:SP2_Output \
Type="Output" \
UseEquationNestLevel=yes \
EquationNestLevel=2 \
UseSavedEquationNestLevel=yes \
SavedEquationNestLevel=2
#load "python","LinearCollapse"
Component Module="LinearCollapse" Type="ModelExtractor" NetworkRepresentation=2
Port:Term3 vout 0 Num=2 Z=50 Ohm Noise=yes
Port
ORT1 vin 0 Num=1 Z=50 Ohm P[1]=dbmtow(Pavs) Freq[1]=RFfreq Noise=yes Pac=polar(dbmtow(0),0)
Short:Iload N__6 vout Mode=0 SaveCurrent=yes
Short:Iin vin N__4 Mode=0 SaveCurrent=yes
HB:HB1 MaxOrder=4 Freq[1]=RFfreq Order[1]=3 StatusLevel=2 SweepVar="Pavs" SweepPlan="HB1_stim" OutputPlan="HB1_Output"
SweepPlan: HB1_stim Start=-5 Stop=20 Step=1
OutputPlan:HB1_Output \
Type="Output" \
UseNodeNestLevel=yes \
NodeNestLevel=2 \
UseEquationNestLevel=yes \
EquationNestLevel=2 \
UseSavedEquationNestLevel=yes \
SavedEquationNestLevel=2 \
UseDeviceCurrentNestLevel=no \
DeviceCurrentNestLevel=0 \
DeviceCurrentDeviceType="All" \
DeviceCurrentSymSyntax=yes \
UseCurrentNestLevel=yes \
CurrentNestLevel=999 \
UseDeviceVoltageNestLevel=no \
DeviceVoltageNestLevel=0 \
DeviceVoltageDeviceType="All"
Tran:HB1_tran HB_Sol=1 SteadyState=1 StatusLevel=3 \
Freq[1]=RFfreq Order[1]=3
Component:tahb_HB1 Module="ATAHB" Type="ModelExtractor" \
Tran_Analysis="HB1_tran" HB_Analysis="HB1"
Pavs=5
RFfreq=5 GHz tune{ 1 GHz to 36 GHz by 1 GHz }