The value of y is initially 1 and it is changed after one delta cycle to 0. How many delta cycles (starting from the beginning) will be

The value of y is initially 1 and it is changed after one delta cycle to 0. How many delta cycles (starting from the beginning) will be taken to change the initial value of z, refer to the process given below?
Code:
PROCESS (y)
BEGIN
x <=y;
z <= NOT y;
END PROCESS
A. 1
B. 2
C. 3
D. 4
 
Answer: b
Explanation: At the very beginning, the value of z is 0. After 1 delta cycle, the value of y changes which causes process to run again. So, in 2nd delta cycle process will be executed but assignments will be done after the execution of process is over. So, at the end of 2nd delta cycle, the assignments will be executed.
 

Tìm kiếm

Back
Top