Professional Documents
Culture Documents
Question 1.
An assembly line has 3 failsafe sensors and 1 emergency shutdown switch. The Line
should keep moving unless any of the following conditions arise:
A B C D F
0 0 0 0 0
0 0 0 1 0
0 0 1 0 0
0 0 1 1 1
0 1 0 0 0
0 1 0 1 0
0 1 1 0 1
0 1 1 1 1
1 0 0 0 1
1 0 0 1 1
1 0 1 0 1
1 0 1 1 1
1 1 0 0 1
1 1 0 1 1
1 1 1 0 1
1 1 1 1 1
[4 marks for correct table]
Page 1 of 1.
Solutions – Contact Dr. Derek Molloy (Derek.Molloy@dcu.ie) Phone: 700 5355 on any queries
(b) Design, using Karnaugh Map techniques, a minimum AND-OR gate network for
this system. Draw the resulting digital circuit diagram.
Resulting expression is : F = A + BC + CD
(c) Design, a digital circuit that will implement the minimal AND-OR gate network
found in (b) using both (i) NAND gates only and (ii) NOR gates only. Assume
that each logic gate can have any number of inputs and that inverted inputs are
available.
Use DeMorgan’s theorem to convert to NAND/NOR gates. The student must use the theorem and
cannot simply substitute the gates as this does not result in the minimal solution.
(i) NAND
F = A + BC + CD
= A ? BC ? CD ? A.BC.CD
[3 marks]
Page 2 of 2.
Solutions – Contact Dr. Derek Molloy (Derek.Molloy@dcu.ie) Phone: 700 5355 on any queries
(ii) NOR
F ? A ? BC ? CD
F ? A ? BC ? CD
F ? A ? ( B ? C ) ? (C ? D)
F ? F ? A ? ( B ? C ) ? (C ? D)
[3 marks]
(d) If the time delay experienced by a NAND gate is 8ns and the time delay
experienced in a NOR gate is 10ns. Which implementation of (c) is faster? By how
long?
( A ? B)( A ? C ) ? AA ? AC ? AB ? BC
? A ? AC ? AB ? BC
? A(1 ? C ) ? AB ? BC
? A ? AB ? BC
? A(1 ? B) ? BC
? A ? BC
[4 marks]
Page 3 of 3.
Solutions – Contact Dr. Derek Molloy (Derek.Molloy@dcu.ie) Phone: 700 5355 on any queries
Question 2.
(a) Convert the following numbers to binary. Show each step clearly. (i) 2916
(ii)255.437510
2916 can be converted directly as 0010 1001 as it is in hex form. Conversion to base 10 and then
division by 2 will also give full marks.
[3 marks]
255.4375 do in two stages.
LHS = 11111111
RHS = .0111
ANS 1111111.01112
[3 marks]
(b) Perform the following using 9's complement Binary Coded Decimal (BCD)
subtraction. (i) 411-332 (ii) 118-555
411-332 (get 9’s complement = 667)
Page 4 of 4.
Solutions – Contact Dr. Derek Molloy (Derek.Molloy@dcu.ie) Phone: 700 5355 on any queries
0101 0101 0010
0001
__________________
0101 0110 0010 (no end-around carry => negative)
(c) Explain the operation and outline the problems associated with asynchronous
counters. Draw a graph of the outputs to help explain your answer.
[4 marks]
?? If the output of one counter is connected to the clock of the next counter then all 2N states can be
used in the binary counter.
?? N flip-flops => 2N states, base 2N
?? This counter is called an asynchronous or ripple counter as the clock pulse effectively ripples
through the counter.
[3 marks]
?? The more correct waveform is shown here:
[6 marks]
Page 5 of 5.
Solutions – Contact Dr. Derek Molloy (Derek.Molloy@dcu.ie) Phone: 700 5355 on any queries
Question 3.
(a) Explain the operation of a right/left shift register. Draw the logic diagram to help
explain its operation.
(b) Design a two’s complement adder/subtractor. Draw the logic diagram and explain
how the design works in add mode and in subtract mode.
Page 6 of 6.
Solutions – Contact Dr. Derek Molloy (Derek.Molloy@dcu.ie) Phone: 700 5355 on any queries
?? This circuitry can generate the 2’s complement when we wish to do a subtraction
?? When ADD / SUB = 0 => the circuit adds
?? When ADD / SUB = 1 => the circuit subtracts
?? XOR gates act as True/complement in that they invert B when the line is set to 1 and a 1 is
added to the LSB, so that the two’s complement will be generated.
[8 marks for correct diagram]
[4 marks for the description]
Question 4.
(a) Explain the operation of a shift register with feedback. Use diagrams to explain
the operation.
?? If the serial output of a shift register is connected back to the input [Q to J], [Q\ to K] then the
sequence of numbers stored in the register will circulate.
E.g. Q3 Q2 Q1 Q0 CLK
1 0 1 1
1 1 0 1 pulse 1
1 1 1 0 pulse 2
0 1 1 1 pulse 3
1 0 1 1 pulse 4
Note that the last row is the same as the first row.
[7 marks for diagram]
[3 marks for description]
(b) Explain the operation of an n-bit ring counter with self correcting feedback.
?? An N-bit ring counter has N states each of which contains all 0’s except for a single 1
?? An ring counter is wasteful of flip-flops as we only get N states with N flip-flops.
Page 7 of 7.
Solutions – Contact Dr. Derek Molloy (Derek.Molloy@dcu.ie) Phone: 700 5355 on any queries
?? We can use self correcting feedback to obtain desired sequences.
?? In this case when 0 0 0 occurs the AND gate will feed back a 1 (as the inputs to the AND gate are
connected to the Q\ values)
[Diagram 10 marks]
[Description 5 marks]
Question 5.
(a) Explain the operation of a master-slave JK flip-flop. Draw the logic diagram for
the flip-flop and describe in detail the two-stage approach of its operation, in
particular explain why a master-slave configuration is preferable to a standard JK
flip-flop.
(b) Explain using diagrams the modifications required to convert (a) into a JK flip-
flop with asynchronous set and reset inputs. Why are these inputs a useful addition
to the standard master-slave JK flip-flop?
?? Separate set and reset inputs can be added to the JK Flip-flop. These set and reset inputs [S\,
R\] over-ride the JK inputs and are asynchronous [i.e. override the clock].
?? When S\=R\=1 we have normal flip-flop operation.
Page 8 of 8.
Solutions – Contact Dr. Derek Molloy (Derek.Molloy@dcu.ie) Phone: 700 5355 on any queries
Page 9 of 9.