Computer Architecture (110)



Download 0,54 Mb.
bet6/10
Sana25.12.2022
Hajmi0,54 Mb.
#896148
1   2   3   4   5   6   7   8   9   10
Bog'liq
0 Notes2 MemoryCPU

Assembly Instruction

Effect

LOAD R2, B

Copy the contents of memory location designated by B into Register 2

ADD R2, C

Add the contents of the memory location designated by C to the contents of Register 2 and put the result back into Register 2

STORE R2, A

Copy the contents of Register 2 into the memory location designated by A.

Each of these assembly instructions needs to be encoded into binary for execution by the Central Processing Unit (CPU). Let’s try this encoding for a simple architecture called TOY1.


TOY1 Architecture

TOY1 is a fictitious architecture with the following characteristics:


1024 x 16-bit words of RAM maximum. RAM is word-addressable.
4 general purpose registers R0, R1, R2 and R3. Each general purpose register is 16-bits (the same size as a memory location).
16 different instructions that the CPU can decode and execute, e.g. LOAD, STORE, ADD, SUB and so on. These different instructions constitute the Instruction Set of the Architecture.
The representation for integers will be two’s complement.
For this architecture, the architect (us) needs to define a coding scheme23 for instructions. This is termed the Instruction Format. Lets look at an example before we consider how we arrived at it. Here’s our instruction format for TOY1:
TOY1 Instruction Format

TOY1 instructions are 16-bits (so they will fit into a main-memory word). Each instruction is divided into a number of instruction fields that encode a different piece of information for the CPU.



Field Name
Field Width


Download 0,54 Mb.

Do'stlaringiz bilan baham:
1   2   3   4   5   6   7   8   9   10




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish