HSPICE Question, For/While Loop

Status
Not open for further replies.

MammPp

Junior Member level 2
Joined
Sep 14, 2008
Messages
22
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,441
Hi all,

I tried to model the circuit which required the repeat calculation such as

Resistor in out R = A*10

Where A is calculated from the other equations such as

A = V(in,out)+step*I(Resistor)

When the parameter A is updated, the resistance will change and parameter A will update again then the resistor would change again and so on.

From this point, I tried to use for loop within the HSPICE.

Someone recommend me about using the C programming and update the script. However I wondered that is there any more simple method than above ?

Thank you for your help

MammPp
 

I have done a similar thing using perl script. There is a code available for this. This code rewrite the hspice netlist for the given value of some parameter ("R" in your case) and then extract the output from the output file of hspice. You can modify the code according to your need.

**broken link removed**
 
Reactions: MammPp

    MammPp

    Points: 2
    Helpful Answer Positive Rating
Thank you himansg
 

Can someone reupload the code? The site doesn't exist anymore
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…