The following statement must be in _______ package. [code]TYPE my_type IS RANGE (0, 1);[/code]

Nam Phong

New member
The following statement must be in _______ package.
Code:
TYPE my_type IS RANGE (0, 1);
A. STD_LOGIC_1164
B. STANDARD
C. STD_LOGIC_ARITH
D. IEEE
 
Answer: b
Explanation: Since the data type my_type can have only two values which are 0 and 1 which is the case of BIT data type. Therefore, my_type is BIT data type which is defined in STANDARD package. So, the given statement must be in STANDARD package.
 

Tìm kiếm

Back
Top