Which of the following is true about guarded blocks?

Hoàng Minh An

New member
Which of the following is true about guarded blocks?
A. Guarded blocks can have only guarded statements
B. Guarded blocks can have both guarded as well as unguarded statements
C. Guarded blocks are executed when guarded expression is false
D. Guarded expression can have BIT type
 
Answer: b
Explanation: Guarded blocks can have both types of statements which are guarded and unguarded. Guarded assignment statements are those statements in which an assignment operator is followed by the keyword called GUARDED. For example, q <= GUARDED d AFTER 10 ns; here the assignment statement used is guarded statement.
 

Tìm kiếm

Back
Top