Feedback loop in VHDL-AMS

Discussion in 'VHDL' started by gdlicciardo, Mar 21, 2013.

  1. gdlicciardo

    gdlicciardo Guest

    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
     
    gdlicciardo, Mar 21, 2013
    #1
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.