The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl
Design Languages >> VHDL-AMS >> conditional simultanous statement
https://designers-guide.org/forum/YaBB.pl?num=1280825570

Message started by chippendale on Aug 3rd, 2010, 1:52am

Title: conditional simultanous statement
Post by chippendale on Aug 3rd, 2010, 1:52am

Hi,

I want to check the values of a through quantity and change the corresponding across quantity. I have no idea how to do this. For a better understanding I have wrote the following code. I am looking for a loop or similar in which each elecment of the vector is checked and the conditional statement is choosen.

part of the entity:
terminal VA_COLA_I       :electrical_vector(0 to cola-1);
quantity vcola across icola through VA_COLA_I to electrical_ref;

part of the architecture:
if vcola(k) > vthn use
           icola(k) == 10.0e-6;
     else
           icola(k) == 0.0;
end use;

Any suggestions? thx.

The Designer's Guide Community Forum » Powered by YaBB 2.2.2!
YaBB © 2000-2008. All Rights Reserved.