Professional Documents
Culture Documents
CE2 FinalExamFinal 2021 2ndterm
CE2 FinalExamFinal 2021 2ndterm
A B C X
0 0 0 0
0 0 1 1
0 1 0 1
0 1 1 0
1 0 0 1
1 0 1 0
1 1 0 0
1 1 1 1
3) Choose between the multiple choices for the following (20 points):
1- Which of the following is a computer language used to model digital circuits
and produce programming data for PLDs?
A) VHSIC. B) VHDL.
C) ASIC. D) C Language.
2- The block of code which defines the relationship between input, output and
internal signals or variables in a VHDL design is the ____.
A) Architecture. B) Entity.
C) Package. D) Library.
3- What is the symbol used for signal assignment in VHDL?
A) == . B) =
C) := D) <=
4- The complex programmable logic device contains several PLD blocks and
__________
A) A language compiler. B) AND/OR arrays.
C) Global interconnection matrix. D) Field-programmable switches.
5- Which among the following is pre-defined in the standard package as one-
dimensional array type comprising each element of BIT type?
A) Bit type. B) Bit_vector type.
C) Boolean type. D) All of the above.
6- What kind of statement is IF statement?
A) Concurrent. B) Sequential.
C) Assignment. D) Selected assignment.
7- It is possible to use nested IF in VHDL.
A) True. B) False.
- 2/4 –
8- WAIT statement can’t appear under _______ directly.
A) Architecture. B) Process.
C) Package. D) Entity.
9- Which of the following is not the correct WAIT statement?
A) WAIT ON. B) WAIT WHILE.
C) WAIT FOR. D) WAIT UNTIL.
10- What is the file extension that is loaded in FPGA for describing any
component?
A) .vhd. B) .obj.
C) .c. D) .bit.
11- Which VHDL data type can only have a value of '1' or '0' or 'X' or 'U'?
A) Signal. B) Std_logic.
C) Bit. D) Integer.
12- If Timer1 interrupt is assigned to interrupt every 6 ms, and TCCR1B register
is set to 0x02 for Atmega328P, the number of overflow counts is:
A) 47. B) 375.
C) 12000. D) 0.
E) none of the mentioned.
13- Which of the following is a single bit in AVR?
A) TOIE0. B) WGM02.
C) OCIE1A. D) All of the mentioned.
14- If Timer0 is operated in normal mode as Clear Timer on Compare Match,
TCCR0A will be:
A) 0x01. B) 0x02.
C) 0x03. D) None of the mentioned.
15- If we used external interrupt, we can count the pulses on the positive or the
negative edge triggered pulse of the clock?
A) True. B) False.
C) Can’t be determined. D) Depends on the circumstances.
16- What is the file extension that is loaded in a micro controller for executing
any instruction?
A) .doc. B) .c.
C) .txt. D) .hex.
17- What is the use of the prescalar in the operation of the timer?
A) For fast calculations.
B) For increasing the time delay given by the timer by decreasing its frequency of
operation.
C) For removing the concept the reloading of count.
D) For easy counter operations.
- 3/4 –
18- The Timer/Counter can be clocked by an_______
A) Internal clock. B) External clock.
C) Internal and External clock. D) None of above.
19- Atmega 328P has a channel _______________ bit ADC.
A) 2. B) 5.
C) 10. D) 15.
20- What is the address in the interrupt service routine assigned for the timer2
overflow flag?
A) 0012h. B) 000Ah.
C) 0016h. D) all of the mentioned
GOOD LUCK
- 4/4 –