Refer to the code given below, which type of modeling is used to describe the system? [code]ARCHITECTURE and_1 OF and_gate IS begin process(a,

Refer to the code given below, which type of modeling is used to describe the system?
Code:
ARCHITECTURE and_1 OF and_gate IS
begin
process(a, b, y)
begin
IF(a = ‘1’ and b = ‘1’) THEN
y <= ‘1’;
ELSE y <=’0’;
end IF;
END process;
END and_1;
A. Structural
B. Component
C. Dataflow
D. Behavioral
 
Answer: d
Explanation: Above shown code is for AND gate and it is using process statement. The code gives information about output values for different combinations of input values. Therefore, the code given is behavioral style of modeling.
 

Tìm kiếm

Back
Top