Look at the following declarations type array1 is

• 6

Course Hero uses AI to attempt to automatically extract content from documents to surface to you and others so you can study better, e.g., in search results, to enrich docs, and more. This preview shows page 3 - 4 out of 6 pages.

7. Look at the following declarations:TYPEarray1ISARRAY(0TO3)OFBIT_VECTOR(3DOWNTOTYPEarray2ISARRAY(0TO3)OFarray1How many total bits can be stored in these arrays?0);;a) 16b) 9c) 64d) 27View AnswerAnswer: cExplanation: First of all, array1 is array of BIT_VECTOR type that means it contains 4BIT_VECTOR. One BIT_VECTOR is here declared to be consisting of 4 bits. Therefore,Array 1 can have 16 bits. Now, array2 is an array of 4 array1. Therefore, total bits are 4× 16 = 64.
8. Refer to the four declarations below, which of the following is not a 2 dimensionalarray?TYPEarray1ISARRAY(3DOWNTO0,1DOWNTO0)OFSTD_LOGICTYPEarray2ISARRAY(3DOWNTO0)OFSTD_LOGIC_VECTOR(3DOWNTOTYPEarray3ISARRAY(2DOWNTO0)OFarray2TYPEarray4ISARRAY(0TO3,3DOWNTO0)OF;0);;BIT;

Course Hero member to access this document

Course Hero member to access this document

End of preview. Want to read all 6 pages?

Course Hero member to access this document

Term
Fall
Professor
NoProfessor
Tags
Type theory, 4 bits, 4 bit, type array