(Symbol jtl1);
($Id:$);
(PHYSICAL);
(RESOLUTION 1000);
9 jtl1;
DS 0 1 1;
DF;
E
(ELECTRICAL);
(RESOLUTION 1000);
5 10 1 0 -18000:-9000 5000:6000 0x0 IN;
5 10 2 1 14000:-3000 5000:6000 0x0 OUT;
5 10 3 2 -2000:-6000 20000:9000 0x0 VBIAS;
5 18 1
  L VALU:
  94 <<vbias>> -7000 7000 0 1869 707:
  94 <<in>> -8000 6000 0 520 560:
  94 <<out>> -5000 6000 0 960 560:
  L ETC2:
  94 <<JTL>> -7000 5000 0 2200 1232:
  L ETC1:
  B 4000 4000 -6000 6000:
  L SCED:
  W 0 -6000 9000 -6000 8000:
  W 0 -9000 6000 -8000 6000:
  W 0 -4000 6000 -3000 6000:
;
5 11 X 0 subckt;
9 jtl1;
DS 0 1 1;
(SymbolCall gnd);
5 10 0 0 -10000 -9000;
1 Bound -11000 -11600 -9000 -9000;
9 gnd;
C 0 T -11000 -10000;
(SymbolCall gnd);
5 10 0 0 6000 -9000;
1 Bound 5000 -11600 7000 -9000;
9 gnd;
C 0 T 5000 -10000;
(SymbolCall ind1);
5 10 7 0 -10000 -5000 LP0_0;
5 10 0 1 -10000 -9000 LP0_1;
5 15 -9000 -5000 0 -1;
5 2 .1pH;
5 11 LP 0;
1 Bound -10000 -9000 -8750 -5000;
9 ind1;
C 0 T -11000 -14000;
(SymbolCall ind1);
5 10 8 0 6000 -5000 LP1_0;
5 10 0 1 6000 -9000 LP1_1;
5 15 7000 -5000 0 -1;
5 2 .1pH;
5 11 LP 1;
1 Bound 6000 -9000 7250 -5000;
9 ind1;
C 0 T 5000 -14000;
(SymbolCall ind2);
5 10 1 0 -18000 5000 LT0_0;
5 10 5 1 -10000 5000 LT0_1;
5 15 -17000 6000 1 0;
5 2 2.1pH;
5 11 LT 0;
1 Bound -18000 5000 -10000 6250;
( Rotate 90 );
9 ind2;
C 0 R 0 1 T -8000 4000;
(SymbolCall ind2);
5 10 5 0 -10000 5000 LT1_0;
5 10 4 1 -2000 5000 LT1_1;
5 15 -9000 6000 1 0;
5 2 2.1pH;
5 11 LT 1;
1 Bound -10000 5000 -2000 6250;
( Rotate 90 );
9 ind2;
C 0 R 0 1 T 0 4000;
(SymbolCall ind2);
5 10 4 0 -2000 5000 LT2_0;
5 10 6 1 6000 5000 LT2_1;
5 15 -1000 6000 1 0;
5 2 2.1pH;
5 11 LT 2;
1 Bound -2000 5000 6000 6250;
( Rotate 90 );
9 ind2;
C 0 R 0 1 T 8000 4000;
(SymbolCall ind2);
5 10 6 0 6000 5000 LT3_0;
5 10 2 1 14000 5000 LT3_1;
5 15 7000 6000 1 0;
5 2 2.1pH;
5 11 LT 3;
1 Bound 6000 5000 14000 6250;
( Rotate 90 );
9 ind2;
C 0 R 0 1 T 16000 4000;
(SymbolCall jj);
5 10 9 2 -11000 3000 B0_2;
5 10 7 1 -10000 -5000 B0-;
5 10 5 0 -10000 5000 B0+;
5 11 B 0;
5 1 jjr;
5 3 area=.25;
1 Bound -11500 -5000 -8500 5000;
9 jj;
C 0 T -11000 -5000;
(SymbolCall jj);
5 10 10 2 5000 3000 B1_2;
5 10 8 1 6000 -5000 B1-;
5 10 6 0 6000 5000 B1+;
5 11 B 1;
5 1 jjr;
5 3 area=.25;
1 Bound 4500 -5000 7500 5000;
9 jj;
C 0 T 5000 -5000;
(SymbolCall res);
5 10 4 1 -2000 10000 R0-;
5 10 3 0 -2000 20000 R0+;
5 15 -3000 19000 0 -1 "<v>/<value>O";
5 2 29;
5 11 R 0;
1 Bound -3250 10000 -1000 20000;
9 res;
C 0 T -2000 20000;
L SCED;
5 10 4;
W2 0 -2000 5000 -2000 10000;
L ETC1;
94 <<0.35mA>> -6000 8000 0 2932 933;
L NAME;
5 16 R 0 11;
94 <<R0>> -3500 15000 64 1275 1000;
5 16 LT 0 11;
94 <<LT0>> -17750 6500 0 1875 1000;
5 16 LT 1 11;
94 <<LT1>> -9750 6500 0 1650 1000;
5 16 LT 2 11;
94 <<LT2>> -1750 6500 0 1875 1000;
5 16 LT 3 11;
94 <<LT3>> 6250 6500 0 1875 1000;
5 16 B 0 11;
94 <<B0>> -11750 0 64 1275 1000;
5 16 B 1 11;
94 <<B1>> 4250 0 64 1050 1000;
5 16 LP 0 11;
94 <<LP0>> -10250 -7000 64 1875 1000;
5 16 LP 1 11;
94 <<LP1>> 5750 -7000 64 1650 1000;
L MODL;
5 16 B 0 1;
94 <<jjr>> -8250 250 0 1725 1000;
5 16 B 1 1;
94 <<jjr>> 7750 250 0 1725 1000;
L VALU;
5 16 R 0 2;
94 <<29>> -750 15250 0 1275 1000;
5 16 LT 0 2;
94 <<2.1pH>> -12250 3750 64 2475 1000;
5 16 LT 1 2;
94 <<2.1pH>> -4250 3750 64 2475 1000;
5 16 LT 2 2;
94 <<2.1pH>> 3750 3750 64 2475 1000;
5 16 LT 3 2;
94 <<2.1pH>> 11750 3750 64 2475 1000;
5 16 LP 0 2;
94 <<.1pH>> -8500 -8750 0 1875 1000;
5 16 LP 1 2;
94 <<.1pH>> 7500 -8750 0 1875 1000;
L PARM;
5 16 B 0 3;
94 <<area=.25>> -8250 -1250 0 4425 1000;
5 16 B 1 3;
94 <<area=.25>> 7750 -1250 0 4425 1000;
DF;
E
* Generated by Xic from cell jtl
.tran 1p 20n
* Include file for "Dr. Whiteley's" PDK.
* S. Whiteley 10/4/2019
******************************************************************************
*** Configuration
*
* Here default values are given to the various parameters used for
* simulation.  Any of these parameters can be overridden in the user's
* SPICE deck, the user's .param statements can occur before or after
* the .include line for this file.  Probably, the user will not need
* to alter this file, but feel free.
* Simulator-specific setup, support for HSPICE and WRspice.
*
.param WRSPICE_PROGRAM=0
.if (WRSPICE_PROGRAM==1)
* This branch taken when running in WRspice.
.options submaps="j,b" ysep
.else
* HSPICE is assumed here.
* HSPICE needs this or the internal time step may be too large.
.option technology=sce pva_timeres=1e-14
* Load the JJ Verilog model.
.hdl '$SNPS_PDK_HOME/models/veriloga/jj.va'
* End simulator-specific.
.endif
* Josephson junction model parameters.
*
* PI junction, or not.
* If the pijj flag is set, the JJ is a "pi" junction, meaning it has
* an internal ground-state phase of pi rather than 0.  Such junctions
* have been made using ferromagnetic barrier materials. 
*
.if (!def(PIJJ))
.param PIJJ=0
.endif
* Turn on/off quasiparticle branch and critical current.
*
.if (!def(RTYPE))
.param RTYPE=1
.endif
.if (!def(CCT))
.param CCT=1
.endif
* Factor used in timestep control.  This is similar to the WRspice
* dphimax parameter, dphimax/pi = tsfactor.  Smaller values might
* improve accuracy, but at the expense of longer run time.  If not
* set explicitly, actual value will be obtained from WRspice.
* The JJ model default for TSFACTOR may be too coarse when high
* accuracy is needed.  We can set this explicitly to a smaller value
* when necessary.
*
.if (!def(TSFACTOR))
.param TSFACTOR=0.1
.endif
* Critical current of model reference junction.
*
.if (!def(ICRIT))
.param ICRIT=1.0m
.endif
* Capacitance per critical current, F/A.
*
.if (!def(CPIC))
.param CPIC=7e-10
.endif
* Capacitance for reference junction (obsolete, set by cpic).
*
*.if (!def(CAP))
*.param CAP=7e-13
*.endif
* Capacitance scaling parameter.
* caps = cap*(area*(1-cmu) + sqrt(area)*cmu)
*
.if (!def(CMU))
.param CMU=0.0
.endif
* The gap voltage and width.
*
.if (!def(VGAP))
.param VGAP=2.6m
.endif
.if (!def(DELV))
.param DELV=0.08m
.endif
* Ratio of critical current to quasiparticle step height.
*
.if (!def(ICFCT))
.param ICFCT=0.785398
.endif
* The subgap and normal resistances.  If vshunt is given, a fixed
* shunt is added so that Ic*Reff = vshunt.  The rsub and rnorm
* parameters are not used, values are set by vm and icrn.
*
.if (!def(VM))
.param VM=16.5m
.endif
*.if (!def(RSUB))
*.param RSUB=16.5
*.endif
.if (!def(ICRN))
.param ICRN=1.65m
.endif
*.if (!def(RNORM))
*.param RNORM=1.65
*.endif
* For JJ model shunt resistance and GPULSE source amplitude.  This
* should be set to 0.0 for unshunted junctions.
*
.if (!def(VSHUNT))
.param VSHUNT=0.6857m
.endif
* Conductance scaling parameter.
* gxs = gx*(area*(1-gmu) + sqrt(area)*gmu)
* Applies to rsub, rnorm.
*
.if (!def(GMU))
.param GMU=0.0
.endif
* Provide some defaults for the JJ parasitics.  These can be zeroed if
* not wanted.
.if (!def(LSH0))
.param LSH0=0.3pH
.endif
.if (!def(LSH1))
.param LSH1=0.15p
.endif
*
* End of JJ model parameters.
* Josephson junction instance parameters.
*
* Series parasitic inductance.
*
.if (WRSPICE_PROGRAM==0)
* HSPICE only
.if (!def(LSER))
.param LSER=0.25pH
.endif
.endif
* The LSH can be given per-instance and will override LSH0/LSH1.
*
*.if (!def(LSH))
*.param LSH=0.5pH
*.endif
*
* End of JJ instance parameters.
* SFQ pulse width, for GPULSE source PW parameter, 2*phi0*sqrt(log(2)/pi)/V
*
.param SFQPW='1.94260e-15/VSHUNT'
* Some parameters used by Hypres in their library cells
*
.include $SNPS_PDK_HOME/models/include/hyp.inc
* Support for the "pwrcell" polymorphic xSFQ bias cell.
*
.include $SNPS_PDK_HOME/models/include/pwrcell.inc
*
* Josephson junction model.
*
.if (WRSPICE_PROGRAM==1)
* Running WRspice: LSER is not a model parameter.
.model jj_s jj(
+  pijj='PIJJ'
+  rtype='RTYPE'
+  cct='CCT'
+  tsfactor='TSFACTOR'
+  icrit='ICRIT'
+  cpic='CPIC'
+  cmu='CMU'
+  vgap='VGAP'
+  delv='DELV'
+  icfct='ICFCT'
+  vm='VM'
+  icrn='ICRN'
+  vshunt='VSHUNT'
+  lsh0='LSH0'
+  lsh1='LSH1'
+  )
.else
* Running HSPICE: will recognize LSER as a model param, so will be
* applied to all instances (but can be overridden per-instance).
*
* The defult LSER will be applied to all instances in HSPICE, but
* NOT in WRspice.
.model jj_s jj(
+  pijj='PIJJ'
+  rtype='RTYPE'
+  cct='CCT'
+  tsfactor='TSFACTOR'
+  icrit='ICRIT'
+  cpic='CPIC'
+  cmu='CMU'
+  vgap='VGAP'
+  delv='DELV'
+  icfct='ICFCT'
+  vm='VM'
+  icrn='ICRN'
+  vshunt='VSHUNT'
+  lsh0='LSH0'
+  lsh1='LSH1'
+  lser='LSER'
+  )
.endif
* We don't use these model parameters at present as the values are set
* by other parameters.
*
*  cap='CAP'
*  rsub='RSUB'
*  rnorm='RNORM'
* End of jjincl.inc inclusion.
B0 5 7 9 jjr area=.25
B1 6 8 10 jjr area=.25
LP0 7 0 .1pH
LP1 8 0 .1pH
LT0 IN 5 2.1pH
LT1 5 4 2.1pH
LT2 4 6 2.1pH
LT3 6 OUT 2.1pH
R0 VBIAS 4 29
.model jjr jj(rtype=1, cct=1, icon=10m, vg=2.8m, delv=0.08m,
+ icrit=1m, vshunt=0.5mV cap=1.31p)

