You are on page 1of 2

Nama NPM Jurusan

: Aulia Rahma Azis : 1106016222 : Teknik Komputer

HW -2

1.

A processor has 32 bit word instructions. The instruction word is divided into two parts. The Operation Code (op-code) is 8 bit and the remainder of the instruction word is used for the operand address in memory. Questions: a. What is the maximum number of instruction type of this processor? b. What is the maximum address of the operand in memory? c. If an instruction fetch takes 10 CPU clocks (on the average, with 32 bit CPU memory bus), how much time it takes to fetch a 32 bit instruction if the CPU memory bus is only 16 bit-wide?

2. 3. 4. 5.

What is the function of PC (program counter) ? What is the meaning of auto increment property of PC? What is the function of IR (Instruction Register)? Explain your answer! What is the meaning of instruction fetch? Explain your answer! What is the function of MAR (Memory Address Registers) and MBR (Meory Buffer Register)? Explain your answer!

Answer : 1. Answer :
a. The maximum number of instruction type of the processor are 2 8 = 256

instructions.
b. The maximum address of the operand in memory are 224 = 16777216

addresses.

c. 1 instruction fetch = 10 clock, dengan rata-rata 32 bit CPU memory bus, sehingga untuk 1 instruction fetch dengan rata-rata 16 bit CPU memory bus = 20 clock

2. Fungsi dari PC (Program Counter) yaitu sebagai tempat di mana address

dari instruksi berikutnya di dalam memori. Auto increment property merupakan nilai yang ditambahkan (bernilai satu) yang diatur oleh clock secara periodik agar pada prosesnya akan mengambil atau menunjuk instruksi pada address di memori secara berurutan.

3. Fungsi IR (Instruction Register) berisi instruksi 8-bit opcode dieksekusi. IR

juga digunakan untuk menyimpan instruksi yang akan dibutuhkan pada siklus clock berikutnya.
4. Instruksi fetch adalah proses yang membaca instruksi dari lokasi

memorinya ke dalam prosesor. Dalam proses ini, sebuah instruksi diambil ke CPU menggunakan alamat di PC (Program Counter). Setelah itu, instruksi diambil dimuat ke IR (Instruction Register) dalam CPU.

5. Fungsi MAR (Memory Address Registers) adalah untuk menentukan

alamat dalam memori dari kata yang akan ditulis atau dibaca dari pada MBR. Fungsi MBR (Memory Buffer Registers) adalah untuk menyimpan kata dalam memori atau dikirim ke perangkat I/O, atau digunakan untuk menerima sebuah kata dari memori atau dari unit I/O.

You might also like