GENERIC (n : INTEGER := 8); In this statement, the mode of generic ‘n’ is _______

GENERIC (n : INTEGER := 8); In this statement, the mode of generic ‘n’ is _______
A. Integer
B. Real
C. Generic
D. No Mode
 
Answer: d
Explanation: Generics are a means of passing specific information into an entity. Generics can have only a type but no mode. Integer is the type of generic. Mode of any variable or signal defines its direction which means whether it is used as an input signal or output signal. Therefore, mode is not defined in the case of generics.
 

Tìm kiếm

Back
Top