联系我们: 手动添加方式: 微信>添加朋友>企业微信联系人>13262280223 或者 QQ: 1483266981
SECOND SEMESTER EXAMINATIONS 2021/22
DIGITAL ELECTRONICS AND MICROPROCESSOR SYSTEMS
Section A
1. a) Find a sum of products expression for the function f given by the circuit in
Figure Q1a using the 8-to-1 multiplexer. D is the msb. (Simplification is not
required.)
Figure Q1a
3
b) Design a circuit for the following expressions using a BCD to decimal decoder
and two OR gates. The variables , , , represent binary bits, where is the
msb and is the lsb.
1 =
′
′
′ +
′
′
2 =
′
′
+
′
′
′ +
′
5
c) The Quine-McCluskey method is used to minimise the following Boolean
expression: ( , , , , ) = ∑ (5,6,18,22,30) + ∑ (2,16,26,31)
where m represents the minterms for which f must be true and the terms
following d are “don’t care”. The lsb is . Do not attempt to perform the
whole minimisation procedure. Answer only questions i) & ii) (next page).
Question continues overleaf.
PAPER CODE ……..ELEC211………… PAGE ……..4……………….OF ….8……………….CONTINUED
Question continued.
c) i) Identify and explain two mistakes in the Prime Implicant chart for the
above problem, given in Figure Q1c. (Note: the second column of the chart is
correct.) Write down your corrected Prime Implicant chart.
5 6 18 22 26 30
5
′
.
′
. . ′. X
6, 18 . ′. ′. ′ X
30, 31 . . . X
2, 6, 18, 22
′
. . ′ X X X
18, 22, 26, 30 . . ′ X X X X
Figure Q1c
4
ii) Use your corrected Prime Implicant chart to find and write down the
Essential Prime Implicants, and the final minimum sum of products
expression. Explain whether or not an alternative expression is available.
5
d) Find the minimum sum of products expression for the function G given by the
following Karnaugh map (Figure Q1d) with map entered variables E and F.
Figure Q1d
8
Total
25
This
column is
correct ↓
PAPER CODE ……..ELEC211………… PAGE ……..5……………….OF ….8……………….CONTINUED
2. a) An ASM chart for a finite state machine is shown in Figure Q2b. Is this a Moore or
a Mealy machine Explain the difference between a Moore and a Mealy machine,
and also explain how you could tell which one this is.
4
b) Construct a state transition table for the finite state machine shown in Figure Q2b
using the ‘One-Hot’ state representation. (The code for each state is shown on the
top right of the state box.) Use CBA as the state variables i.e. CBA = 001 represents
state P, etc.; use this and similar appropriate combinations to represent the present
and next states.
Figure Q2b
5
c) For the ASM chart shown in Figure Q2b, design simplified Boolean equations for
the outputs and next state logic, assuming D-type flip flops are used. A circuit
diagram is not required. To help, you are given: OUT2 = and = .
3
Question continues overleaf.
T
T
100
001
F F
T
P
OUT 2
S
R
0
Y
OUT 1 F
Y
Y
010
OUT 1
PAPER CODE ……..ELEC211………… PAGE ……..6……………….OF ….8……………….CONTINUED
Question continued.
d) A 4-bit adder is to be designed for a microprocessor. The clock frequency is
100 MHz, and the logic gates used each have a propagation delay of 2 ns.
i) Could a ripple-carry adder design be guaranteed to produce a stable carry_x005f out from the whole adder circuit in one clock cycle Explain your reasoning.
5
A 4-bit Carry Look-Ahead (CLA) adder design is then explored (Figure
Q2d):
Figure Q2d
Further information: For the
th bit of addition, =
. and = ( ⊕
); , b
are the numbers added, and , are the Generate and Propagate signals. Also,
+1 = +
.
. You are not required to consider the Sums (
).
ii) Consider the 4-bit CLA in Figure Q2d and the further information. Write
down equations and calculations demonstrating that the carry-out from the
second bit ( ) is stable within one clock cycle, and sketch the ‘look-ahead
carry’ logic circuitry for only.
6
iii) Without further calculations, state, with a reason, whether or not would
also be stable within one clock cycle.
2
Total
25
PAPER CODE ……..ELEC211………… PAGE ……..7……………….OF ….8……………….CONTINUED
Section B
3. a) In terms of CPU operation, explain the meaning of the terms:
i) fetch,
ii) decode, and
iii) execute.
2
2
2
b) Assume that the following registers initially hold the values given:
r0: 0x10010000
r1: 0x02DC0000
r2: 0xE53A148D
r3: 0x93B4D493
r4: 0x3C2B07F9
r5: 0x60F27D62
r15: 0x00004042
Find the values held in registers r0, r1, r2, r3 and r15 after the following ARM
Cortex M0 instructions are executed
i) SUBS r1, r2, r1
ii) ANDS r2, r4
iii) ADDS r3, r4, r5
iv) LSLS r0, r0, #0x07
2
2
2
3
c) Find the 32 bit two’s complement format for the decimal numbers:
i) –9810
ii) –987,654,32110. (Note that 0x3ADE68B1 is the hexadecimal
equivalent of +987,654,32110.)
2
2
d) Find the IEEE 754 floating point format (single precision) for the decimal
numbers:
i) –212.510
ii) +21.210.
3
3
Total
25


发表回复