Importing subcircuit into CircuitMaker 2000

M

Mike Neufeld

Guest
Hello,

Does anyone here know how to use a spice subcircuit that refers to another
subcircuit in CircuitMaker 2000?

I've figured out how to bring in self-contained subcircuits and hook them up
to symbols. However, it seems that spice models for most TI analog parts
come as a subcircuit that contains a reference to one or more other
subcircuits in the same file. CircuitMaker seems to want to treat these as
independent subcircuits that can be alternately linked to a symbol -- but I
can't get it to treat them all as units of one subcircuit.

Has anyone encountered this problem before?

Thanks in advance,

Mike Neufeld
 
On Mon, 1 Dec 2003 12:24:54 -0800, "Mike Neufeld"
<michaelsneufeld@yahoo.com> wrote:

Hello,

Does anyone here know how to use a spice subcircuit that refers to another
subcircuit in CircuitMaker 2000?

I've figured out how to bring in self-contained subcircuits and hook them up
to symbols. However, it seems that spice models for most TI analog parts
come as a subcircuit that contains a reference to one or more other
subcircuits in the same file. CircuitMaker seems to want to treat these as
independent subcircuits that can be alternately linked to a symbol -- but I
can't get it to treat them all as units of one subcircuit.

Has anyone encountered this problem before?

Thanks in advance,

Mike Neufeld
How do you declare libraries in CircuitMaker?

...Jim Thompson
--
| James E.Thompson, P.E. | mens |
| Analog Innovations, Inc. | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| Phoenix, Arizona Voice:(480)460-2350 | |
| E-mail Address at Website Fax:(480)460-2142 | Brass Rat |
| http://www.analog-innovations.com | 1962 |

I love to cook with wine. Sometimes I even put it in the food.
 
Well, you take a new or existing symbol and use Macro Utilities. There is a
"Model Data" button that allows you to specify a model file, and then choose
subcircuits to link to that symbol. The problem is that when you do this
with a model file that contains multiple subcircuits linked together,
CircuitMaker only allows you to link one of them to the symbol, and the
others are ignored, even though they are required as well.

Mike.

"Jim Thompson" <invalid@invalid.invalid> wrote in message
news:neansvocvec9bm5qj0free6i317468irfe@4ax.com...
How do you declare libraries in CircuitMaker?
 
On Mon, 1 Dec 2003 14:24:57 -0800, "Mike Neufeld"
<michaelsneufeld@yahoo.com> wrote:

Well, you take a new or existing symbol and use Macro Utilities. There is a
"Model Data" button that allows you to specify a model file, and then choose
subcircuits to link to that symbol. The problem is that when you do this
with a model file that contains multiple subcircuits linked together,
CircuitMaker only allows you to link one of them to the symbol, and the
others are ignored, even though they are required as well.

Mike.

"Jim Thompson" <invalid@invalid.invalid> wrote in message
news:neansvocvec9bm5qj0free6i317468irfe@4ax.com...

How do you declare libraries in CircuitMaker?
You mean CircuitMaker can't cope with the following "definition"
(contained in a Library or Include file):

************************************************************
..subckt sh_tinv_1x a y clk vp vn
Xi46 clk I46_y vp vn sh_inv_1x
Mi40 y I46_y I36_d vp mvep01 L=1.2u W=8.4u
Mi36 I36_d a vp vp mvep01 L=1.2u W=8.4u
Mi32 I32_d a vn vn mven02 L=1.2u W=6u
Mi37 y clk I32_d vn mven02 L=1.2u W=6u
..ends sh_tinv_1x
************************************************************
..subckt sh_inv_1x a y vp vn
Mi13 y a vn vn mven02 L=1.2u W=3u
Mi14 y a vp vp mvep01 L=1.2u W=4.7u
..ends sh_inv_1x
************************************************************

Subcircuit "sh_tinv_1x" uses subcircuit "sh_inv_1x" within it.

In the "instantiation" (netlist/circuit file) only "sh_tinv_1x" would
be listed....

X1 1 2 3 4 5 sh_tinv_1x

This is "standard" Spice. If CircuitMaker can't cope with this get a
refund.

...Jim Thompson
--
| James E.Thompson, P.E. | mens |
| Analog Innovations, Inc. | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| Phoenix, Arizona Voice:(480)460-2350 | |
| E-mail Address at Website Fax:(480)460-2142 | Brass Rat |
| http://www.analog-innovations.com | 1962 |

I love to cook with wine. Sometimes I even put it in the food.
 
You mean CircuitMaker can't cope with the following "definition"
(contained in a Library or Include file):


Subcircuit "sh_tinv_1x" uses subcircuit "sh_inv_1x" within it.

In the "instantiation" (netlist/circuit file) only "sh_tinv_1x" would
be listed....

X1 1 2 3 4 5 sh_tinv_1x
Yes, that's exactly what I'm having trouble doing. For some reason, it will
list both sh_tinv_1x and sh_inv_1x as subcircuits that can be associated
with a symbol, and if I were to choose sh_tinv_1x, it would ignore sh_inv_1x
and then spit out a pile of errors when I try to simulate with it.

This is "standard" Spice. If CircuitMaker can't cope with this get a
refund.
Well, fortunately I'm using the 30-day trial version. But I'm thinking there
must be a way to do this.

Thanks,

Mike.
 
Mike Neufeld wrote:
You mean CircuitMaker can't cope with the following "definition"
(contained in a Library or Include file):


Subcircuit "sh_tinv_1x" uses subcircuit "sh_inv_1x" within it.

In the "instantiation" (netlist/circuit file) only "sh_tinv_1x" would
be listed....

X1 1 2 3 4 5 sh_tinv_1x

Yes, that's exactly what I'm having trouble doing. For some reason,
it will list both sh_tinv_1x and sh_inv_1x as subcircuits that can be
associated with a symbol, and if I were to choose sh_tinv_1x, it
would ignore sh_inv_1x and then spit out a pile of errors when I try
to simulate with it.

This is "standard" Spice. If CircuitMaker can't cope with this get a
refund.

Well, fortunately I'm using the 30-day trial version. But I'm
thinking there must be a way to do this.
There is, use SuperSpice. It handles this no problem. Just put one
..subckt within another.

Kevin Aylward
salesEXTRACT@anasoft.co.uk
http://www.anasoft.co.uk
SuperSpice, a very affordable Mixed-Mode
Windows Simulator with Schematic Capture,
Waveform Display, FFT's and Filter Design.

http://www.anasoft.co.uk/replicators/index.html

"Understanding" itself requires consciousness,
therefore consciousness cannot be "understood"
without referring to itself for the explanation,
therefore the "hard problem" of consciousness,
is intrinsically unsolvable as it is self referral.
 
Mike Neufeld wrote:

You mean CircuitMaker can't cope with the following "definition"
(contained in a Library or Include file):


Subcircuit "sh_tinv_1x" uses subcircuit "sh_inv_1x" within it.

In the "instantiation" (netlist/circuit file) only "sh_tinv_1x" would
be listed....

X1 1 2 3 4 5 sh_tinv_1x

Yes, that's exactly what I'm having trouble doing. For some reason, it will
list both sh_tinv_1x and sh_inv_1x as subcircuits that can be associated
with a symbol, and if I were to choose sh_tinv_1x, it would ignore sh_inv_1x
and then spit out a pile of errors when I try to simulate with it.

This is "standard" Spice. If CircuitMaker can't cope with this get a
refund.

Well, fortunately I'm using the 30-day trial version. But I'm thinking there
must be a way to do this.

Thanks,

Mike.
Mike,
This is actually pretty normal for an automatic symbol generation utility. It
creates symbols for all subcircuits. Are you using the symbol that contains all
the rest? Or trying to use a symbol that only contains part? What you are
dealing with is probably not a netlister problem, but a parser problem...

Charlie
Edmondson Engineering
Unique Solutions to Unusual Problems
 

Welcome to EDABoard.com

Sponsor

Back
Top