A component may be declared and instantiated inside a function.

Khánh Đoan

New member
A component may be declared and instantiated inside a function.
A. True
B. False
 
Answer: b
Explanation: In the declaration part of a function, one may declare a variable. But the declaration of a signal and a constant is not allowed inside a function. The constant instantiation is a concurrent statement and a function consists of sequential statements. Therefore, it is not possible to declare and instantiate a component.
 

Tìm kiếm

Back
Top