Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

What is the meaning of 'dec' in this circuit simulation file?

Status
Not open for further replies.

ruwan2

Member level 5
Joined
Nov 29, 2011
Messages
90
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
2,141
Hi,

There is one line below the code snippet:

.AC dec 5 100 10MEG op=no

I do not know what meaning of 'dec' is, where is it defined?
Could you point me to a link/tutorial on the basics?


Thanks,


* .PRINTALL directive means: save all voltages and currents
.PRINTALL

* .TRACE directive define the simulation windows
.Trace AC VDB(OUT) VDB(X) Min=-1.0000000e+00 Max=3.0000000e+00
.Trace AC VP(OUT) VP(X) Min=-1.0000000e+00 Max=3.0000000e+00
.Trace DC V(X) V(OUT) Min=-1.0000000e+00 Max=3.0000000e+00
.Trace DC I(R2) Min=-1.0000000e+00 Max=3.0000000e+00
.Trace Noise DB(ONOISE) Min=-1.0000000e+00 Max=3.0000000e+00
.Trace Tran V(IN) V(OUT) V(X) Min=-1.0000000e+00 Max=3.0000000e+00
.Trace Tran V(IN) {D = ABS(V(X) - V(OUT))} Min=-1.0000000e+00 Max=3.0000000e+00
.Trace Tran V(OUT) Min=-1.0000000e+00 Max=3.0000000e+00

* Accuracy and analysis directives:
.Eps 1m 100m 1u
.H 1fs 1fs 100ns 250m 2
*.TRAN 100N 100U 0
.Tran 100ns 100us 0s noise=yes noisestep=500ns traceBreak=yes compress=no compressCoeff=1 compressTolX=0 compressTolY=1u powerup=no timeup=0s predict=no
.AC dec 5 100 10MEG op=no
.Noise V(OUT) VIN 10 100 10MEG op=no compress=no compressCoeff=1 compressTolX=0 compressTolY=1u
.DC VIN 0 5 0.1
 

"dec" is a Type of Sweep when performing AC Analysis. It refers to Decade. Other types of sweep are Octave, Linear, etc.

In LTspice, you can set it in the Edit -> Simulation Command -> AC Analysis.
 
  • Like
Reactions: ruwan2

    ruwan2

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top