From: Frederico C W. <fr...@gm...> - 2024-02-10 16:45:59
|
Found my mistake ., On invoking ngspice , mixed the output (-r ) with the netname .,;.. Sorry about the disturbance. Best Regards. Em 10/02/2024 13:19, Frederico C Wilhelms escreveu: > Hi All, > > > Can't figure out why there is no circuit generation., > > > * lepton-netlist -g spice-sdb -O sort_mode -o teste324_01.net > teste324_01.sch > ********************************************************* > * Spice file generated by lepton-netlist * > * spice-sdb by SDB * > * provides advanced spice netlisting capability. * > * Documentation at wiki.geda-project.org/geda:csygas * > ********************************************************* > *vvvvvvvv Included SPICE model from > /home/fred/Downloads/Z80/ngspice/modelos_subckt/lm324.mod vvvvvvvv > *////////////////////////////////////////////////////////////////////// > * (C) National Semiconductor, Inc. > * Models developed and under copyright by: > * National Semiconductor, Inc. > > *///////////////////////////////////////////////////////////////////// > * Legal Notice: This material is intended for free software support. > * The file may be copied, and distributed; however, reselling the > * material is illegal > > *//////////////////////////////////////////////////////////////////// > * For ordering or technical information on these models, contact: > * National Semiconductor's Customer Response Center > * 7:00 A.M.--7:00 P.M. U.S. Central Time > * (800) 272-9959 > * For Applications support, contact the Internet address: > * amp...@ga... > > *////////////////////////////////////////////////////////// > *LM324 Low Power Quad OPERATIONAL AMPLIFIER MACRO-MODEL > *////////////////////////////////////////////////////////// > * > * connections: non-inverting input > * | inverting input > * | | positive power supply > * | | | negative power supply > * | | | | output > * | | | | | > * | | | | | > .SUBCKT LM324/NS 1 2 99 50 28 > * > *Features: > *Eliminates need for dual supplies > *Large DC voltage gain = 100dB > *High bandwidth = 1MHz > *Low input offset voltage = 2mV > *Wide supply range = +-1.5V to +-16V > * > *NOTE: Model is for single device only and simulated > * supply current is 1/4 of total device current. > * Output crossover distortion with dual supplies > * is not modeled. > * > ****************INPUT STAGE************** > * > IOS 2 1 5N > *^Input offset current > R1 1 3 500K > R2 3 2 500K > I1 99 4 100U > R3 5 50 517 > R4 6 50 517 > Q1 5 2 4 QX > Q2 6 7 4 QX > *Fp2=1.2 MHz > C4 5 6 128.27P > * > ***********COMMON MODE EFFECT*********** > * > I2 99 50 75U > *^Quiescent supply current > EOS 7 1 POLY(1) 16 49 2E-3 1 > *Input offset voltage.^ > R8 99 49 60K > R9 49 50 60K > * > *********OUTPUT VOLTAGE LIMITING******** > V2 99 8 1.63 > D1 9 8 DX > D2 10 9 DX > V3 10 50 .635 > * > **************SECOND STAGE************** > * > EH 99 98 99 49 1 > G1 98 9 POLY(1) 5 6 0 9.8772E-4 0 .3459 > *Fp1=7.86 Hz > R5 98 9 101.2433MEG > C3 98 9 200P > * > ***************POLE STAGE*************** > * > *Fp=2 MHz > G3 98 15 9 49 1E-6 > R12 98 15 1MEG > C5 98 15 7.9577E-14 > * > *********COMMON-MODE ZERO STAGE********* > * > *Fpcm=10 KHz > G4 98 16 3 49 5.6234E-8 > L2 98 17 15.9M > R13 17 16 1K > * > **************OUTPUT STAGE************** > * > F6 50 99 POLY(1) V6 300U 1 > E1 99 23 99 15 1 > R16 24 23 17.5 > D5 26 24 DX > V6 26 22 .63V > R17 23 25 17.5 > D6 25 27 DX > V7 22 27 .63V > V5 22 21 0.27V > D4 21 15 DX > V4 20 22 0.27V > D3 15 20 DX > L3 22 28 500P > RL3 22 28 100K > * > ***************MODELS USED************** > * > .MODEL DX D(IS=1E-15) > .MODEL QX PNP(BF=1.111E3) > * > .ENDS > *$ > *^^^^^^^^ End of included SPICE model from > /home/fred/Downloads/Z80/ngspice/modelos_subckt/lm324.mod ^^^^^^^^ > * > *============== Begin SPICE netlist of main design ============ > R1 +5V vIN 10k > R2 2 vIN 10k > R3 0 vIN 10k > R4 1 vADJ 10k > R5 0 1 10k > R6 0 vADJ 300 > V1 2 0 DC 0 PULSE 0 5 0 25n 25n 500u 1000u > V2 V30 0 DC 30 > V3 +5V 0 DC 5 > X1 vIN 1 V30 0 vADJ LM324/NS > .INCLUDE ./ctl01T0_spice.sh > .end > > > My "ctl01T0_spice.sh": > .print tran v(nodes) > .tran 500n 120m 0 UIC > > > And my .spiceinit > > set ngbehavior="ps lt ki a ll s3 eg" > set ngdebug=true > > > > $ ngspice -b -r teste324_01.net > Error: there aren't any circuits loaded. > > > ** > > My environment: > > Debian BookWorm > > Linux alpha 6.1.0-16-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.67-1 > (2023-12-12) x86_64 GNU/Linux > > > lepton-eda: > Instalado: 1.9.18-1 > Tabela de versão: > *** 1.9.18-1 500 > 500 http://ftp.br.debian.org/debian bookworm/main amd64 Packages > > > With neither version of ngspice ;;; > > ngspice: > Instalado: 39.3+ds-1 > Tabela de versão: > 42+ds-2~bpo12+1 100 > 100 http://ftp.br.debian.org/debian bookworm-backports/main > amd64 Packages > 41+ds-1~bpo12+1 100 > 100 http://127.0.0.1/repo/debian bookworm-backports/main amd64 > Packages > *** 39.3+ds-1 500 > 500 http://ftp.br.debian.org/debian bookworm/main amd64 Packages > > > ngspice: > Instalado: 42+ds-2~bpo12+1 > Tabela de versão: > *** 42+ds-2~bpo12+1 100 > 100 http://ftp.br.debian.org/debian bookworm-backports/main > amd64 Packages |