marika_ece
Newbie level 2
- Joined
- Sep 29, 2009
- Messages
- 2
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Location
- Philippines
- Activity points
- 1,298
hello everyone!
I am confused with the if then else sequential statements in VHDL.
Ex.1 In the construction below
if (condition1) then
statements1
else
statements2
end if;
are the statements under else(statements2) are executed regardless whether condition1 is TRUE or FALSE? In C programming, else statements are only executed when if condition is false.
Ex.1 In the construction below
if (condition1) then
statements1
elsif (condition2) then
statements2
elsif (condition3) then
statements2
end if;
are all elsif statements executed once their corresponding condition is true? Or is it like in C that only the first if or elsif statement which has a true condition is executed regardless whether the succeeding elsif conditions are true?
Hope to hear from you guys.
Thanks,
Marika
I am confused with the if then else sequential statements in VHDL.
Ex.1 In the construction below
if (condition1) then
statements1
else
statements2
end if;
are the statements under else(statements2) are executed regardless whether condition1 is TRUE or FALSE? In C programming, else statements are only executed when if condition is false.
Ex.1 In the construction below
if (condition1) then
statements1
elsif (condition2) then
statements2
elsif (condition3) then
statements2
end if;
are all elsif statements executed once their corresponding condition is true? Or is it like in C that only the first if or elsif statement which has a true condition is executed regardless whether the succeeding elsif conditions are true?
Hope to hear from you guys.
Thanks,
Marika