Apr 16, 2010 #1 L lokesh garg 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 **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.
Apr 16, 2010 #2 keith1200rs Super Moderator Staff member Joined Oct 9, 2009 Messages 10,865 Helped 2,065 Reputation 4,130 Reaction score 1,596 Trophy points 1,403 Location Yorkshire, UK Activity points 57,270 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.
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.
Apr 16, 2010 #3 L lokesh garg 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 Re: Hspice code error if i am using even no. of data points, error is still comming....
Apr 16, 2010 #4 keith1200rs Super Moderator Staff member Joined Oct 9, 2009 Messages 10,865 Helped 2,065 Reputation 4,130 Reaction score 1,596 Trophy points 1,403 Location Yorkshire, UK Activity points 57,270 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.
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.
Apr 16, 2010 #5 L lokesh garg 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 Re: Hspice code error i am using Hspice(synopsys) this time.....
Apr 16, 2010 #6 keith1200rs Super Moderator Staff member Joined Oct 9, 2009 Messages 10,865 Helped 2,065 Reputation 4,130 Reaction score 1,596 Trophy points 1,403 Location Yorkshire, UK Activity points 57,270 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.
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.