Which of the following option represents a structural model for not gate?

Trang Esther

New member
Which of the following option represents a structural model for not gate?
A.
Code:
    Architecture not_gate OF my_func IS
    BEGIN
    x: IN STD_LOGIC;
    y: OUT STD_LOGIC;
    END not_gate;
B.
Code:
    Architecture not_gate OF my_func IS
    BEGIN
    x: IN STD_LOGIC;
    y: OUT STD_LOGIC;
    y<= NOT x;
    END not_gate;
C.
Code:
   Architecture not_gate OF my_func IS
    BEGIN
   COMPONENT NOT IS
   Port(  x: IN STD_LOGIC;
   y: OUT STD_LOGIC);
   END COMPONENT;
    END not_gate;
D.
Code:
   Architecture not_gate OF my_func IS
    BEGIN
    COMPONENT not1 IS
    PORT( x: IN STD_LOGIC;
    y: OUT STD_LOGIC);
    END COMPONENT;
    END not_gate;
 
Answer: d
Explanation: Since the structural modeling defines only the components with their input and output ports. But the name of component can’t be same as any reserved word of VHDL.
 

Tìm kiếm

Back
Top