Hi everyone, thank you for your help.
I'm just getting started in SPICE modeling. Watched the 1H28m primer... played with analog and digital examples and I keep running into this issue which I've narrowed down to 1 particular model.
For some reason I can't get DIGSRC to work right.. so I made a separate .sch program with just that model and a voltage probe and after setting up the table and hitting simulate, it just time elapses on and on and on until there is a time out.
I hope that I'm just not doing something correctly.
Thank you.
* SpiceNetList
*
* Exported from DSCR_test.sch at 11/29/19 5:45 PM
*
* EAGLE Version 9.5.2 Copyright (c) 1988-2019 Autodesk, Inc.
*
.TEMP=25.0
* --------- .OPTIONS ---------
.OPTIONS ABSTOL=1e-12 GMIN=1e-12 PIVREL=1e-3 ITL1=100 ITL2=50 PIVTOL=1e-13 RELTOL=1e-3 VNTOL=1e-6 CHGTOL=1e-15 ITL4=10 METHOD=TRAP SRCSTEPS=0 TRTOL=7 NODE
* --------- .PARAMS ---------
* --------- devices ---------
X_X1 N_1 DRIVERD1_1
X_D1 N_1 DIG_N_1 DTOAB1
* --------- models ---------
* model file: Base: /Users/meehowkailan/Documents/EAGLE/projects/spice it up 1/DRIVERD1.mdl, DRIVERD1_1
**********************
* autodesk eagle - spice model file
**********************
.SUBCKT DRIVERD1_1 n1
a_source [n1] d_source1
.model d_source1 d_source (input_file="/Users/meehowkailan/Documents/EAGLE/projects/spice it up 1/driverd1_2.dsource.txt")
.ENDS DRIVERD1_1
**********************
* Autodesk EAGLE - SPICE Model File
**********************
.SUBCKT DTOAB1 D A
abridge [D] [A] dac_buff
.model dac_buff dac_bridge(out_low = 0.3 out_high = 2.5)
.ENDS DTOAB1
* --------- simulation ---------
.control
set filetype=ascii
TRAN 0.0003 0.06 0 0.0003
write DSCR_test.sch.sim V(DIG_N_1)
.endc
.END
There might be a problem with the ngspice dsource model used in the adder.sch: It will not accept a file path with spaces.
EAGLE installed in "EAGLE 9.6.2", the simulation of adder.sch does not work. Copying the folder "C:\EAGLE 9.6.2\examples\projects\examples\ngspice" to C:\EAGLE\ngspice and opening C:\EAGLE\ngspice\Digital\adder.sch in EAGLE, simulation is up and running.
I will care for this bug in ngspice.
I have uploaded a fix to ngspice git branch pre-master.
The fix will be available in ngspice-35, to be released by end of July.
Can't find what you're looking for? Ask the community or share your knowledge.