Which of the following can’t be the parameter of function? [code]SIGNAL a, b : IN STD_LOGIC VARIABLE c : INTEGER CONSTANT d : INTEGER[/code]

Which of the following can’t be the parameter of function?
Code:
SIGNAL a, b : IN STD_LOGIC
VARIABLE c : INTEGER
CONSTANT d : INTEGER
A. a
B. b
C. c
D. d
 
Answer: c
Explanation: The parameter of a function can either be a signal or a constant. The variable can’t be used as a parameter of a function. Any of the data types which are synthesizable are allowed to use as a type of signals or constants.
 

Tìm kiếm

Back
Top