If a user gets an error at the time of simulation which is “ the IF statement is illegal” what could be the reason?

Nguyễn Tân

New member
If a user gets an error at the time of simulation which is “ the IF statement is illegal” what could be the reason?
A. Using IF statement in architecture body
B. Using IF statement without ELSE
C. Using multiple ELSE statements
D. Using concurrent assignment in the IF
 
Answer: a
Explanation: It is not allowed to use IF in the architecture body directly. IF statement is a sequential statement and hence can be used in a process, function or procedure. However, using IF statement without ELSE is not any error, doing this is possible. The only error is that it can't be used in the concurrent.
 

Tìm kiếm

Back
Top