Feedback loop in VHDL-AMS

G

gdlicciardo

Hi all,
I need help to implement a schematic in VHDL-AMS.
I've built a system composed of two analog blocks connected in feedback. One block read a voltage across a resistance from the second block and calculates some correction factors which are returned to the first block to modify the resistance value. The problem arises when I try to simulate a DC sweep. Since the initial value of the input voltage and the resistance are dependent and initially unknown, the simulator returns a divide-by-zero error.
Now I ask if there is some way to give an initial value to the components of the second block (or the voltage of the first) which allow to start the simulation, either there is a way to break the loop while preserving the functionalities.

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,534
Members
45,008
Latest member
Rahul737

Latest Threads

Top