انت هنا الان : شبكة جامعة بابل > موقع الكلية > نظام التعليم الالكتروني > مشاهدة المحاضرة

سلوك المعالج مع الايعازات المتسلسلة

الكلية كلية العلوم للبنات     القسم قسم الحاسبات     المرحلة 3
أستاذ المادة نور كاظم ايوب مهدي المهدي       27/01/2017 09:52:18
CPU Instruction Cycle/ part2 Lecturer: Noor Kadhum


Example 3 : Sequential instruction
-----------------------------------------------------------

What is the control sequence for the following instruction?
Add R1, X
-----------------------------------------------------------

Now:
- The content of R1 is already available in the CPU.
- The content of X is resident in the memory , this mean that the value of X should be brought to CPU (i.e. read it),

Solution:
-----------

1- Pc out ,ARin,Read,Set carry of ALU, Clear y,Add, Zin.

2-Zout, Pcin, WMFC.

3- DRout,IRin .

4- address of IR out, ARin, Read.

5- R1 out, yin, WFMFC.

6- DRout,add,Zin.

7- Zout,R1 in

8- end.

------------------------------------------------------------------------------------

Exercise 1: What are the write a micro-program for implementing the following instructions?
------------------------------------------------------------------------------------


1-Add R2, [X].

2- load X

3- move x,R1

4- inc

------------------------------------------------------------------------------------

Exercise 2: A computer has 4 mathmatical operation only(add, sub, mul, div). how to execute the instruction (CMP X,R1) on such computer?write the control sequence for execute cycle for this instructin.

المادة المعروضة اعلاه هي مدخل الى المحاضرة المرفوعة بواسطة استاذ(ة) المادة . وقد تبدو لك غير متكاملة . حيث يضع استاذ المادة في بعض الاحيان فقط الجزء الاول من المحاضرة من اجل الاطلاع على ما ستقوم بتحميله لاحقا . في نظام التعليم الالكتروني نوفر هذه الخدمة لكي نبقيك على اطلاع حول محتوى الملف الذي ستقوم بتحميله .