Instruction Cycle Main Topics Instruction fetch Instruction execute

  • Slides: 22
Download presentation
Instruction Cycle �������

Instruction Cycle �������

Main Topics • Instruction fetch • Instruction execute • Instruction cycle

Main Topics • Instruction fetch • Instruction execute • Instruction cycle

Example of Program • Program fragment: LOAD 940 ADD 941 STORE 941

Example of Program • Program fragment: LOAD 940 ADD 941 STORE 941

Instruction Cycle • Instruction cycle ������ 6 phase – Fetch ���������� IR – Decode

Instruction Cycle • Instruction cycle ������ 6 phase – Fetch ���������� IR – Decode ������� action ������ input ������ ALU – Evaluate address ����� memory address ��� operand – Fetch operands ������� operand ��� memory ������� – Execute ���������

Instruction Cycle - step 2 • Decode – Opcode ��������� decoder ����������

Instruction Cycle - step 2 • Decode – Opcode ��������� decoder ����������

Instruction Cycle - step 3 • Evaluate Address – ����� address ��� operand ����

Instruction Cycle - step 3 • Evaluate Address – ����� address ��� operand ���� memory location ��������� • ���� location ���������� LOAD – �������� Effective Address (EA)

Instruction Cycle - step 5 • Execute – ������������ • ���� opcode ����� ADD

Instruction Cycle - step 5 • Execute – ������������ • ���� opcode ����� ADD ���� operand 2 ������ • ��� opcode ��� control instruction �������� PC • ����� data Movement instructions

Stopping the computer – ������������ control back ����� Operating System (OS) • OS �����

Stopping the computer – ������������ control back ����� Operating System (OS) • OS ����� waiting loop ���������� � • �������� Control unit ���������� instruction cycle – Control unit

The Instruction Cycle as FSM

The Instruction Cycle as FSM

����� • William Stalling, Computer Organization and Architecture, USA • Yale N. Patt, Sanjay

����� • William Stalling, Computer Organization and Architecture, USA • Yale N. Patt, Sanjay J. Patel, Introduction to Computing Systems: From Bits and Gates to C and Beyond, USA