# The circuits ts/scripts/make-test-sources.ts adds scopes and switch clicks to, for tests
# (see there for the format).  Element numbers are from
#   npx tsx scripts/make-test-sources.ts --list <circuit file>
# Clicks are mostly a Gray-code walk through every combination of up to 4 inputs, or each
# input on and off for more.

circuits/nandff.txt  scopes=10,11  speed=4  clicks=9@2e-4,9@4e-4,8@6e-4,8@8e-4,9@1e-3,9@1.2e-3
circuits/3-cgand.txt  scopes=43  speed=32  steps=fill  clicks=45,45,45,44,45,45,45,44,45,45,45,44
circuits/3-cgor.txt  scopes=25  speed=32  steps=fill  clicks=30,30,30,29,30,30,30,29,30,30,30,29
circuits/3-f211.txt  scopes=7  speed=32  steps=fill  clicks=8,8,8
circuits/3-f220.txt  scopes=7  speed=32  steps=fill  clicks=8,8,8
circuits/3-f221.txt  scopes=7  speed=32  steps=fill  clicks=8,8,8
circuits/3-invert.txt  scopes=15  speed=32  steps=fill  clicks=18,18,18
circuits/adder4-sc.txt  scopes=84,85,86,87  speed=32  clicks=0,0,19,19,20,20,21,21,22,22,23,23,24,24,25,25
circuits/alu74181.txt  scopes=325,330,335,351,416,417,418,419  speed=32  clicks=113,113,114,114,115,115,116,116,125,125,126,126,127,127,128,128
circuits/brentkung.txt  probes=275.0,275.1,275.2,275.3,275.4,275.5,275.6,275.7,275.8  scopes=p0+p1+p2,p3+p4+p5,p6+p7+p8  speed=32  clicks=6,8,7,9,38,39,205,207,214,217,220,221,222,225,228,229
circuits/cmosff.txt  scopes=44,45  speed=32  clicks=15,36,15
circuits/cmosinverter.txt  scopes=7  speed=32  clicks=6
circuits/cmosmsff.txt  scopes=23,24  speed=32  clicks=22
circuits/cmosnand.txt  scopes=4  speed=32  clicks=16,17,16
circuits/cmosnor.txt  scopes=7  speed=32  clicks=16,17,16
circuits/cmosxor.txt  scopes=24  speed=32  clicks=16,17,16
circuits/cs-currentadder.txt  scopes=8:i,10:i  speed=32
circuits/cs-resistor.txt  scopes=6  speed=32
circuits/cs-varyresistor.txt  scopes=8  speed=32
circuits/dac.txt  scopes=16  speed=32  clicks=8,9,8,13,8,9,8,14,8,9,8,13,8,9,8
circuits/decoder.txt  scopes=24,25,26,27  speed=32  clicks=19,22,19
circuits/digcompare.txt  scopes=44,45,53  speed=32  clicks=0,3,0,4,0,3,0,5,0,3,0,4,0,3,0
circuits/dram.txt  scopes=69  speed=32  clicks=47,47,48,48,60,60,61,61,71,71
circuits/dtlinverter.txt  scopes=4  speed=32  clicks=10
circuits/dtlnand.txt  scopes=4  speed=32  clicks=9,16,9,17,9,16,9
circuits/dtlnor.txt  scopes=10  speed=32  clicks=23,26,23
circuits/eclnor.txt  scopes=51,52  speed=32  clicks=49,50,49
circuits/fanout.txt  scopes=8,27,32,42,61,71,77  speed=32  clicks=9,10,9
circuits/fulladd.txt  scopes=10,25  speed=32  clicks=15,16,15,17,15,16,15
circuits/halfadd.txt  scopes=12,13  speed=32  clicks=2,3,2
circuits/johnsonctr.txt  scopes=82,83,84,89,90,100,101,102  speed=32
circuits/ledflasher.txt  scopes=4:i,7:i,8:i,9:i,10:i,20:i  speed=32  clicks=1
circuits/majority.txt  scopes=21  speed=32  clicks=0,1,0,2,0,1,0
circuits/multivib-bi.txt  scopes=10,12  speed=32  clicks=16,17,16
circuits/mux3state.txt  scopes=27  speed=32  clicks=8,29,8,35,8,29,8
circuits/nmosinverter.txt  scopes=4  speed=32  clicks=2
circuits/nmosinverter2.txt  scopes=10  speed=32  clicks=9
circuits/nmosinverter3.txt  scopes=9  speed=32  clicks=8
circuits/nmosnand.txt  scopes=3  speed=32  clicks=11,12,11
circuits/opamp.txt  scopes=3  speed=32
circuits/opampfeedback.txt  scopes=2  speed=32
circuits/potdivide.txt  scopes=4,5,6  speed=32
circuits/priencoder.txt  scopes=19,20,23  speed=32  clicks=9,10,9,13,9,10,9,15,9,10,9,13,9,10,9
circuits/r2rladder.txt  scopes=29  speed=32  clicks=17,18,17,19,17,18,17,40,17,18,17,19,17,18,17
circuits/relayand.txt  scopes=17  speed=32  clicks=14,15,14,16,14,15,14
circuits/relaymux.txt  scopes=23,24,25,26,27,28,29,30  speed=32  clicks=9,10,9,11,9,10,9
circuits/relayor.txt  scopes=13  speed=32  clicks=10,11,10,12,10,11,10
circuits/relayxor.txt  scopes=14  speed=32  clicks=9,10,9
circuits/ringcascade.txt  scopes=28+29+30+31,32+33+34+35,36+37+38+39,40+41+42+43  speed=185  steps=72200
circuits/rtlinverter.txt  scopes=6  speed=32  clicks=4
circuits/rtlnand.txt  scopes=16  speed=32  clicks=13,14,13,15,13,14,13
circuits/rtlnor.txt  scopes=22  speed=32  clicks=11,12,11,13,11,12,11
circuits/sipo-sr.txt  scopes=20,21,22,23  speed=32  clicks=9
# write 1 to row 1 and 0 to row 0, read both, then write 0 to row 1 and 1 to row 0 and read both
circuits/sram.txt  scopes=81,66,80,78  speed=32  steps=fill  clicks=78@0.004312,78@0.008623,66@0.01293,80@0.01725,78@0.02156,78@0.02587,66@0.03018,66@0.03449,80@0.0388,78@0.04312,78@0.04743,66@0.05174,80@0.05605,78@0.06036,78@0.06467,66@0.06899,66@0.0733
circuits/swtreedac.txt  scopes=13  speed=32  clicks=45,47,45,49,45,47,45
circuits/synccounter.txt  probes=42.0,42.1,42.2,42.3  scopes=p0+p1+p2+p3  speed=32
circuits/td4-add2.txt  scopes=46:i,56:i,58:i,60:i  speed=32  clicks=78,78,79,79,80,80,81,81,87,87,108,108
circuits/td4-ctr-dn.txt  scopes=46:i,56:i,58:i,60:i  speed=32  clicks=78,78,79,79,80,80,81,81,87,87,108,108
circuits/td4-ctr-up-dn.txt  scopes=46:i,56:i,58:i,60:i  speed=32  clicks=78,78,79,79,80,80,81,81,87,87,108,108
circuits/td4-ctr.txt  scopes=46:i,56:i,58:i,60:i  speed=32  clicks=78,78,79,79,80,80,81,81,87,87,108,108
circuits/td4.txt  scopes=46:i,56:i,58:i,60:i  speed=32  clicks=78,78,79,79,80,80,81,81,87,87,108,108
circuits/traffic.txt  scopes=16:i,17:i,18:i,20:i,21:i,22:i  speed=32
circuits/ttlinverter.txt  scopes=7  speed=32  clicks=3
circuits/ttlnand.txt  scopes=15  speed=32  clicks=10,11,10
circuits/ttlnor.txt  scopes=13  speed=32  clicks=2,14,2
circuits/unishiftreg.txt  scopes=185+186+187+188  speed=88  steps=35000  clicks=173@0.0025,179@0.0026,170@0.0027,171@0.0028,171@0.0225,172@0.0425,181@0.0525,170@0.0725,171@0.0825,172@0.1225,181@0.1325,171@0.1525
circuits/updownctr.txt  probes=63.0,63.1,63.2,63.3  scopes=p0+p1+p2+p3  speed=32  clicks=14
circuits/voltdivide.txt  scopes=5,12,13,14  speed=32
circuits/voltinvert.txt  scopes=19  speed=32
circuits/wheatstone.txt  scopes=9:i  speed=32
circuits/xor.txt  scopes=12  speed=32  clicks=13,14,13
tests/ammeterbug.txt  scopes=5,6:i  speed=32
tests/cc-nested7.txt  scopes=8,9  speed=32  clicks=2,2,3,3,4,4,5,5,6,6,7,7
tests/ccvs.txt  scopes=7  speed=32
tests/ccvs2.txt  scopes=5  speed=32
tests/mux.txt  scopes=5  speed=32  clicks=1,1,2,2,3,3,4,4,9,9
tests/prova8.txt  probes=89.0,89.1,89.2,89.3,140.0,140.1,140.2,140.3,151.0,151.1,151.2,151.3  scopes=p0+p1+p2+p3,p4+p5+p6+p7,p8+p9+p10+p11  speed=32  clicks=2,2,15,15,16,16,17,17,18,18,45,45,46,46,47,47
# toggle each address bit (9, 8, 10, 14, 6), OE off and on, write address 6 (with the data lines undriven: 0), read 7 and 6
tests/sram.txt  scopes=7,8,9,10  speed=32  steps=fill  clicks=5,4,3,1,6,6,2,2,5,5
tests/tflipflop.txt  scopes=3,11,12  speed=32  clicks=2,8,2,9,2,8,2,10,2,8,2,9,2,8,2

# no logic outputs: the currents and voltages that show what they do
circuits/3way.txt  scopes=1:i  speed=32  clicks=4,7,4,7
circuits/4way.txt  scopes=1:i  speed=32  clicks=4,11,3,17,4,11
circuits/7segdecoder.txt  probes=20.out,21.out,22.out,23.out,24.out,25.out,26.out  speed=32  clicks=8,9,8,10,8,9,8,11,8,9,8,10,8,9,8
circuits/cappar.txt  scopes=0:i,14:i  speed=32  clicks=1,10,1,10
circuits/capseries.txt  scopes=0:i,16:i  speed=32  clicks=1,12,1,12
circuits/indpar.txt  scopes=0:i,13:i  speed=32  clicks=1,10,1,10
circuits/indseries.txt  scopes=0:i,13:i  speed=32  clicks=1,10,1,10
circuits/cc2.txt  scopes=1:i,5:i  speed=32
circuits/cc2n.txt  scopes=1:i,5:i  speed=32
circuits/cciamp.txt  scopes=4:i  speed=32
circuits/cc2imp.txt  scopes=24:i,27:i  speed=32
circuits/cc2impn.txt  scopes=22:i,50:i  speed=32
circuits/cube.txt  scopes=12:i  speed=32
circuits/currentsrc.txt  scopes=1:i,8:i  speed=32  clicks=7,7
circuits/darlington.txt  scopes=1:i,4:i  speed=32  clicks=2,2
circuits/diodevar.txt  scopes=3:i  speed=32
circuits/grid.txt  scopes=0:i  speed=32
circuits/grid2.txt  scopes=0:i,1:i  speed=32
circuits/inductkick-block.txt  scopes=7:i,6  speed=32  clicks=3,3
circuits/latchingrelay.txt  scopes=0:i,5:i  speed=4  clicks=1,1,1,1
circuits/ledarray.txt  scopes=24:i,25:i,26:i,53:i,54:i  speed=32
circuits/mirror.txt  scopes=9:i,10:i  speed=32  clicks=12,15,12,15
circuits/moscurrentsrc.txt  scopes=5:i  speed=32  clicks=8,8
circuits/mosmirror.txt  scopes=19:i,20:i  speed=32  clicks=16,21,16,21
circuits/mosswitch.txt  scopes=2:i,4  speed=32  clicks=0,0
circuits/motorprotect.txt  scopes=4:i,6:i,8:i,10:i,12:i  speed=256  steps=70000
circuits/npn.txt  scopes=5,5:i  speed=32
circuits/ohms.txt  scopes=0:i,4:i  speed=32
circuits/pnp.txt  scopes=4,4:i  speed=32
circuits/pot.txt  scopes=0:i,1:i  speed=32
circuits/relay.txt  scopes=4:i,5:i,6:i  speed=32
circuits/relayff.txt  scopes=7:i,8:i,9:i  speed=32  clicks=8,8,9,9,8,8
circuits/relays.txt  scopes=13:i+18:i+21:i+24:i,27:i+30:i+33:i+36:i,44:i+46:i+48:i,55:i+57:i  speed=512  clicks=2@0.02,2@0.1,5@0.18,5@0.26,8@0.34,8@0.42,11@0.5,11@0.58,37@0.66,37@0.74,38@0.82,38@0.9,39@0.98,39@1.06,40@1.14,40@1.22,53@1.3,53@1.38  steps=200000
circuits/relaytff.txt  scopes=13:i,1:i,11:i  speed=32  clicks=11,11,11,11
circuits/resistors.txt  scopes=0:i  speed=32  clicks=4,5,6,15,16,19,4,5
circuits/scr.txt  scopes=0:i,4:i  speed=32  clicks=2,2,3,3
circuits/tl.txt  scopes=5:i  speed=32
circuits/tlmismatch.txt  scopes=3:i,7:i  speed=32
circuits/tlterm.txt  scopes=1:i,9:i,17:i,25:i  speed=32
circuits/transswitch.txt  scopes=3:i,6:i  speed=32  clicks=4,4
tests/14segca.txt  scopes=15:i,17:i,18:i,19:i  speed=32  clicks=6,22,23,29,33,6,22,23
tests/16segca.txt  scopes=15:i,17:i,18:i,19:i  speed=32  clicks=6,22,23,29,33,6,22,23
tests/7segca.txt  scopes=15:i,17:i,18:i,19:i  speed=32  clicks=6,22,23,29,33,6,22,23
tests/14segdec.txt  probes=1.0,1.1,1.2,1.3,1.4,1.5,1.6,1.7  speed=32  clicks=5,4,5,3,5,4,5,2,5,4,5,3,5,4,5
tests/16segdec.txt  probes=1.0,1.1,1.2,1.3,1.4,1.5,1.6,1.7  speed=32  clicks=5,4,5,3,5,4,5,2,5,4,5,3,5,4,5
tests/7seg.txt  probes=1.0,1.1,1.2,1.3,1.4,1.5,1.6  speed=32
tests/analogmux.txt  scopes=4:i,7:i,9:i  speed=32  clicks=1,2,1,3,1,2,1
tests/cccs2.txt  scopes=2:i,3:i,5:i,10:i  speed=32
tests/circuit-324.txt  probes=64.0,60.0  speed=32
tests/comparator.txt  scopes=3:i,6:i  speed=32  clicks=1,2,1,7,8,7
tests/current-adder.txt  probes=0.2,1.2  scopes=11:i,p0,p1  speed=32
tests/custom.txt  probes=0.7,0.8,17.7,17.8,18.3,25.3,26.3,33.3  speed=32  clicks=1,2,1,3,14,15,14,16
tests/labelloop.txt  scopes=1:i,2:i  speed=32
tests/optocoupler.txt  scopes=2:i,5:i  speed=32  clicks=7,7,7
# load D7-D0, then 16 clocks: Q7 shows D7..D0, then the SER bits clocked in (1,1,0,1,0,0,1,0)
tests/piso.txt  probes=0.2  scopes=p0,1,3  speed=8  steps=fill  clicks=2@0.001,2@0.002,3@0.00275,1@0.003,1@0.0035,1@0.004,1@0.0045,3@0.00475,1@0.005,1@0.0055,3@0.00575,1@0.006,1@0.0065,3@0.00675,1@0.007,1@0.0075,1@0.008,1@0.0085,3@0.00875,1@0.009,1@0.0095,3@0.00975,1@0.01,1@0.0105,1@0.011,1@0.0115,1@0.012,1@0.0125,1@0.013,1@0.0135,1@0.014,1@0.0145,1@0.015,1@0.0155,1@0.016,1@0.0165,1@0.017,1@0.0175,1@0.018,1@0.0185
tests/polarcap.txt  scopes=5,5:i  speed=32  clicks=0,0
tests/resetonload.txt  probes=0.1,1.3,2.2,2.3,2.6,12.4,17.0,17.1,17.2  speed=32  noreset
tests/shared-sliders.txt  scopes=0:i  speed=32  clicks=4,5,6,15,16,19,4,5
tests/sipo.txt  probes=0.2,0.3,0.4,0.5  speed=32  clicks=2,2,1,2,2,2,2,1,2,2,2,2,2,2,1,2,2
tests/switches.txt  scopes=3:i,4:i,5:i,6:i,13:i,14:i  speed=32  clicks=0,11,0,11
tests/switchingxform.txt  scopes=6:i,8:i,11:i,13:i  speed=32  clicks=4,15,4,15
tests/tl431.txt  scopes=1:i  speed=32
tests/vccs-resistor.txt  scopes=7:i,9:i  speed=32

# ../tests circuits not marked good in the comparator
tests/labeled-nodes.txt  scopes=3:i,8:i,13:i  speed=32
tests/labeled-nodes-text.txt  scopes=3:i,8:i  speed=32
tests/labeled-nodes-bus.txt  probes=0.0,0.3,7.0,7.3  speed=32
tests/routedwire-random.txt  scopes=23,24  speed=32  clicks=22,22
tests/tsbug-analogmux-text.txt  probes=0.6  speed=32
tests/tsbug-counter2-text.txt  scopes=9,10,11,12,13  speed=32  steps=fill  clicks=1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8
tests/tsbug-customlogic-tristate.txt  scopes=7  speed=32  clicks=2,3,2,4,5,4
tests/tsbug-latch-reset.txt  scopes=8,9,10,11  speed=32  clicks=7,7
tests/tsbug-latch-text.txt  scopes=7,8,9,10  speed=32  clicks=4,3,5,5,6,6
tests/tsbug-opamp-gain-text.txt  scopes=1:i,2:i,3:i  speed=32
tests/tsbug-relaycontact-xml.txt  scopes=0:i,4:i  speed=4  clicks=1,1,1,1
tests/tsbug-seqgen-edit.txt  scopes=5  speed=32  steps=fill  clicks=4,4,4,4
tests/tsbug-seqgen-text.txt  scopes=2  speed=32  steps=fill  clicks=1,1,1,1
circuits/howland.txt  steps=fill  clicks=13,13
# switches the generated tests never clicked: each clicked twice (on and off, or a push
# switch pressed and let go), and run until the scopes are full
circuits/3phasewye.txt  steps=fill  clicks=13,13
circuits/cap.txt  steps=fill  clicks=1,1
circuits/ccitov.txt  steps=fill  clicks=0,0,1,1
circuits/currentsrcelm.txt  steps=fill  clicks=3,3,4,4,13,13,16,16
circuits/currentsrcramp.txt  steps=fill  clicks=12,12
circuits/induct.txt  steps=fill  clicks=1,1
circuits/inductkick-snub.txt  steps=fill  clicks=3,3
circuits/inductkick.txt  steps=fill  clicks=3,3
circuits/jfetcurrentsrc.txt  steps=fill  clicks=5,5
circuits/lightbulb.txt  steps=fill  clicks=3,3
circuits/lrc-critical.txt  steps=fill  clicks=1,1
circuits/lrc.txt  steps=fill  clicks=1,1
circuits/moscurrentramp.txt  steps=fill  clicks=11,11
circuits/mr-crossbar.txt  steps=fill  clicks=22,22
circuits/multivib-mono.txt  steps=fill  clicks=15,15
circuits/ota-gain.txt  steps=fill  clicks=18,18
circuits/ota-vcf-single.txt  steps=fill  clicks=27,27
circuits/peak-detect.txt  steps=fill  clicks=17,17
circuits/tllight.txt  steps=fill  clicks=11,11
tests/bigcircuit.txt  steps=fill  clicks=1,1
tests/curr-switch.txt  steps=fill  clicks=3,3,4,4,13,13,16,16
tests/multitrans.txt  steps=fill  clicks=7,7,8,8,11,11
tests/subc-lrc-3level.txt  steps=fill  clicks=3,3
tests/subc-lrc2.txt  steps=fill  clicks=3,3
# logic inputs the generated tests never clicked
circuits/555missing.txt  steps=fill  clicks=18,18,18,18
circuits/555monostable.txt  steps=fill  clicks=14,14,14,14
circuits/555sequencer.txt  steps=fill  clicks=11,11,11,11
circuits/clockedsrff.txt  steps=fill  clicks=15,15,16,16,15,16,15,16
circuits/cmosinvertercap.txt  steps=fill  clicks=10,10,10,10
circuits/cmosinverterslow.txt  steps=fill  clicks=13,13,13,13
circuits/cmostransgate.txt  steps=fill  clicks=7,7,7,7
circuits/delayrc.txt  steps=fill  clicks=6,6,6,6
circuits/edgedff.txt  steps=fill  clicks=30,30,30,30
circuits/jkff.txt  steps=fill  clicks=48,37,48,37,48,37,48,37
circuits/masterslaveff.txt  steps=fill  clicks=38,38,38,38
circuits/mux.txt  steps=fill  clicks=15,15,15,15
# load 1101 (load/shift low for one clock), shift it out, then load 0110 and shift that out
circuits/piso-sr.txt  scopes=26,10  speed=64  steps=fill  clicks=26@0.0025,26@0.0125,19@0.0525,21@0.053,22@0.0535,26@0.0625,26@0.0725
circuits/samplenhold.txt  steps=fill  clicks=5,5,5,5
circuits/switchfilter.txt  steps=fill  clicks=17,17,17,17
tests/greyctr.txt  steps=fill  clicks=178,178,178,178
tests/jfet1.txt  steps=fill  clicks=18,19,18,20,18,19,18
tests/monostable-sc.txt  steps=fill  clicks=4,4,4,4
tests/monostable-sc-fixedstate.txt  steps=fill  clicks=4,4,4,4
circuits/deltasigma.txt  speed=256  steps=fill
circuits/tesla.txt  speed=512  steps=fill

# elements no other test used (made for these tests)
tests/xnor-halfadder.txt  probes=0.2,1.0,1.1  scopes=2+3,p0,p1+p2  speed=32  steps=fill
tests/tristate.txt  probes=0.1,5.1  scopes=1,p0,p1  speed=32  steps=fill  clicks=2,7,2,7,2,7
tests/delaybuffer.txt  probes=0.1,1.1,2.1  scopes=3+p0+p1,5+p2  speed=32  steps=fill
tests/monostable-chip.txt  probes=0.1,0.2,1.1,2.1,3.1  scopes=4+p0+p1,p2+p3+p4  speed=32  steps=fill
tests/ctr193.txt  probes=0.3,0.2,0.1,0.0,0.12,0.13,1.3,1.2,1.1,1.0,1.12,1.13  scopes=p0+p1+p2+p3,p4+p5,p6+p7+p8+p9,p10+p11  speed=32  steps=fill  clicks=5,5,4,4,13,13,12,12
tests/ctr177.txt  probes=0.8,0.9,0.10,0.11,1.7,1.8,1.9,1.10  scopes=p0+p1+p2+p3,p4+p5+p6+p7  speed=32  steps=fill  clicks=4,4,5,5,11,11,12,12
tests/gmux.txt  probes=0.5,0.6,0.7,0.8  scopes=p0+p1,p2+p3  speed=32  steps=fill  clicks=5,6,5,6
tests/bustransceiver.txt  probes=0.2,0.3,0.4,0.5  scopes=p0+p2,p1+p3  speed=32  steps=fill  clicks=2,1,2,1
tests/amfm.txt  scopes=0,1  speed=32  steps=fill
tests/battery.txt  scopes=0,0:i,1,1:i  speed=32  steps=fill  clicks=2,2,2,2
tests/fuse.txt  scopes=0:i,1:i  speed=32  steps=fill
tests/ldr-thermistor.txt  scopes=8+12+16,20+24+28,30  speed=32  steps=fill
tests/timedelayrelay.txt  scopes=2+8,3+9  speed=32  steps=fill
tests/dcmotor.txt  scopes=0,0:i  speed=32  steps=fill
tests/wattmeters.txt  scopes=0:p,0,1:p,1  speed=32  steps=fill
tests/pdarlington.txt  scopes=1+4  speed=32  steps=fill
