Chapter 1
Chapter 1
8
With advances in semiconductor
technologies, MPs are becoming:
- smaller
- more powerful
- faster
- cheaper
11
https://www.desktopclass.com/computer-it/discuss-primary-components-of-a-computer-system.html
12
1. Memory
2. CPU (processor)
3. I/O Devices
4. Bus System
13
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
14
15
Registers
1. Speed increases Inside
2. Cost increases CPU
3. Size decreases Cache (~ )
RAM (~)
Outside
CPU
Hard Disk (~ )
16
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
17
1. Registers are the processor’s memory used for storing
intermediate results.
20
Operation:
x=3; x=x+1;
Data:
>> 3
Control:
>> add
Address: https://en.wikipedia.org/wiki/System_bus
>> address of x
21
How are microprocessors
programmed?
…. Code
22
23
24
x=3;
x=x+1;
cout<<“x=“<<x<<endl;
Compiler LDA X
INC X
PRINT X
Assembler
000101001010011111
25
…
26
27
28
29
30
Part 1:
.
Understanding internal architecture of basic CPU
31
1. Binary Numbers
2. 2’s complement
3. Hexa Decimal
32
1. Binary numbers
33
1. Binary numbers
34
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
35
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
36
3. hexadecimal
37
3. hexadecimal
38
4. Combinational
vs sequential circuits
B. Sequential (clk)
Ex. Delay Flip flop (Registers) – Toggle FF
Output depends on history of the inputs
39
4A. Combinational circuits
MULTIPLEXER (MUX)
S1 S0 Y
Inputs: 2n
Select lines:
Output:
40
4A. Combinational circuits
DECODER
E A1 A0 Y3 Y2 Y1 Y0
Inputs: 2n Output:
41
4A. Combinational circuits
ADDER/SUBTRACTOR (TUTORIAL)
42
4B. SEQUENTIAL circuits
DFF / TFF
43
4B. SEQUENTIAL circuits
REGISTERS
input output
45