Which of the following architecture defines the data flow modeling of ‘and’ gate?

Trung Minh

New member
Which of the following architecture defines the data flow modeling of ‘and’ gate?
A.
Code:
ARCHITECTURE and_1 OF and_gate IS
    begin
    y <= a AND b;
    end and_1;
B.
Code:
ARCHITECTURE dataflow OF and_gate IS
    Process(a, b, y);
    begin
    y <= a AND b;
    end dataflow;
C.
Code:
ARCHITECTURE and_1 OF and_gate IS
    begin
    IF(a = ‘1’ and b = ‘1’) THEN
    c <= 1;
    ELSE c &lt;= ‘0’;
    end and_1;
D.
Code:
ARCHITECTURE dataflow OF and_gate IS
    begin
    y <= a AND b;
    end and_1;
 
Answer: a
Explanation: Dataflow uses primitive and basic functions to describe the flow of data through registers from inputs to output. It uses concurrent statements and process() is a sequential statement which can’t be used in data flow modeling. It is not necessary to write the name of ARCHITECTURE as ‘dataflow’.
 

Tìm kiếm

Back
Top