Lượng Tiger
New member
What will be the values of out1 and out2?
A. out1 = 0 and out2 = 0
B. out1 = 0 and out2 = 1
C. out1 = 1 and out2 = 0
D. out1 = 1 and out2 = 1
Code:
ARCHITECTURE bhv OF example IS
CONSTANT out1 : BIT;
CONSTANT out2 : BIT;
BEGIN
B1 : BLOCK
CONSTANT S : BIT := 0;
BEGIN
B1-1 : BLOCK
SIGNAL S : BIT := 1;
BEGIN
out1 <= S;
END BLCOK B1-1;
out2 <= S;
END BLOCK B1;
END bhv;
B. out1 = 0 and out2 = 1
C. out1 = 1 and out2 = 0
D. out1 = 1 and out2 = 1