Consider the following data type TYPE data IS STDLOGICVECTOR

Consider the following data type: TYPE data IS STD_LOGIC_VECTOR(31 DOWNTO 0); Determine the values returned by the attributes below. data\'LEFT data \'RIGHT data\' LOW data\' HIGH data\' RANGE data\' REVERSE_RANGE data\' LENGTH data \'ASCENDING

Solution

a) data\'LEFT - 31(The leftmost subscript of data)

b) data\'RIGHT - 0(The rightmost subscript of data)

c) data\'LOW - 0(The lowest subscript of data)

d) data\'HIGH - 31(The highest subscript of data)

e) data\'RANGE - 31 to 0(range of data)

f) data\'REVERSE_RANGE - 0 to 31(range of data in reverse order)

g) data\'LENGTH - 32(number of elements in data)

h) data\'ASCENDING - False(the range in data is defined with downto thats why it is false .if it is defined with to like 0 to 31 then it is true)

 Consider the following data type: TYPE data IS STD_LOGIC_VECTOR(31 DOWNTO 0); Determine the values returned by the attributes below. data\'LEFT data \'RIGHT da

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site