sp
Full Member level 6
- Joined
- Jan 1, 2004
- Messages
- 395
- Helped
- 23
- Reputation
- 46
- Reaction score
- 2
- Trophy points
- 1,298
- Location
- Floating Garden
- Activity points
- 4,044
i have a question to ask on the IF statement in VHDL....
above is the BNF statement...
let say we have few more "elsif" statement
IF condition1 THEN
sequence_of_statements1
ELSIF condition2 THEN
sequence_of_statements2
ELSIF condition3 THEN
sequence_of_statements3
ELSIF condition4 THEN
sequence_of_statements4
ELSE
sequence_of_statements5
END IF;
if the first condition (condition1) or either one of the condition is true... will the next few elsif statements condition be checked again? or it will just jump to the end if clause??
i have been read through the LRM but no luck...
thank you
warm regards,
sp
Code:
if_statement ::=
IF condition THEN
sequence_of_statements
{ELSIF condition THEN
sequence_of_statements}
[ELSE
sequence_of_statements]
END IF;
above is the BNF statement...
let say we have few more "elsif" statement
IF condition1 THEN
sequence_of_statements1
ELSIF condition2 THEN
sequence_of_statements2
ELSIF condition3 THEN
sequence_of_statements3
ELSIF condition4 THEN
sequence_of_statements4
ELSE
sequence_of_statements5
END IF;
if the first condition (condition1) or either one of the condition is true... will the next few elsif statements condition be checked again? or it will just jump to the end if clause??
i have been read through the LRM but no luck...
thank you
warm regards,
sp