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 Question, For/While Loop

Status
Not open for further replies.

MammPp

Junior Member level 2
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**
 
  • Like
Reactions: MammPp

    MammPp

    Points: 2
    Helpful Answer Positive Rating
Thank you himansg
:D
 

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

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top