Lecture 01
Lecture 01
Lecture 1: Data storage: data representation, data storage, types of data store in a computer.
AND result is true (1) when both of its component are true,
we conclude 1 AND 1 should be 1, where as all other cases
should produce an output of 0.
OR result is true (1) when at least one its component is true,
other cases should produce an output of 0.
XOR result is true (1) when its component are not the same.
NOT it compute only one input, if its input is true (1) the
output should be false (0), otherwise if its false (0) the output
will be true (1).
1 0
0
0
0
Text
Numerical data
Images
Sound
Number are encoded into bit 0 and 1 each digit in a group of 4 bit
pattern.
# Bit
0 0000
1 0001
2 0010
3 0011
4 0100
5 0101
6 0110
7 0111
8 1000
9 1111 More precise later
(a) (b)
0111
1000
+1
1001
Computer architecture
The CPU basics
ALU
Control unit
Register unit
Machine instruction
Data transfer
ALU
Control
Question??