Which of the following is the correct syntax for component instantiation?

Which of the following is the correct syntax for component instantiation?
A. instantiate : component_name PORT MAP (port_list);
B. label : instantiate COMPONENT PORT MAP (port_list);
C. label : component_name PORT MAP (port_list);
D. label : instantiate component_name PORT MAP (port_list)
 
Answer: c
Explanation: Component instantiation is done in the architecture part by using some label and the function called PORT MAP(). The name of the component is followed by the function PORT MAP (). The arguments list of the function contains the name of ports in the same order as they were declared. By using this we can define the interconnection between ports.
 

Tìm kiếm

Back
Top