KOMPUTER
1
Buku Pegangan
2
Minggu ke Topik Materi
1 Penduluan - Perkembangan Arsitektur Komputer
- Struktur Dasar
- Pengukuran Kinerja
3
7 I/O - Teknik teknik I/O
- Bus
8,9 Pengingat Hi- - Hirarki Pengingat
rarkhis - Pengingat Utama
- Pengingat Cache
- Pengingat Virtual
10,11 Memori - Cache
- Memori Internal
- Memori Eksternal
12,13 Multiprosesor - Klasifikasi Struktur
- Paralel
- Arsitektur Multiprosesor
- Sinkronisasi
14 Komputer - Pengolahan Paralel
paralel - Instruksi Vektor Dasar
4
Apakah Arsitektur Komputer itu ?
5
• Computer description levels
Applications begin
read(a)
$ ls –la a := a+1;
Operating Compilers writeln(a);
$ cp file.txt /home
System end;
Lw r1,32(r0)
Instruction set
Add r2,r1,#10
Sw 32(r0),r2
Computer
organization
Digital circuits
interconnection
Physical level
6
• Computer organization and architecture
Instruction set
Memory
enhancement CPU enhancement: I
Pipelining
Hardware Memory O
ALU
Digital Systems
7
Tantangan dalam mempelajari arsitektur & org.komputer
Adanya berbagai variasi produk (teknologi, harga, unjuk kerja,
ukuran, aplikasi)
Memory
(2)
CPU
Program
Memory
I/O
Program
(1)
8
Structure of von Neumann machine
9
Fungsi fungsi dasar
sebuah sistem komputer
Data processing
Data storage
Data movement
Control
10
a) Data movement
b) Data storage
c) dan d) Data processing
11
Struktur Dasar Sistem Komputer
Fungsi Komponen
Systems
Interconnection
Input
Output
12
Arsitektur berbasiskan Bus
Lima komponen
utama :
ALU 1. ALU CPU
2. Control unit
CPU 3. Memory
Control Main Memory 4. Input
Unit 5. Output
Sistem Bus
I/O Unit
Peripheral
13
CPU
Bagian sistem komputer yang bertugas mengeksekusi program.
14
CPU
Arithmetic
Registers and
Login Unit
Internal CPU
Interconnection
Control
Unit
15
(Main) Memory Unit
Bagian komputer untuk menyimpan program dan data yang sedang
atau siap dieksekusi oleh CPU.
0
1
n bit 2
Address 3
Decoder 4
5
6
2n 2002 512 Mb 80 ns
16
Input/Output Unit
Peripheral Devices
Bus Sistem 17
Disk
controller
sistem Graphics
Komputer Monitor
card
1980: Mikrokomputer
optimalisasi
kinerja - biaya
20
Pentium Evolution
• 8080
– first general purpose microprocessor
– 8 bit data path
– Used in first personal computer – Altair
• 8086
– much more powerful
– 16 bit
– instruction cache, prefetch few instructions
– 8088 (8 bit external bus) used in first IBM PC
• 80286
– 16 Mbyte memory addressable
– up from 1Mb
• 80386
– 32 bit
– Support for multitasking
21
• 80486
– sophisticated powerful cache and instruction pipelining
– built in maths co-processor
• Pentium
– Superscalar
– Multiple instructions executed in parallel
• Pentium Pro
– Increased superscalar organization
– Aggressive register renaming
– branch prediction
– data flow analysis
– speculative execution
22
• Pentium II
– MMX technology
– graphics, video & audio processing
• Pentium III
– Additional floating point instructions for 3D graphics
• Pentium 4
– Note Arabic rather than Roman numerals
– Further floating point and multimedia enhancements
• Itanium
– 64 bit
23
Kecenderungan Teknologi Komputer modern
24
25
10G
4 Gb
1 Gb
1G
256 Mb
Memory Pentium
100M 64 Mb
(DRAM) IV
16 Mb PIII®
Transistors / chip
10M 4 Mb
1 Mb PII®
1M Pentium®
256 Kb 80386
80486,680
64 Kb
100K 68020
16 Kb 80286
4 Kb
10K 8086
68000 Microprocessor
8085
8080
1K 4004
1970 1975 1980 1985 1990 1995 2000 2005
26
Peningkatan Kinerja
Pendekatan
Pendekatan
Teknologis/hardware
Software
Penggunaan
Efisiensi program,
komponen2 IC
Struktur data
kecepatan tinggi,
kerapatan tinggi Peningkatan
kinerja
Pendekatan
Arsitektural
Peningkatan aspek
software fungsional dan struk-
tural
Contoh :
Arsitektur - Arsitektur Instruction set
- Struktur pipeline dalam CPU
- Pengingat cache
teknologi/ - Memory interleaving
hardware - Struktur Bus
- Prosesor paralel 27
KINERJA (Performance) 1. Latency
2. Throughput
Tujuan utama : Mempekecil waktu-eksekusi program
(sejak dimulai sampai selesai)
Waktu-eksekusi
waktu yang dibutuhkan oleh cpu waktu yang dibutuhkan oleh cpu
untuk eksekusi program2 sistem untuk eksekusi program user
CPI = S (cycles per tipe x frekuensi kemunculan tipe tersebut dalam program)
banyaknya instruksi
29
Peningkatan kecepatan (Speed-up)
Peningkatan kecepatan S adalat perbandingan (ratio) antara waktu yang
dibutuhkan untuk mengeksekusi sebuah program pada sistem yang
belum ditingkatan kinerjanya dengan waktu yang dibutuhkanpada
sistem yang sudah ditingkatakan.
Soal :
1. Estimasikan peningkatan kecepatan yang dicapai dengan
menggantikan sebuah CPU yang mempunyai CPI rata rata = 5 dan
periode clock 100 ndetik dengan CPU lain yang CPI rata ratanya = 3.5,
dan periode clock 120 ns.
31
Contoh soal 2
(a) (b)
33
…
for (int i=1; i <= 10; i++)
for (int j = 1; j <= 5; j++)
System.out.println(“nilai i: “+ i);
System.out.println(“slesai”);
…
34