orion
New Member
Offline
Posts: 4
|
I am trying to run a spectre simulation using a subckt which is defined in a file. for simplicity, I will define a simple test file:
in a file ckt.scs, the following lines are included which I load into the ADE Setup->Model Library Setup
subckt testcell (1 2 99) parameters a=5 b=a*6+4 c0 ( 2 99) capacitor c=a l0 ( 1 2) inductor l=b ends testcell
the top circuit schematic is simple so the netlist looks like
simulator lang=spectre global 0 include "/home/user/ckt.scs"
// Cell name: testcell // View name: schematic subckt testcell A B SUB ends testcell // End of subcircuit definition
// Cell name: ttest // View name: schematic I0 (net1 0 0) testcell V0 (net1 0) vsource mag=1 type=dc simulatorOptions options ..... dc0p dc write...... ...
The schematic for testcell just has ports drawn since the circuit is defined in the subckt file ckt.scs
The error message that I receive in the simulator output when running is
Error found by spectre during circuit read-in. "input.scs" 14: 'testcell' is being redefined
How can I get this to work if I want to include the subckt definition in the file ckt.scs and without manually changing the input.scs file?
|