Knowing how to describe simulation patterns is our next STEP. Basic simulation that we use are AC, DC and Transient. So to describe these in your netlist the syntax of them are as below:
• AC analysis (pick either lin, dec, or oct)
.ac <lin|dec|oct|> <number of samples> <freq start> <freq stop> (OR)
.AC Scale nPoints Start Stop <sweep ...>
Example: .AC DEC 20 1 10g $ 20 points per decade from 1 Hz to 1 GHz
• DC analysis
.dc <source> <start> <stop> <step> (OR)
.DC Src_name Start Stop Increment <sweep ...>
Example: .DC Vin 0 1.8 0.1
• Transient analysis
.tran <t step> <t stop>
Example: .tran 50u 100u
So after describing the simulation needed, the values to be available for plotting at the AVANWAVES window is to be described, it is done using the following commands:
- .PRINT : This de nes output from a SPICE analysis. The output will be listed in listing file as either voltage or current.
- .PLOT : This gives an ASCII plot instead of listing. The usage of this command is the same as we did in '.print' command.
No comments:
Post a Comment