100% found this document useful (1 vote)
698 views5 pages

Activity 1 - Logicgates Worksheet

This document provides worksheets to practice logic gates, binary conversions, binary addition, and overflow in binary addition. The logic gates worksheet has students label gates and fill in truth tables. The binary conversion worksheets have students convert between denary and binary. The binary addition worksheet teaches adding binary numbers and handling carries. The final section demonstrates how adding two 8-bit numbers can result in an overflow.

Uploaded by

mirror
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
698 views5 pages

Activity 1 - Logicgates Worksheet

This document provides worksheets to practice logic gates, binary conversions, binary addition, and overflow in binary addition. The logic gates worksheet has students label gates and fill in truth tables. The binary conversion worksheets have students convert between denary and binary. The binary addition worksheet teaches adding binary numbers and handling carries. The final section demonstrates how adding two 8-bit numbers can result in an overflow.

Uploaded by

mirror
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Logic Gates Worksheet – Truth Tables

Label these basic logic gates and fill in their truth tables.

gate gate gate

This gate takes two inputs This gate takes takes two This gate takes one input
and gives an output if either inputs and gives an output and gives an output that is
one input or the other input only if both inputs are true the opposite value to the
or both inputs are true input

Input A Input B Output Input A Input B Output Input Output

0 0 0 0 0 0 0 1
0 1 1 0 1 0 1 0
1 0 1 1 0 0
1 1 1 1 1 1

For this combination of two logic gates, fill in the truth table. Point C is used to helpyou
work out the output.

Output
A C

Input A Input B C Output


B
0 0 1 0
0 1 1 1
1 0 1 0
1 1 1 1
Draw your own combination of two logic gates and a completed truth table. Use thelogic
lab at https://circuitverse.org/simulator to test your predictions.

Input A Input B C Output

0 0 0 1
0 1 1 0
1 0 1 0
1 1 1 0

Draw your own combination of logic gates that will give this truth table output. Usethe
logic lab at https://circuitverse.org/simulator to test your predictions.

Input A Input B C Output

0 0 0 1
0 1 0 1
1 0 0 1
1 1 1 0
Binary → Denary Conversions Worksheet
● To convert from binary to denary we just need to be able to add....
● Start by writing the column names above the binary digits remembering they startat
one on the right hand side and double as you move to the left.
● Then add up the values of the columns with a 1.
64
For example: 32
8
128 64 32 16 8 4 2 1 4
0 1 1 0 1 1 0 1 +1
109
Now it's your turn:
128
64
128 64 32 16 8 4 2 1 4
+ 2
1 1 0 0 0 1 1 0 ____
198

32
32 16 8 2 16
8
+2
0 0 1 1 1 0 1 0 __
25
128
16
128 16 8 2 1 8
2
1 0 0 1 1 0 1 1 + 1
____
155
128
32
128 32 16 4 2 16
4
+2
1 0 1 1 0 1 1 0 ____
182

32
32 4 1 4
+1
0 0 1 0 0 1 0 1 __
37
Denary → Binary Conversions Worksheet
● To convert from denary to binary we just need to be able to subtract....
● Start by writing the column names above where your binary digits will go,
remembering they start at one on the right hand side and double as you move to
the left.
● Then start from the left and see if you can take the value above the column away
from your denary number. If you can, enter a 1 in that column and move right.

For example: Starting with a denary value of 209

128 64 32 16 8 4 2 1
1 1 0 1 0 0 0 1
209 81 17 1
-128 -64 -16 -1
81 17 1 0
Now it's your turn: Convert 164 to binary
128 64 32 16 8 4 2 1
1 0 1 0 0 1 0 0

Convert 243 to binary

128 64 32 16 8 4 2 1
1 1 1 1 0 0 1 1

Convert 71 to binary

128 64 32 16 8 4 2 1

0 1 0 0 0 1 1 0

Convert 255 to binary

128 64 32 16 8 4 2 1

1 1 1 1 1 1 1 1
Binary Addition Worksheet

● To add binary we just need to remember a few rules:


● 0+0=0
● 0 + 1 = 1 or 1 + 0 = 1
● 1 + 1 = 10 (0 carry 1 left) 1 + 1 + 1 = 11 (1 and carry 1 left)

For example:

00 01 01 01 0001 0101
+01 +00 +01 +10 +0101 +0111
01 01 10 11 0110 1100
1 1 1 1 1
Now it's your turn (don't forget, you can check by converting to denary):

10 01 0101 1001 1101


+01 +10 +0101 +0110 +0001
1 1 1 1 1 0 1 0 1 1 1 1 1 1 1 0
1 1 1
In computing we are often interested in 8 bit numbers – we call these a byte

10010010 10010011 10000010


+01100010 +01100010 +01110110
1 1 1 1 0 1 0 0 1 1 1 1 0 1 0 0 1 1 1 1 1 0 0 0
1 1 1 1
Now try these. What do you notice?

It has 1 bit larger because


11010011 10100010
the sum of last bit is equal+01100010 +01110110
to 10 and 1 must be carry
to the next column 1 0 0 1 1 0 1 0 1 0 0 0 0 1 0 0 0
1 1 1 1 1 1

The problem above is called an Over flow . It means that there are

more bit added than can be stored in a byte, or eight bit number.

You might also like