Refer to the code given below, what kind of circuit is designed? [code]SIGNAL x : IN BIT; SIGNAL y : OUT BIT; SIGNAL clk : IN BIT; PROCESS

Thành Nguyễn

New member
Refer to the code given below, what kind of circuit is designed?
Code:
SIGNAL x : IN BIT;
SIGNAL y : OUT BIT;
SIGNAL clk : IN BIT;
PROCESS (clk)
BEGIN
IF (clk’EVENT and clk = ‘1’)
y ;&lt= x;
END PROCESS
A. Buffer
B. Latch
C. Flip flop
D. Shift Register
 
Answer: c
Explanation: It is clear from the code that it is a sequential circuit using clock EVENT and the value of input is assigned to the output directly. So, it can’t be a buffer since buffer doesn’t need any clock signal. So, It is a synchronized flip flop. Clearly, It can be said that the given flip flop is a D flip flop.
 

Tìm kiếm

Back
Top