01 Chapter 1
01 Chapter 1
programmer
Instruction set, number of bits used for data
representation, I/O mechanisms, addressing
techniques.
e.g. Is there a multiply instruction?
Organization is how features are implemented
Control signals, interfaces, memory technology.
e.g. Is there a hardware multiply unit or is it done by
repeated addition?
All Intel x86 family share the same basic
architecture
The IBM System/370 family share the same basic
architecture
7
With advances in semiconductor
technologies, MPs are becoming:
- smaller
- more powerful
- faster
- cheaper
10
What are the main
components of a computer ?
1. ..
11
12
https://www.desktopclass.com/computer-it/discuss-primary-components-of-a-computer-system.html
13
1. Memory
2. CPU (processor)
3. I/O Devices
4. Bus System
14
CPU – controls the operation of the computer and
performs its data processing functions
Main Memory – stores data
I/O – moves data between the computer and its
external environment
System Interconnection – some mechanism that
provides for communication among CPU, main
memory, and I/O
15
16
..
1. Speed ?? CPU
2. Cost
.. (~ )
.. (~)
?? CPU
..(~ )
17
Registers
1. Speed Inside
2. Cost CPU
Cache (~ )
RAM (~)
Outside
CPU
Hard Disk (~ )
18
Unit Equivalent Byte Capacity
Byte (B) 1 1
kilobyte (kB) 210 1,024
Megabyte (MB) 220 1,048,576
Gigabyte (GB) 230 1,073,741,824
Terabyte (TB) 240 1,099,511,627,776
Petabyte (PB) 250 1,125,899,906,842,624
19
1. Registers are the processor’s memory used for storing
intermediate results.
22
Operation:
x=3; x=x+1;
Data:
>> 3
Control:
>> add
Address: https://en.wikipedia.org/wiki/System_bus
>> address of x
23
How are microprocessors
programmed?
…. Code
24
25
26
x=3;
x=x+1;
cout<<“x=“<<x<<endl;
000101001010011111
27
x=3;
x=x+1;
cout<<“x=“<<x<<endl;
Compiler LDA X
INC X
PRINT X
Assembler
000101001010011111
28
…
29
30
31
32
33
Part 1:
.
Understanding internal architecture of basic CPU
34
35
Remember…
36
1. Binary Numbers
2. 2’s complement
3. Hexa Decimal
37
1. Binary numbers
38
1. Binary numbers
39
1. Binary numbers
Binary
Dec.
128 64 32 16 8 4 2 1
2 0 0 1 0
20 0 0 0 1 0 1 0 0
-20 1 1 1 0 1 1 0 0
40
2. 2’s complement
Decimal Binary
8 4 2 1
2 0 0 1 0
-2 1 1 1 0
5 0 1 0 1
-5 1 0 1 1
4 0 1 0 0
-4 1 1 0 0
41
3. hexadecimal
42
3. hexadecimal
43
4. Combinational
vs sequential circuits
B. Sequential (clk)
Ex. Delay Flip flop (Registers) – Toggle FF
Output depends on history of the inputs
44
4A. Combinational circuits
MULTIPLEXER (MUX)
S1 S0 Y
Inputs: 2n
Select lines:
Output:
45
4A. Combinational circuits
DECODER
E A1 A0 Y3 Y2 Y1 Y0
Inputs: 2n Output:
46
4A. Combinational circuits
ADDER/SUBTRACTOR (TUTORIAL)
47
4B. SEQUENTIAL circuits
DFF / TFF
48
4B. SEQUENTIAL circuits
REGISTERS
49
4B. SEQUENTIAL circuits
REGISTERS
input output
50