The function conv_std_logic_vector(p,b) is used for_______

Tam ca

New member
The function conv_std_logic_vector(p,b) is used for_______
A. Converting ‘p’ form STD_LOGIC_VECTOR to STD_LOGIC type
B. Converting any data type ‘p’ into STD_LOGIC_VECTOR with ‘b’ bits
C. Converting STD_LOGIC_VECTOR into ‘p’ type with ‘b’ bits
D. Converting STD_LOGIC into STD_LOGIC_VECTOR
 
Answer: b
Explanation: This function is used to convert the parameter ‘p’ of type INTEGER, UNSIGNED, SIGNED or STD_LOGIC into STD_LOGIC_VECTOR. Note that the size of converted variable will be ‘b’ bits. So, b represents the number of bits in the converted object.
 

Tìm kiếm

Back
Top