COMBINATIONAL LOGIC
Outcome 1
?1
(a)
(b)
(iii) 00111110
(iv) 10010011
(ii) 2A
(iii) 68
(iv) 0F
(ii) 11011000
(iii) 01001110
(iv) 10010111
(f)
(ii) 11100011
(e)
(iv) 182
(d)
(iii) 120
(c)
(ii) 59
(ii) 5
(iii) 251
(iv) 129
(ii) F4
(iii) 56
(iv) AA
133
?1
Solution
(a)
Only 6 binary digits appear as this is all that is required to represent 59 in binary,
however to convert to an 8-bit representation just add two zeros, i.e. 00111011
134
(i)
10 converts to 00001010
MSB
LSB
(ii)
LSB
MSB
135
MSB
(b) (i)
(ii)
136
(iii)
(iv)
137
(c)
B2
B1
B0
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1
0
0
0
0
1
1
1
1
0
0
0
0
1
1
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
(i)
Hexadecimal
value
0
1
2
3
4
5
6
7
8
9
A
B
C
D
E
F
Decimal value
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
3 = 0011
138
A = 1010
8 = 1000
F = 1111
1000 = D8
1110 = 4E
0111 = 97
Note: if the binary pattern does not divide into groups of four bits
add 0s to the left-hand side, i.e. the MSB side until the pattern does
divide.
For example, 11001 only contains five binary digits (bits). If we add
three 0s to the left-hand side we do not affect the value but we can
now divide the pattern into groups of four bits:
00011001 = 19 in hexadecimal
139
(e)
140
(ii)
141
(f) (i)
(ii)
142
?2
(a)
(b)
143
?2
Solution
(a)
(i)
(ii)
(iii)
(iv)
144
(b)
(i)
11=0
32=1
2 cannot be
subtracted from 0
therefore a 1 is
borrowed from the
next column. This
upper digit is now 2
21=1
(ii)
(iii)
(iv)
145
?3
(a)
(ii) 10
(v) 120
(vi) 120
(iii) 59
(iv) 59
(b)
(c)
146
?3
Solution
(a)
147
(ii)
(iii)
(iv)
148
(v)
(vi)
(b)
As can be seen, 182 and 182 fall outwith this range and so cannot
be represented using 8-bit 2s complement.
149
(c) (i)
(ii)
(iii)
(iv)
If a carry is generated into the ninth bit simply ignore; the 8bit answer will be correct
150
Outcome 2
?1
(a)
Identify the ANSI standard logic symbols shown and complete the
truth tables in Fig SAQ 1 (i).
(b)
Draw the British Standard symbols for the logic gates shown Fig
SAQ 1(i).
(c)
Write down the Boolean expression for each of the gates shown in
Fig SAQ 1(i).
151
?1
Solution
(a)
152
(b)
153
?2
For the ANSI logic gates given in Fig SAQ 2:
(a)
(b)
Fig SAQ 2
?3
For the BS logic gates given in Fig SAQ 3:
(a)
(b)
Fig SAQ 3
154
?2
Solution
(a), (b)
155
?3
Solution
(a), (b)
156
Outcome 3
?1
(a)
For the circuit shown in Fig SAQ 1(i) write down the Boolean
expression for X.
(b)
(c)
157
?1
Solution
(a), (b)
(c)
158
?2
(a)
For the circuit shown in Fig SAQ 2(i) write down the Boolean
expression for X.
(b)
Using the integrated circuit diagram sheet identify the ICs used in
this circuit and place appropriate pin numbers beside the gates.
(c)
159
?2
Solution
(a), (b)
(c)
160
?3
For the following Boolean expressions:
(i)
(ii)
(a)
draw the logic circuit using ANSI symbols (your diagram should
show the ICs selected and the appropriate pin connections)
(b)
Fig SAQ 3
161
?3
Solution
(i)
162
(ii)
(b)
163
?4
The truth table for a two-input logic circuit is shown in Fig SAQ 4.
(a)
From the truth table derive the Boolean expression that describes
this table.
(b)
Using ANSI symbols draw the logic circuit that meets the
requirements of this table. Your schematic should clearly show
ICs used and pin numbers.
Fig SAQ 4
164
?4
Solution
In this problem you are trying to generate a circuit from a truth table.
To do this consider each input combination that provides a logic 1
output and work out how this could be achieved using an AND gate.
These combinations are indicated by arrows in the diagram below.
165
The final step is to combine all the AND combinations into an OR gate.
Recall that the OR gate will generate a logic 1 output when either of its
inputs are logic, which is exactly what is needed for this circuit.
166
?5
The truth table for a three-input logic circuit is shown in Fig SAQ 5.
(a)
From the truth table derive the Boolean expression that describes
this table.
(b)
Using ANSI symbols draw the logic circuit that meets the
requirements of this table. Your schematic should clearly show
ICs used and pin numbers.
Fig SAQ 5
167
?5
Solution
The only difference between this problem and SAQ 4 is the number of
inputs. The way in which we solve the problem is identical.
Identify the input combinations that give a logic 1 output and work out
how a logic 1 could be achieved using an AND gate:
168
As before the final step is to combine all the AND combinations into an
OR gate. Recall that the OR gate will generate a logic 1 output when
either of its inputs are logic 1:
169
Outcome 4
?1
A simple logic control system for a central heating system has the
following inputs:
When the output from the control system = 1 then the boiler will be
ignited, allowing the system to produce heat. The frost protection will
override the timer clock and the room thermostat should the
temperature fall below 4C.
Design the logic control system to meet the above requirements. Your
design should include the following:
truth table
Boolean logic expression
logic diagram using ANSI symbols (this diagram must include IC
identification and pin numbering).
170
?1
Solution
This outcome advances the combinational design processes one step
further. In this outcome we are given a specification for a digital
system and from that a practical circuit must be designed.
The first step in this process is to generate a truth table. This problem has three
inputs, C, T and F, therefore we need a three-input truth table. Each input
condition must be carefully considered before placing a 1 or 0 in the output
column.
OUT
171
The remaining steps are identical to those carried out in Outcome 3, i.e.
generate an AND expression for each OUT = 1 condition and then OR
all of these AND expression together:
172
173
174
?2
The control logic for a simple alarm system in a house has three inputs
and a single output, which activates an alarm. The three inputs are:
windows sensor
doors sensor
master key.
The sensors operate as follows:
window sensor (W)
If the alarm system is disarmed then the logic signals from the sensors
are ignored and the alarm will not sound. The alarm is activated by a
logic 1 from the output of the control logic.
Design the circuit to meet the requirements of this control logic. Your
design should include the following:
truth table
Boolean logic expression
logic diagram using ANSI symbols (this diagram must include IC
identification and pin numbering).
175
?2
Solution
As with the previous example a truth table must be generated and all
input permutations carefully considered. The required output and
associated reasons are shown below.
W
OUT
176
177