The driver(s) of signal y is _________ [code]PROCESS () BEGIN y <= ‘1’; y <= x; y <= z; END PROCESS;[/code]

The driver(s) of signal y is _________
Code:
PROCESS ()
BEGIN
y <= ‘1’;
y <= x;
y <= z;
END PROCESS;
A. z
B. x
C. x and z
D. 1
 
Answer: a
Explanation: Since the assignment statements are appearing inside a process. Therefore, they are sequential assignment statement. A signal being assigned a value inside a process can’t have multiple drivers. It can have only one driver since only last statement is taken into consideration. So, the signal y is driven by signal z.
 

Tìm kiếm

Back
Top