Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Q.3) What is the difference between package declaration and package body.
Q.2: What decimal numbers are represented by the following literals: (i) (ii) (iii) (iv) (v) (vi) 8#4# 16#2C# 2#1111_1010# 2.5e5 2#1#E10 2#0.101#
Q.2: Express the following octal and hexadecimal bit string as binary bit string:
(i) (ii)
o 777 O 346
Q1. WAP for a simple Heater Thermostat. The device can be modelled as an entity with two integer input. One that specifies the desire temperature and another that is connected to a Thermometer and one Boolean output that turn a Heater on and off. The Thermostat turns the Heater on if the measured temperature falls below two degree less than the desire temperature and turns the heater off if the measured temperature rises above two degree greater than the desire temperature.
Q1. Write constant declaration for the number of bit in a 32 bit word and for the number PI = 3.14159 Q2. Write variable declarations for a counter initialize to 0; a status flag used to indicate whether a module is busy; and a standard logic value used to store a temporary result. Q3. Given the subtype declaration: subtype pulse_range is time_range 1 millisecond to 100 millisecond subtype word_index is integer range 31 downto 0 What are the values of left , right , low , high and ascending attributes of each of these subtypes. Q4. Given the type declaration: type state is(off,standby,active1,active2); What are the values of state pos (standby) state succ (active2) state val (2)
Q1. WAP for a swapper that has one input and one output part each of which is a bit_vector of subtype halfword . Declared subtype halfword is bit_vector(0 to 15) range attribute to determine the index of the array. Q2. WAP for n-inputs AND gate.
Q1. Difference between Transport delay and Inertial delay ? Also write their applications? Q2. WAP to count number of 1s in a given bit vector?