next up previous contents
Next: .TEMP Record Up: INPUT FILE DESCRIPTION Previous: .DELAY Record   Contents

.MAKECKT Record

The MAKECKT record is used to make a new circuit description file from the currently defined circuit. The new filename is specified on the MAKECKT record as follows:

.MAKECKT filename

The new circuit description file begins with a .CKT record and ends with an .END record. The circuit element values in the new description reflect any .STDR, .STDC, .STDL, .FSCALE, .ZSCALE, and .INCluded circuits in the currently defined circuit.

One use for this feature is to easily scale filter circuits. A normalized design can be stored and then impedance and or frequency scaled with the resulting scaled circuit written to a new file. The new file can then be used in a subsequent analysis.

Example:

.TITLE Run to scale filter stored as 'normfil.ckt'

.MAKECKT scaled.ckt

' include standard 1% resistor decade values

.INC stdr.1

' include standard 10% capacitor decade values

.INC stdc.10

.ZSCALE 10.k

.FSCALE { PI 2. X 2.5k X }

.INC normfil.ckt

.go

.STOP

Assuming that 'normfil.ckt' contains the description of a filter normalized to a cutoff frequency of 1 radian per second and an impedance level of 1 ohm, the above run would produce a file named 'scaled.ckt' containing the component values for a filter with a cutoff frequency of 2.5 KHz and an impedance level of 10 Kohms. In the above example, the new circuit would use standard 1% resistors (see description of STDR record) and 10% capacitors (see description of STDC record). The file 'scaled.ckt' could be INCluded as the circuit description portion of a subsequent CCICAP analysis.


next up previous contents
Next: .TEMP Record Up: INPUT FILE DESCRIPTION Previous: .DELAY Record   Contents
Bob Smither 2008-11-19