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.

Problem with omitting nodes in a subcircuit herder using OrCAD PSpice

Status
Not open for further replies.

peleus

Newbie level 2
Newbie level 2
Joined
Oct 23, 2006
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,295
In pspice language syntax it is allowed to omit nodes in a subcircuit header according to the PSpice Reference.pdf. However, the simulator turns out an error that there is no subcircuit name during an X call. From my point of view the latter means that the simulator looks for at least one node and then for a subcircuit name. I have a serious interest on usage of such a subcircuit without any node.

Ex:

.subckt xx
v1 1 0 0V
r1 1 0 1k
.ends

x1 xx

Instantiating x1 causes an error but it should run. Is there any patch?
 

Re: OrCAD PSpice bug?

Pspice requires a node number in order do instance a component, you cannot
insert a component without these informations.

.subckt a b xx
v1 a b 0V
r1 a b 1k
.ends

and if you want to use several subcircuits in parallel

x1 1 0 xx
X2 1 0 xx
X2 1 0 xx

or in series

X1 1 2 xx
X2 2 3 xx
X3 3 0 xx
 

Re: OrCAD PSpice bug?

It's not true what you have typed concerning number of nodes. The following is an extract from the PSpice Reference Guide.

[node]*
An optional list of nodes (pins). This is optional because it is possible to
specify a subcircuit that has no interface nodes.


Similarly, if you take a look at X command, you'll see that the number of nodes is optional including zero.

Thanx for your effort Jonatan.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top