Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please solve my Homwork in subject Architecture Provide ONE C statement for the following MIPS assembly language instructions. Register $12 maps to variable as and

Please solve my Homwork in subject Architecture image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Provide ONE C statement for the following MIPS assembly language instructions. Register $12 maps to variable as and the base address of array a la in registere1 lw $to, 12 ($t1) sub Sto, $82, $to sw $to, 12($t1) Answer: Placing data onto stack is called .......... while removing data from it is called ......... a. Push, Push O b. Push, Pop . Pop, Pop d. Pop, Push Write the number of the term in the first Column that matches the correct definition in the second Column Assembler 1 The number of transistors in an integrated circuit doubles every 18-24 Least significant bit months, ALU 2. Total work done per unit time. State (Sequential) element 3. Program that translates symbolic instructions to binary instructions Personal computer The right most bit in a MIPS word. Moore's law 5. How long it takes to do a task, Response time 6. The component of the processor that performs arithmetic and logical operations Throughout 7.A memory element, such as a register, a flip flop, or a memory 8.A computer designed for use by an individual, usually including a graphics display, a keyboard, and a mouse. Write the number of the term in the first Column that matches the correct definition in the second Column Good design demands good compromise 1. For simplicity, each instruction has exactly three operands. Simplicity favors regularity 2. All MIPS instructions have the same length the compromise is that they require different instruction formats MIPS has 32 32-bit register this small number will not increase the clock cycle time 4. MIPS includes only simple and commonly used instructions ( MIPS makes constants part of arithmetic instructions), In MIPS, the NOT logical operation can be implemented using one of the following instructions: a. not $t0,$t1, $zero b.ori $t0, $t1, 0 Ocnor $t0,$t1, $zero d. andi $t0,$t1, 0 What are the names of the 3 hidden components in the following datapath figure? PCSnc (o 3x Add Addresult ALU Reo Write Shift lett 2 Meme Instruction (26211 Instruction (2016) ALUSTO Montre 2 3 Zoro ALU ALU ros Address Read dat Instruction |18:11 "EZ 30 Regol Data Write memory Instruction 18.01 16 32 Sign extend ALU control Mama instruction 11 ALUOP 1. 2. 3. Convert the following C statement to MIPS assembly language instructions. Assume all variables in the statement are 32-bit integers. Variables to registers mapping are as follows: E maps to $80. g maps to $81, h maps to $s2, i maps to $53, 1 maps to $84. f = ((g+h)- (i+j)) *4 Sto, Sol, $52 $ti, 9m3, DH4 $t3, $ $ $50, 5 What are the control signals for the following sw instruction shown in the figure? (Win the following spaces with either 0 or 1. NO X sw $81, 4($82) op = 101011 (Hype) Inputs Ops Op4 Op3 Op2 Op1 Opo Outputs R-format Iw SW beg RegDat ALUS MemtoReg RegWrite MemRoad MemWrite Branch ALUOp1 ALUOpo How long does it take to run a program consisting of 1000 instructions on a computer with a CPI of 2 and a clock cycle time of Imsee? 22 msec 6.2 sec Ocisec d. 20 micro sec Which computer is faster? Bati's Computer Sinky's Computer 1000 1000 3 CPI N Clock Rate 3 GHz Clock Rate 2 GHz a. Equal Performance. b. Bati by 1.5 times c. Sinky by 2 times. d. Sinky by 1.5 times. Provide ONE C statement for the following MIPS assembly language instructions. Register $12 maps to variable as and the base address of array a la in registere1 lw $to, 12 ($t1) sub Sto, $82, $to sw $to, 12($t1) Answer: Register ............ points to the most recently allocated address in the stack. a. $a0-$a3 0 b. $ra Oc.spc d. $sp Provide the two instructions that support calling the given procedure (AVERAGE) and allow the procedure to return to the proper address as shown in the following figure. Also, what is the value of register Sra alter calling the procedure? ? Register 0 Register 1 seca... AVERAGE 1000 1004 1008 $sp AVERAGE: add ? Sra 2048 2052 2056 2060 ? ? Sra : Answer 1. AVERAGE 2 3. The value of Sra Convert the following machine language code into a MIPS Instruction. Also, provide the type of the instruction (R. I, or J). (000000 10001 10010 10000 00000 10000012 laws.pdf Answer: ; and the type is Instruction is Convert the following machine language code into a MIPS instruction. Also, provide the type of the instruction (R. I, or J), (00000000000 1010 10101 00001000010) laws.pdf Answer: w; and the type is Instruction is What is the immediate value of ne needed to calculate the target address (80028) if the branch is taken? Loop: sll $t1,$s3,2 80004 0 0 19 9 2 0 add $t1,$t1,$s6 80008 9 22 9 0 32 lw $t0, 0 ($ti) 80012 35 9 8 0 bne $to, $55, Exit 80016 5 5 8 21 addi $33,$s3,1 80020 8 19 19 1 j Loop 80024 2 20000 Exit: + *80028 a. 5 b.3 Oc. 2 d.4 Register ............ points to the most recently allocated address in the stack. a. $a0-$a3 0 b. $ra Oc.spc d. $sp Provide ONE C statement for the following MIPS assembly language instructions. Register $12 maps to variable as and the base address of array a la in registere1 lw $to, 12 ($t1) sub Sto, $82, $to sw $to, 12($t1) Answer: Placing data onto stack is called .......... while removing data from it is called ......... a. Push, Push O b. Push, Pop . Pop, Pop d. Pop, Push

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The World Wide Web And Databases International Workshop Webdb 98 Valencia Spain March 27 28 1998 Selected Papers Lncs 1590

Authors: Paolo Atzeni ,Alberto Mendelzon ,Giansalvatore Mecca

1st Edition

3540658904, 978-3540658900

More Books

Students also viewed these Databases questions

Question

Explain the causes of indiscipline.

Answered: 1 week ago

Question

Explain the factors influencing wage and salary administration.

Answered: 1 week ago