Feb 20, 2010 #1 P pathto_teraze Junior Member level 3 Joined Oct 25, 2009 Messages 29 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Location USA Activity points 1,489 Hi, I want to do some integration in Hspice .measure such as: .measure tran integ (v(1)-v(2))*idd from=20n to=50n but I cannot get it to work. Anyone can tell me the right syntax? Thank you very much! teraze
Hi, I want to do some integration in Hspice .measure such as: .measure tran integ (v(1)-v(2))*idd from=20n to=50n but I cannot get it to work. Anyone can tell me the right syntax? Thank you very much! teraze
Feb 21, 2010 #2 jardila Junior Member level 2 Joined Sep 17, 2009 Messages 23 Helped 3 Reputation 6 Reaction score 2 Trophy points 1,283 Location Colombia Activity points 1,416 I have a question: Do you use a explicit current source called idd?, for example: idd 0 1 1mA If you try to measure the current, put in the same branch a voltage source with 0V like this: idd 0 aux 1mA vdummy aux 1 0V And put in the .measure statement: .measure tran integ (v(1)-v(2))*i(vdummy) from=20n to=50n Regards,
I have a question: Do you use a explicit current source called idd?, for example: idd 0 1 1mA If you try to measure the current, put in the same branch a voltage source with 0V like this: idd 0 aux 1mA vdummy aux 1 0V And put in the .measure statement: .measure tran integ (v(1)-v(2))*i(vdummy) from=20n to=50n Regards,
Feb 25, 2010 #3 T terazety Newbie level 3 Joined Feb 5, 2010 Messages 4 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Location US Activity points 1,309 Hi, Thank you for your reply. Actually, idd refers to the current along a specific net, for example, in my circuit, a net is called "test1". I have put a voltage source with 0V on this specific net named v22, and I measure the current goes through this net as i(v22) then when I do .measure tran inge_pwr integ (v(1)-v(2))*i(v22) from=20n to=50n I have these errors like: Errorinput.sp:44) unknow word before or at "-" It looks like hspice do not accept "+" or "-" in its integration. I don't know whether my understanding is right. Need your help. Thanks jardila said: I have a question: Do you use a explicit current source called idd?, for example: idd 0 1 1mA If you try to measure the current, put in the same branch a voltage source with 0V like this: idd 0 aux 1mA vdummy aux 1 0V And put in the .measure statement: .measure tran integ (v(1)-v(2))*i(vdummy) from=20n to=50n Regards, Click to expand...
Hi, Thank you for your reply. Actually, idd refers to the current along a specific net, for example, in my circuit, a net is called "test1". I have put a voltage source with 0V on this specific net named v22, and I measure the current goes through this net as i(v22) then when I do .measure tran inge_pwr integ (v(1)-v(2))*i(v22) from=20n to=50n I have these errors like: Errorinput.sp:44) unknow word before or at "-" It looks like hspice do not accept "+" or "-" in its integration. I don't know whether my understanding is right. Need your help. Thanks jardila said: I have a question: Do you use a explicit current source called idd?, for example: idd 0 1 1mA If you try to measure the current, put in the same branch a voltage source with 0V like this: idd 0 aux 1mA vdummy aux 1 0V And put in the .measure statement: .measure tran integ (v(1)-v(2))*i(vdummy) from=20n to=50n Regards, Click to expand...