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.

Hspice code error - **error** negative node number found

Status
Not open for further replies.

lokesh garg

Member level 5
Member level 5
Joined
Aug 25, 2009
Messages
87
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,286
Location
india
Activity points
2,179
Hspice code error

**error** negative node number found
tokin number= 9
this is the error coming when i am running this code

vin 1 0 dc 5v
G12 1 2 poly 1 0 0 1.4783676e-009 -3.9434654e-009 3.6185472e-009 -1.1063002e-009
G23 2 3 poly 2 0 0 1.4783676e-009 -3.9434654e-009 3.6185472e-009 -1.1063002e-009
G36 3 6 poly 3 0 0 1.4783676e-009 -3.9434654e-009 3.6185472e-009 -1.1063002e-009
G14 1 4 poly 1 0 0 1.4783676e-009 -3.9434654e-009 3.6185472e-009 -1.1063002e-009
G45 4 5 poly 4 0 0 1.4783676e-009 -3.9434654e-009 3.6185472e-009 -1.1063002e-009
G56 5 6 poly 5 0 0 1.4783676e-009 -3.9434654e-009 3.6185472e-009 -1.1063002e-009

Vx 6 0 dc 0v
.op
.probe
.option post
.end

How to crrect this error.
 

Hspice code error

I am not sure of the Hspice syntax, but I think you have an odd number of data pairs. I think after "POLY" the next two values are the input nodes, then it is data pairs.

Keith.
 

Re: Hspice code error

if i am using even no. of data points, error is still comming....
 

Hspice code error

Are you actually using Hspice or Pspice? The syntax of the G Poly source various from one Spice variant to another.

In My simulator (SIMetrix) the following works:

G12 1 2 poly(1) 1 0 0 1.4783676e-009 -3.9434654e-009 3.6185472e-009 -1.1063002e-009

The poly(1) defines how many input connections there are.

Keith.
 

Re: Hspice code error

i am using Hspice(synopsys) this time.....
 

Hspice code error

Looking at the Hspice manual, you need the poly(1) definition as I mentioned above. From the Hspice manual:

Polynomial dimension. If POLY(ndim) is not specified, a
one-dimensional polynomial is assumed. Ndim must be a
positive number.

Ignore my comments earlier about data pairs - I was mixing up POLY & PWL!

Keith.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top