The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Apr 24th, 2024, 4:04am
Pages: 1
Send Topic Print
conditional simultanous statement (Read 2086 times)
chippendale
New Member
*
Offline



Posts: 3

conditional simultanous statement
Aug 03rd, 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.
Back to top
 
 
View Profile   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.