Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Data Transfers, Design Steps - Computer Architecture - Lecture Slides, Slides of Computer Architecture and Organization

Data Transfers, Implementing, ISA Design Steps, Suitable mnemonics, Assign op codes, Possible encoding of the GPRs, Skeleton Instruction Format are the topics professor discuss in class.

Typology: Slides

2011/2012

Uploaded on 11/03/2012

dharmaraaj
dharmaraaj 🇮🇳

4.4

(63)

150 documents

1 / 17

Toggle sidebar

Related documents


Partial preview of the text

Download Data Transfers, Design Steps - Computer Architecture - Lecture Slides and more Slides Computer Architecture and Organization in PDF only on Docsity! 1 Data Transfers • To be able to implement Cond1: RD  RS Cond2: RS  RD together, we need a path from RD to RS and a path from RS to RD, each having m lines (for m-bit RD and RS) • We can connect the output of RD to the input of RS in the previous circuit Docsity.com 2 Example: (op=1): R4← R3 + R2; Docsity.com Dire roouo chk 4-bit re Al int oul Clk 4-bi En 4 Bed A “ o ee 2 a a 4-bit Adder Docsity.com Ind Ind OutO Ind Out In2 Out2 In3 Out3 OutO Ind Outt In4 Out2 In2 Outs In3 c Ww Ic a gr2 Gk 4-bit reg En 3 At, TS. oun ro Out int Qu mz ou hd a 1 LRT 4 i] Docsity.com 7 Implementing (op=1): R4← R3 + R2; Time step Operation to be performed (structural RTL) Control signals to be activated 1 A ← R3 LA, R3out 2 C ← A + R2 LC, R2out 3 R4 ← C LR4, Cout • These steps have to be performed one after the other • It indicates how the add operation is accomplished using the hardware shown before Docsity.com 10 01000 and 01001 andi 01010 or 01011 ori 01100 shiftl 01101 shiftr 01110 not 01111 asr 00000 add 00001 addi 00010 sub 00011 subi 00100 mul 00101 div 00110 mov 00111 movi 11000 in 11001 out 11010 int 11011 iret 11100 store 11101 load 11110 reset 11111 halt 10000 jpl 10001 jmi 10010 jnz 10011 jz 10100 jump 10101 nop 10110 call 10111 ret Op-code based listing of FALCON-A instructions Docsity.com 11 ISA Design Steps Assign fields to each operand in the instruction (at this time we can also decide on the instruction word length to be 16 bits)  size of each field (depends on the number of registers also) let’s say eight GPRs => three bits to encode them  encoding of the various fields straight binary encoding, shown on the next slide Docsity.com 12 Possible encoding of the GPRs Registers Encoding R0 000 R1 001 R2 010 R3 011 R4 100 R5 101 R6 110 R7 111 Docsity.com 15 ISA Design Steps Select instruction that are allowed to access memory • Since FALCON-A is a RISC like machine, only load and store instructions are allowed to access memory Docsity.com 16 ISA Design Steps Select addressing modes (ways to access memory) • Memory access in a load or store operation can be: Addressing Mode Format Example direct [constant or label] [10] or [a] displacement [register + constant or label] [R1 + 8] or [r2 + a] register indirect [register] [R3] Docsity.com 17 Programmer’s view of the FALCON-A 7 0 0 1 2 : : : Main memory 15 0 R0 R1 R7 Register file IR PC CPU : 7 0 0 1 2 : Input/Output 216-1 255 Docsity.com
Docsity logo



Copyright © 2024 Ladybird Srl - Via Leonardo da Vinci 16, 10126, Torino, Italy - VAT 10816460017 - All rights reserved