Which of the following is a keyword used for conditional assignment?

Stasenndb

New member
Which of the following is a keyword used for conditional assignment?
A. IF
B. WHEN
C. FOR
D. END
 
Answer: b
Explanation: Conditional statement is an assignment statement in which a condition is first tested and then assignment occurs. It uses the keyword WHEN to assign value to a signal conditionally. For example, y <= ‘1’ WHEN x = ‘0’. This is a conditional statement that will assign value 1 to signal y only when signal x is low.
 

Tìm kiếm

Back
Top