You are given with the position number of a value within a type, which attribute will you use to find its value?

Như Quỳnh

New member
You are given with the position number of a value within a type, which attribute will you use to find its value?
A. ‘POS(value)
B. ‘VAL(value)
C. ‘POSITION(value)
D. ‘VALUE(value)
 
Answer: b
Explanation: The ‘value’ specified as an argument to the attribute specifies the position number and there are only two attributes which are predefined in the VHDL among the four options given. In which ‘VAL(value) attribute is used to return the value from position number specified.
 

Tìm kiếm

Back
Top