Community
EAGLE Forum
Welcome to Autodesk’s EAGLE Forums. Share your knowledge, ask questions, and explore popular EAGLE topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SPICE DIGSRC model giving me problems

3 REPLIES 3
Reply
Message 1 of 4
k7michal
433 Views, 3 Replies

SPICE DIGSRC model giving me problems

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

3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: k7michal

 im having the same problem did you figure it out?

Message 3 of 4
holger.vogt
in reply to: Anonymous

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.

Message 4 of 4
holger.vogt
in reply to: holger.vogt

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.

Post to forums  

Autodesk Design & Make Report