Fall 2016 Instructor: Gandhi Puvvada. Thursday, 9/22/2016 (A 2H 50M exam) 05:30 PM - 08:20 PM (170 min) in THH101. Student s Last Name:

Size: px
Start display at page:

Download "Fall 2016 Instructor: Gandhi Puvvada. Thursday, 9/22/2016 (A 2H 50M exam) 05:30 PM - 08:20 PM (170 min) in THH101. Student s Last Name:"

Transcription

1 EE457 Quiz (~0%) Closed-book Closed-notes Exam; No cheat sheets; No cell phones or computers Calculators and Verilog Guides are not needed and hence not allowed. Fall 206 Instructor: Gandhi Puvvada Thursday, 9/22/206 (A 2H 50M exam) 05:30 PM - 08:20 PM (70 min) in THH0 Student s Last Name: Student s First Name: Student s DEN D2L Ques# Topic Page# Time Points Score State Diagram, RTL Design min CPU Performance 5 20 min Unsigned and Signed numbers 6 20 min MIPS ISA, Byte-addressable processors min Single-Cycle CPU 0-25 min. 45 Total 60 min. 238 Perfect Score 230 Viterbi School of Engineering University of Southern California September 22, 206 0:09 am EE457 Quiz - Fall 206 / 2 C Copyright 206 Gandhi Puvvada

2 ( = 68 points) 50 min. State Diagram and RTL design (Iteration counter advancement and terminal count checking): 7. A rectangular array of bits, A[I,J], are to be cleared starting from A[,5] to A[5,]. It is a total of 25 bits as shown in the diagram. Row index I goes from to 5 and Column index J goes from 5 to. RESET The clearing is done row by row from the top row (I == ) to the bottom row (I == 5). And with in a row, we start from the right end (J == 5) to the left end (J == ). It is a row-major order as shown in the pseudo code. Complete the state diagram below. START INI I<= ; J<= 5; START C I CLR A[I,J] <= 0; if (J!= ) J <= J - ; else { J <= ; I <= I + ; } J for (I = ; I <= 5; I++) { for (J = 5; J >= ; J--) A[I][J] = 0; } When you reach the DONE state what are the values of I,J? I = ; J = ; C C = (I == ) (J == ) Number of clocks spent in CLR state = ACK DONE ACK 8.. You know that a later assignment over-rides an earlier assignment in a procedural block of Verilog HDL. Complete the two RTL snippets for the CLR case branch. You can use a statement such as I <= I; or J <= J; if needed in your if statement. In the left-side RTL, J is by default decremented and this decrementation is over-ridden as needed. In the right-side RTL, I is by default incremented and this incrementation is over-ridden as needed. CLR: begin A[I,J] <= 0; J <= J - ; // by default if ( CLR: begin A[I,J] <= 0; I <= I + ; // by default if ( end end September 22, 206 0:09 am EE457 Quiz - Fall / 2 C Copyright 206 Gandhi Puvvada

3 3.2 How many B[K] locations are cleared in the completed state diagram below? RESET START K = ACK INI CLR DONE K<= 2; START B[K] <= 0; K = K <= K - ; ACK 8.3 Complete the state diagram below to clear 50 bits of A[I,J,K] (25 bits of A [I,J,2] and 25 bits of A [I,J,] ). Like in Q#., for each of the two values of K, the I and the J can be made to go from [I,J]=[5,] to [I,J]= [,5]. The array A is maintained in a flash memory. You for (K = 2; K >= ; K--) { for (I = ; I <= 5; I++) { for (J = 5; J >= ; J--) A[I,J,K] = 0; } } perhaps know that flash memory takes several clocks to write to it. For the sake of this problem, let us say that we need a minimum of two clocks to write to it and we need to wait until we get a positive indication from the flash memory status output FWD (FWD = Flash memory Writing Done) in the form of (FWD == ). The Flash memory is not expected to update FWD properly in the first clock when you start writing. So we should not assume that it finished writing even if we see FWD = during the first clock. A Flag F, initially cleared to zero, can be used to make sure that we keep I, J, and K unchanged at least for one clock. At the end of the first clock, the flag F is set indicating that the FWD can be relied upon. From the 2nd clock onwards we wait for (FWD == ) to update the location coordinates, I, J, and K, and clear the Flag F. START C ACK RESET INI I<= ; J<= 5; K<= 2; F<= 0; START CLR A[I,J,K] <= 0; if (J!= ) J <= J - ; else if ( { J <= ; else { I <= I + ; } C = C When you reach the DONE state what are the values of I,J,K,F? I = ; J = ; K = ; F = ; DONE } ACK September 22, 206 0:09 am EE457 Quiz - Fall / 2 C Copyright 206 Gandhi Puvvada

4 .4 You have done the Min/Max lab Part (with two comparators) and Part 2 (with one comparator). Part takes a constant number of clocks (+5 = 6) where as Part 2 takes a variable number of clocks (+5 = 6 at minimum for an ascending data and + 5*2 = 3 at maximum for a descending data). Here you are given a dual port memory M and two comparators, and are asked to improve the best case. The Comparator #0 looks at all even numbered locations M[I] and arrives at one set of results, Max0 and Min0. The Comparator # looks at all odd numbered locations M[J] and arrives at another set of results, Max and Min. Finally we have a Merge state, where we compare the two sets of results (Comp#0 compares Max0 and Max while Comp# compares Min0 and Min) and arrive at the final results, Max and Min. So the best case is +7+=9 clocks for an ascending data. The worst case is +4+=6 for a descending data. So, while in the CMxMn state, if one of the two, Com#0 or Comp#, has finished its job before the other, he should just wait. Only either when both are about to be done together or when one is done and the other is about to be done, you should prepare to move to the Merge state. An inferior designer waits until both are done (rather than about to be done) and wastes one clock. We will send him back to EE354L. Here I and J counters are 5 bit counters. I starts with and J starts with Each is incremented by 2 whenever it needs to be incremented (I<=I+2; J<=J+2;). So I remains even always and J remains odd always. When I is done, it becomes 6 (0000) and when J is done, it becomes 7 (000). You may be able to use some or all of the following conditions in your design. (I==4), (I!=4), (I==6), (I!=6), (J==5), (J!=5), (J==7), (J!=7), M[I] >= Max0, M[I] <= Min0, M[J] >= Max, M[J] <= Min, Max >= Max0, Min <= Min0, 6 Reset Start State Diagram for Part 2 for Dual-Port Memory 2 flags, 2 comparators, 2 counters. INI LOAD Flag0<=0; Start Min0 <= M[I]; I <= 0; Max0 <= M[I]; Flag<=0; I <= I + 2; J <= ; Min <= M[J]; Max <= M[J]; J <= J + 2; DONE C CMxMn Merge if (Max >= Max0) Max <= Max; else Max <= Max0; if (Min <= Min0) Min <= Min; else Min <= Min0; C September 22, 206 0:09 am EE457 Quiz - Fall / 2 C Copyright 206 Gandhi Puvvada

5 6 You need to complete the design on the previous page by (a) filling up "0" or "" in the six boxes (b) writing I <= I + 2; or J <= J + 2; at appropriate places in the code (c) and finally figuring out the condition "C" governing state transition from CMxCMn state to the Merge state. Write the long boolean expression below for the condition C. C = 2 ( = 28 points) 20 min. Performance Let us say, we are a hardware IP (Intellectual Property) vendor. We designed a Multiply instruction execution IP which takes 20 clocks at 2 GHz and sold the IP to two processor manufacturers, XYZ and ABC, who implemented our USC CISC ISA. The frequency of usage of the multiply instruction (in the dynamic execution trace of the binary produced by compiling the benchmark by a third party compiler) is 0%. Both processors ran at 2 GHz. But percentage of execution time spent on our Mult instruction is 20% in XYZ and 25% in ABC.. If you have adequate data, compare the performance of the two processors. If the data is inadequate, explain how it is inadequate. Also, if there is excessive data, state what is excessive. 2. If you have adequate data, compare the native MIPs ratings of the two processors. If the data is inadequate, explain how it is inadequate. 3. If you have adequate data, compare the relative MIPs ratings of the two processors. If the data is inadequate, explain how it is inadequate % improvement in Instruction A is better than 0% improvement in Instruction B, if (select) (a) frequency of occurrence of A in the dynamic execution trace is more than that of B (b) percentage of execution time spent on A is higher than that of B (c) CPI of A is higher than CPI of B (d) none of the above Reducing clocks taken by Instruction A by clock is better than reducing clocks taken by Instruction B by clock, if (select) (a) frequency of occurrence of A in the dynamic execution trace is more than that of B (b) percentage of execution time spent on A is higher than that of B (c) CPI of A is higher than CPI of B (d) none of the above September 22, 206 0:09 am EE457 Quiz - Fall / 2 C Copyright 206 Gandhi Puvvada

6 3 ( = 35 points) 20 min. unsigned and signed numbers 0 3. If you are allowed to use numbers from the SW (South-West) quadrant only (as shown in the figure below) you can only arrive at some of the 8 combinations in the table on the side. Cross off the rows, which are not possible to fill with these limited choices. Complete the last two columns for the remaining rows. UNSIGNED SW LARGER mag. SMALLER mag. Error point: C bit is set bit Circles Just FYI SIGNED SW SMALLER mag. LARGER mag. +3 Error Point: V bit is set Operation Addition Addition Addition Addition Subtraction Subtraction Subtraction Subtraction Result / if numbers are treated as signed numbers Result / if numbers are treated as unsigned numbers V Raw OVERFLOW Carry C4 (COUT) Given two 4-bit numbers A (a 3 a 2 a a 0 ) and B (b 3 b 2 b b 0 ), produce 2AleB_BW. 2AleB_BW stands for 2A (double of A) le (less than or equal) to B BW both ways (BW = both ways = whether we treat A and B as signed numbers in 2 s complement notation or unsigned numbers). Let us analyze to see which cases need an actual comparator to compare and which can be concluded easily. To double A (a 3 a 2 a a 0 ), we can append a zero at the right-end whether A is signed (2 s comp) or unsigned, so basically we are comparing a 3 a 2 a a 0 0 with b 3 b 2 b b 0. T / F If a 3 is a, we can conclude 2AleB_BW as (true/false) without any comparator because when A and B are considered to be (signed/unsigned), the 2A is too (big/ small) for any B to match up. For the remaining part, i.e for (a 3 =0), we need to consider the two cases, (b 3 =0) and (b 3 =). For the case [(a 3 =0) and (b 3 =)], we can conclude 2AleB as false, without any comparator, if both A and B are treated as (signed/unsigned) numbers. For the case [(a 3 =0) and (b 3 =0)], since both are positive, we can use an unsigned 4-bit comparator to find if 2AleB is true or not by comparing a 2 a a 0 0 with b 3 b 2 b b 0 T / F. If a 2 a a 0 is lower than b 3 b 2 b then a 2 a a 0 0 is lower than b 3 b 2 b b 0 even if b 0 is a. T/F However, for a 2 a a 0 0 to be equal to b 3 b 2 b b 0, the b 0 needs to be a (0 / ) Complete the 3-bit unsigned comparison below to compare a 2 a a 0 with b 3 b 2 b. Combine it with b 0 to produce an IntR ( = intermediate result) standing for a 2 a a 0 0 is lower than or equal to b 3 b 2 b b 0. Combine this with requirements on a 3 and b 3 to produce the final inference 2AleB_BW. b b b Y2 Y Y0 a2 a a0 X2 X X0 ADD/SUB VDD 2AleB_BW Carry RawCarry a b cout cin s a b cout cin s a b cout cin s S2 S S0 d2 d d0 C0 d2 d d0 Zero IntR_Lower IntR_Equal IntR V September 22, 206 0:09 am EE457 Quiz - Fall / 2 C Copyright 206 Gandhi Puvvada

7 4 ( = 62 points) 45 min. MIPS ISA, Byte-addressable processors 2 4. It is possible to replace the unconditional branch, beq $0,$0, L2 with a jump j L2 or with a jr $8 provided $8 is loaded as shown below. The worst choice of the three is (select one) (i) beq $0,$0, L2; (ii) j L2; (iii) lui $8, 0000h; ori $8, $8, 006Ch; jr $8; // upstream code 40 beq $, $2, L; 44 addu $4, $0, $0; 48 beq $0, $0, L2; L(=4C) L2(=6C)... Explain: Arrive at the 6-bit offset field in the translation of beq $0,$0, L2 on the side Reproduced below is an extract from your class-notes September 22, 206 0:09 am EE457 Quiz - Fall / 2 C Copyright 206 Gandhi Puvvada

8 I have corrected the textbook code incorrectly because I assumed that The "add" in the five-instruction rectangle can be replaced by "addi $29, $29, 4" to add a 4 to move the stack pointer $29. Similarly the "sub" can be replaced by " " to subtract a 4 to move the stack pointer $ A student wrote the above code initially and later while debugging he decided that the call to subroutine C was not required. But he just deleted the jal C instruction instead of deleting all the 5 instructions in the rectangles! Is it that it is just wasteful that he is executing 4 instructions or is it harmful? Answer the above question again, this time assuming that it is a conditional call instruction beqal $, $2, C in the place of jal C. Recall the made-up instruction beqal (branch if equal and link) we used in an earlier exam question, where we write to the link register $3 conditionally Based on the above analysis, Mr. (Bruin / Trojan) recommends removal of the AND gate and OR gate in the rectangle by redefining the beqal as conditional call which unconditionally deposits the return address into the link register $3. And he further requires that every use of beqal should be preceded by two lines to (save/ retrieve) the contents of $3 on the compiler designated stack and followed by two lines to (save/retrieve) the return address saved on the stack into the link register $ The textbook and the class-notes show a (SRAM / SSRAM) for the Level Data Cache (shown as Data Memory in chapter 5) (though/because) in real design we use (SRAM / SSRAM) for the Level Data Cache. September 22, 206 0:09 am EE457 Quiz - Fall / 2 C Copyright 206 Gandhi Puvvada

9 Intel follows (Little Endian / Big Endian) system. In the Intel processor system address space, byte 0000_747C H is the (most / least) significant byte of the 32-bit word with system address (state in hexadecimal). State the next three 32-bit word addresses, next to the 32-bit word 40 Hex :. State the next three 64-bit long word addresses, next to the 64-bit long word 40 Hex, in the context of i860 (64-bit data 32-bit logical address byte addressable processor):. 4.5 Shown on the side is the memory interface to a byte-wide memory chip in a memory system based on minimum number of byte-wide banks for an USC28 processor (28-bit data, 32- bit logical address, byte-addressable processor). USC processors are similar to Intel processors so far as byte-enable pins are concerned. The address pins on the processor are (select) (i) A[3:0] (ii) A[3:3],/BE[7:0] (iii) A[3:4],/BE[5:0] Fill-in the 3-blanks (marked by the 3 arrows) in the figure on the side. Also find the system addresses corresponding to the lowest-addressed two bytes of this memory chip. The lowest-addressed two bytes of this chip map to the system byte addresses (in hex). The system addresses mapping to any location in this memory chip will have the same upper (state a number) bits namely (state their labels in the form X[3:2]). A[9:4] A3 A30 A29 A28 A27 A26 A25 A24 A23 A22 A2 A20 KB A[ ] D[7:0] WE RD CS If this chip goes bad, until you replace, you should avoid using memory in system address range (state the range in hex): BE4 Note D[ ] Blank area (for rough work) September 22, 206 0:09 am EE457 Quiz - Fall / 2 C Copyright 206 Gandhi Puvvada

10 5 ( = 45 points) 25 min. Single-cycle CPU: You are familiar with the ordinary jump instruction J (Jump with the 26-bit jump address field), Jal (Jump and Link), Jr rs, (Jump register rs), and the Beq (Branch if Equal). In class we discussed a made-up instruction, Beqal (Branch if equal and link, a conditional call instruction). For this question, assume that the Beqal writes unconditionally to the link register $3 the return address (PC+4). Hence the control signal "beqal" is crossed off in the control signal table below The data path on the next page is nearly complete. Complete the connections to the 7 loose ends which were marked with numbered arrows. 5.2 Control Signal Table: Complete the three rows and three columns. Whenever possible, use don t cares. Instruction ALUSrc ALUOp ALUop0 RegWrite RegDst Memtoreg MemRead MemWrite Branch beqal (not needed) JUMP Jal JR 2+9 R-format lw sw X X 0 0 beq X X 0 0 beqal J X X X 0 X X 0 0 X Jal JR rs X X X X X X X X Blank area It is not difficult to get an A in EE457. You need to work for it and seek help from the 457 teaching team on whatever you do not understand. We are eager to help you. The next three topics, pipelined CPU, cache and virtual memory are interesting and challenging too. They are the focus of the midterm exam. Then we cover advanced topics. Best! Gandhi, TAs: Sanmukh, Pezhman, Fangzhou, Mentors: Bo, Monisha, Nishant HW Graders: Hongtai, Aashish, Yashah Lab graders: Neil, Dong, Congyi September 22, 206 0:09 am EE457 Quiz - Fall / 2 C Copyright 206 Gandhi Puvvada

11 Instruction [3:0] Jump Address [3:0] PC+4 [3:28] 0 0 Jump JR Jal Control RegDst Branch MemRead MemtoReg ALUOp MemWrite ALUSrc RegWrite PCSrc Jump JR Zero 0 0 ALU control Jal 6 7

12 Blank page: Please write your name and . Tear it off and use for rough work. Do not submit. Student s Last Name: September 22, 206 0:09 am EE457 Quiz - Fall / 2 C Copyright 206 Gandhi Puvvada

EE457. Note: Parts of the solutions are extracted from the solutions manual accompanying the text book.

EE457. Note: Parts of the solutions are extracted from the solutions manual accompanying the text book. EE457 Instructor: G. Puvvada ======================================================================= Homework 5b, Solution ======================================================================= Note:

More information

Chapter 5 Solutions: For More Practice

Chapter 5 Solutions: For More Practice Chapter 5 Solutions: For More Practice 1 Chapter 5 Solutions: For More Practice 5.4 Fetching, reading registers, and writing the destination register takes a total of 300ps for both floating point add/subtract

More information

CSEN 601: Computer System Architecture Summer 2014

CSEN 601: Computer System Architecture Summer 2014 CSEN 601: Computer System Architecture Summer 2014 Practice Assignment 5 Solutions Exercise 5-1: (Midterm Spring 2013) a. What are the values of the control signals (except ALUOp) for each of the following

More information

Spring 2012 EE457 Instructor: Gandhi Puvvada

Spring 2012 EE457 Instructor: Gandhi Puvvada Spring 2012 EE457 Intructor: Gandhi Puvvada Quiz (~ 10%) Date: 2/17/2012, Friday in SLH200 Calculator and Cadence Verilog Guide are allowed; Time: 10:00AM-12:45PM Cloed-book/Cloed-note Exam Total point:

More information

Spring 2013 EE201L Instructor: Gandhi Puvvada. Time: 7:30-10:20AM SGM124 Total points: Perfect score: Open-Book Open-Notes Exam

Spring 2013 EE201L Instructor: Gandhi Puvvada. Time: 7:30-10:20AM SGM124 Total points: Perfect score: Open-Book Open-Notes Exam Spring 2013 EE201L Instructor: Gandhi Puvvada Final Exam 2 (25%) Date: May 9, 2013, Thursday Name: Open-Book Open-Notes Exam Time: 7:30-10:20AM SGM124 Total points: Perfect score: 1 ( points) min. Memory

More information

THE HONG KONG UNIVERSITY OF SCIENCE & TECHNOLOGY Computer Organization (COMP 2611) Spring Semester, 2014 Final Examination

THE HONG KONG UNIVERSITY OF SCIENCE & TECHNOLOGY Computer Organization (COMP 2611) Spring Semester, 2014 Final Examination THE HONG KONG UNIVERSITY OF SCIENCE & TECHNOLOGY Computer Organization (COMP 2611) Spring Semester, 2014 Final Examination May 23, 2014 Name: Email: Student ID: Lab Section Number: Instructions: 1. This

More information

CS 351 Exam 2 Mon. 11/2/2015

CS 351 Exam 2 Mon. 11/2/2015 CS 351 Exam 2 Mon. 11/2/2015 Name: Rules and Hints The MIPS cheat sheet and datapath diagram are attached at the end of this exam for your reference. You may use one handwritten 8.5 11 cheat sheet (front

More information

EE 457 Midterm Summer 14 Redekopp Name: Closed Book / 105 minutes No CALCULATORS Score: / 100

EE 457 Midterm Summer 14 Redekopp Name: Closed Book / 105 minutes No CALCULATORS Score: / 100 EE 47 Midterm Summer 4 Redekopp Name: Closed Book / minutes No CALCULATORS Score: /. (7 pts.) Short Answer [Fill in the blanks or select the correct answer] a. If a control signal must be valid during

More information

EE 457 Midterm Summer 14 Redekopp Name: Closed Book / 105 minutes No CALCULATORS Score: / 100

EE 457 Midterm Summer 14 Redekopp Name: Closed Book / 105 minutes No CALCULATORS Score: / 100 EE 47 Midterm Summer 4 Redekopp Name: Closed Book / minutes No CALCULATORS Score: /. (7 pts.) Short Answer [Fill in the blanks or select the correct answer] a. If a control signal must be valid during

More information

Computer Science and Engineering 331. Midterm Examination #1. Fall Name: Solutions S.S.#:

Computer Science and Engineering 331. Midterm Examination #1. Fall Name: Solutions S.S.#: Computer Science and Engineering 331 Midterm Examination #1 Fall 2000 Name: Solutions S.S.#: 1 41 2 13 3 18 4 28 Total 100 Instructions: This exam contains 4 questions. It is closed book and notes. Calculators

More information

4. What is the average CPI of a 1.4 GHz machine that executes 12.5 million instructions in 12 seconds?

4. What is the average CPI of a 1.4 GHz machine that executes 12.5 million instructions in 12 seconds? Chapter 4: Assessing and Understanding Performance 1. Define response (execution) time. 2. Define throughput. 3. Describe why using the clock rate of a processor is a bad way to measure performance. Provide

More information

CSE 378 Midterm 2/12/10 Sample Solution

CSE 378 Midterm 2/12/10 Sample Solution Question 1. (6 points) (a) Rewrite the instruction sub $v0,$t8,$a2 using absolute register numbers instead of symbolic names (i.e., if the instruction contained $at, you would rewrite that as $1.) sub

More information

CS3350B Computer Architecture Quiz 3 March 15, 2018

CS3350B Computer Architecture Quiz 3 March 15, 2018 CS3350B Computer Architecture Quiz 3 March 15, 2018 Student ID number: Student Last Name: Question 1.1 1.2 1.3 2.1 2.2 2.3 Total Marks The quiz consists of two exercises. The expected duration is 30 minutes.

More information

CS61C : Machine Structures

CS61C : Machine Structures inst.eecs.berkeley.edu/~cs61c CS61C : Machine Structures Lecture 14 Introduction to MIPS Instruction Representation II 2004-02-23 Lecturer PSOE Dan Garcia www.cs.berkeley.edu/~ddgarcia In the US, who is

More information

Processor (I) - datapath & control. Hwansoo Han

Processor (I) - datapath & control. Hwansoo Han Processor (I) - datapath & control Hwansoo Han Introduction CPU performance factors Instruction count - Determined by ISA and compiler CPI and Cycle time - Determined by CPU hardware We will examine two

More information

ASIC = Application specific integrated circuit

ASIC = Application specific integrated circuit ASIC = Application specific integrated circuit CS 2630 Computer Organization Meeting 19: Building a MIPS processor Brandon Myers University of Iowa The goal: implement most of MIPS So far Implementing

More information

ECE Exam I - Solutions February 19 th, :00 pm 4:25pm

ECE Exam I - Solutions February 19 th, :00 pm 4:25pm ECE 3056 Exam I - Solutions February 19 th, 2015 3:00 pm 4:25pm 1. (35 pts) Consider the following block of SPIM code. The text segment starts at 0x00400000 and the data segment starts at 0x10010000..data

More information

Final Programming Project

Final Programming Project Due Thursday, Dec. 7, at 5:00 pm Logistics This assignment should be completed in groups of 3. This is not optional -- you are not allowed to complete it on your own, or in groups of any other size. I

More information

NATIONAL UNIVERSITY OF SINGAPORE

NATIONAL UNIVERSITY OF SINGAPORE NATIONAL UNIVERSITY OF SINGAPORE SCHOOL OF COMPUTING EXAMINATION FOR Semester 1 AY2013/14 CS2100 COMPUTER ORGANISATION ANSWER SCRIPT Nov 2013 Time allowed: 2 hours Caveat on the grading scheme: I have

More information

CSE 141 Computer Architecture Summer Session Lecture 3 ALU Part 2 Single Cycle CPU Part 1. Pramod V. Argade

CSE 141 Computer Architecture Summer Session Lecture 3 ALU Part 2 Single Cycle CPU Part 1. Pramod V. Argade CSE 141 Computer Architecture Summer Session 1 2004 Lecture 3 ALU Part 2 Single Cycle CPU Part 1 Pramod V. Argade Reading Assignment Announcements Chapter 5: The Processor: Datapath and Control, Sec. 5.3-5.4

More information

ECE369. Chapter 5 ECE369

ECE369. Chapter 5 ECE369 Chapter 5 1 State Elements Unclocked vs. Clocked Clocks used in synchronous logic Clocks are needed in sequential logic to decide when an element that contains state should be updated. State element 1

More information

LECTURE 5. Single-Cycle Datapath and Control

LECTURE 5. Single-Cycle Datapath and Control LECTURE 5 Single-Cycle Datapath and Control PROCESSORS In lecture 1, we reminded ourselves that the datapath and control are the two components that come together to be collectively known as the processor.

More information

Winter 2006 FINAL EXAMINATION Auxiliary Gymnasium Tuesday, April 18 7:00pm to 10:00pm

Winter 2006 FINAL EXAMINATION Auxiliary Gymnasium Tuesday, April 18 7:00pm to 10:00pm University of Calgary Department of Electrical and Computer Engineering ENCM 369: Computer Organization Lecture Instructor for L01 and L02: Dr. S. A. Norman Winter 2006 FINAL EXAMINATION Auxiliary Gymnasium

More information

Chapter 5: The Processor: Datapath and Control

Chapter 5: The Processor: Datapath and Control Chapter 5: The Processor: Datapath and Control Overview Logic Design Conventions Building a Datapath and Control Unit Different Implementations of MIPS instruction set A simple implementation of a processor

More information

COMPUTER ORGANIZATION AND DESIGN. The Hardware/Software Interface. Chapter 4. The Processor: A Based on P&H

COMPUTER ORGANIZATION AND DESIGN. The Hardware/Software Interface. Chapter 4. The Processor: A Based on P&H COMPUTER ORGANIZATION AND DESIGN The Hardware/Software Interface Chapter 4 The Processor: A Based on P&H Introduction We will examine two MIPS implementations A simplified version A more realistic pipelined

More information

EE457 Lab 4 Part 4 Seven Questions From Previous Midterm Exams and Final Exams ee457_lab4_part4.fm 10/6/04

EE457 Lab 4 Part 4 Seven Questions From Previous Midterm Exams and Final Exams ee457_lab4_part4.fm 10/6/04 EE457 Lab 4 Part 4 Seven Questions From Previous Midterm Exams and Final Exams ee457_lab4_part4.fm 10/6/04 1 [Based on Question #7 of Summer 1993 Midterm] Remove TARGET register, add ZERO FF: Please refer

More information

Topic #6. Processor Design

Topic #6. Processor Design Topic #6 Processor Design Major Goals! To present the single-cycle implementation and to develop the student's understanding of combinational and clocked sequential circuits and the relationship between

More information

I-Format Instructions (3/4) Define fields of the following number of bits each: = 32 bits

I-Format Instructions (3/4) Define fields of the following number of bits each: = 32 bits CS61C L10 MIPS Instruction Representation II (1) inst.eecs.berkeley.edu/~cs61c CS61C : Machine Structures Lecture #10 Instruction Representation II 2007-7-8 Review There are register calling conventions!

More information

Chapter 4. The Processor. Computer Architecture and IC Design Lab

Chapter 4. The Processor. Computer Architecture and IC Design Lab Chapter 4 The Processor Introduction CPU performance factors CPI Clock Cycle Time Instruction count Determined by ISA and compiler CPI and Cycle time Determined by CPU hardware We will examine two MIPS

More information

CS61C : Machine Structures

CS61C : Machine Structures inst.eecs.berkeley.edu/~cs61c CS61C : Machine Structures Lecture 14 Introduction to MIPS Instruction Representation II Lecturer PSOE Dan Garcia www.cs.berkeley.edu/~ddgarcia Are you P2P sharing fans? Two

More information

Faculty of Science FINAL EXAMINATION

Faculty of Science FINAL EXAMINATION Faculty of Science FINAL EXAMINATION COMPUTER SCIENCE COMP 273 INTRODUCTION TO COMPUTER SYSTEMS Examiner: Prof. Michael Langer April 18, 2012 Associate Examiner: Mr. Joseph Vybihal 2 P.M. 5 P.M. STUDENT

More information

McGill University Faculty of Engineering FINAL EXAMINATION Fall 2007 (DEC 2007)

McGill University Faculty of Engineering FINAL EXAMINATION Fall 2007 (DEC 2007) McGill University Faculty of Engineering FINAL EXAMINATION Fall 2007 (DEC 2007) VERSION 1 Examiner: Professor T.Arbel Signature: INTRODUCTION TO COMPUTER ENGINEERING ECSE-221A 6 December 2007, 1400-1700

More information

University of Jordan Computer Engineering Department CPE439: Computer Design Lab

University of Jordan Computer Engineering Department CPE439: Computer Design Lab University of Jordan Computer Engineering Department CPE439: Computer Design Lab Experiment : Introduction to Verilogger Pro Objective: The objective of this experiment is to introduce the student to the

More information

CPU Organization (Design)

CPU Organization (Design) ISA Requirements CPU Organization (Design) Datapath Design: Capabilities & performance characteristics of principal Functional Units (FUs) needed by ISA instructions (e.g., Registers, ALU, Shifters, Logic

More information

1 ( 23 points) 15 min.

1 ( 23 points) 15 min. ee57_mt_sp2.fm Spring 2 EE57 Instructor: Gandhi Puvvada Midterm Exam (2%) Date: //2, Friday Time: :M - 2:2PM in THH2 Name: Total points: 28 Perfect score: 9 / 28 ( 23 points) 5 min. Pipelining 5 5 3. I.F.R.F

More information

2 ( = 46 points) 30 min.

2 ( = 46 points) 30 min. ee457_quiz_fl2010.fm 10/1/10 2 ( 12 10 24 = 46 points) 30 min. State diagram coding in Verilog (you may refer to the Cadence (Esperan) Verilog guide): Consider the following partial flowchart and the corresponding

More information

CS/COE0447: Computer Organization

CS/COE0447: Computer Organization CS/COE0447: Computer Organization and Assembly Language Datapath and Control Sangyeun Cho Dept. of Computer Science A simple MIPS We will design a simple MIPS processor that supports a small instruction

More information

CS/COE0447: Computer Organization

CS/COE0447: Computer Organization A simple MIPS CS/COE447: Computer Organization and Assembly Language Datapath and Control Sangyeun Cho Dept. of Computer Science We will design a simple MIPS processor that supports a small instruction

More information

Design of Digital Circuits 2017 Srdjan Capkun Onur Mutlu (Guest starring: Frank K. Gürkaynak and Aanjhan Ranganathan)

Design of Digital Circuits 2017 Srdjan Capkun Onur Mutlu (Guest starring: Frank K. Gürkaynak and Aanjhan Ranganathan) Microarchitecture Design of Digital Circuits 27 Srdjan Capkun Onur Mutlu (Guest starring: Frank K. Gürkaynak and Aanjhan Ranganathan) http://www.syssec.ethz.ch/education/digitaltechnik_7 Adapted from Digital

More information

Computer Architecture I Midterm I

Computer Architecture I Midterm I Computer Architecture I Midterm I April 11 2017 Computer Architecture I Midterm I Chinese Name: Pinyin Name: E-Mail... @shanghaitech.edu.cn: Question Points Score 1 1 2 12 3 16 4 14 5 18 6 17 7 22 Total:

More information

Points available Your marks Total 100

Points available Your marks Total 100 CSSE 3 Computer Architecture I Rose-Hulman Institute of Technology Computer Science and Software Engineering Department Exam Name: Section: 3 This exam is closed book. You are allowed to use the reference

More information

1 ( pipeline 89 + single cycle 20 + multicycle 44 = 153 points) 100 min.

1 ( pipeline 89 + single cycle 20 + multicycle 44 = 153 points) 100 min. ee57_mt_sp23.fm Spring 23 EE57 Instructor: Gandhi Puvvada Midterm Exam (2%) Date: /5/23, Friday Time: 9:5M - :5M in THH2 Name: Total points: 2 Perfect score: 22 / 2 ( pipeline 89 + single cycle 2 + multicycle

More information

MIPS Assembly Programming

MIPS Assembly Programming COMP 212 Computer Organization & Architecture COMP 212 Fall 2008 Lecture 8 Cache & Disk System Review MIPS Assembly Programming Comp 212 Computer Org & Arch 1 Z. Li, 2008 Comp 212 Computer Org & Arch 2

More information

CSE 141 Computer Architecture Spring Lecture 3 Instruction Set Architecute. Course Schedule. Announcements

CSE 141 Computer Architecture Spring Lecture 3 Instruction Set Architecute. Course Schedule. Announcements CSE141: Introduction to Computer Architecture CSE 141 Computer Architecture Spring 2005 Lecture 3 Instruction Set Architecute Pramod V. Argade April 4, 2005 Instructor: TAs: Pramod V. Argade (p2argade@cs.ucsd.edu)

More information

Rui Wang, Assistant professor Dept. of Information and Communication Tongji University.

Rui Wang, Assistant professor Dept. of Information and Communication Tongji University. Instructions: ti Language of the Computer Rui Wang, Assistant professor Dept. of Information and Communication Tongji University it Email: ruiwang@tongji.edu.cn Computer Hierarchy Levels Language understood

More information

Lecture 4: Review of MIPS. Instruction formats, impl. of control and datapath, pipelined impl.

Lecture 4: Review of MIPS. Instruction formats, impl. of control and datapath, pipelined impl. Lecture 4: Review of MIPS Instruction formats, impl. of control and datapath, pipelined impl. 1 MIPS Instruction Types Data transfer: Load and store Integer arithmetic/logic Floating point arithmetic Control

More information

Review of Last Lecture. CS 61C: Great Ideas in Computer Architecture. MIPS Instruction Representation II. Agenda. Dealing With Large Immediates

Review of Last Lecture. CS 61C: Great Ideas in Computer Architecture. MIPS Instruction Representation II. Agenda. Dealing With Large Immediates CS 61C: Great Ideas in Computer Architecture MIPS Instruction Representation II Guest Lecturer: Justin Hsia 2/11/2013 Spring 2013 Lecture #9 1 Review of Last Lecture Simplifying MIPS: Define instructions

More information

Computer Science 324 Computer Architecture Mount Holyoke College Fall Topic Notes: Data Paths and Microprogramming

Computer Science 324 Computer Architecture Mount Holyoke College Fall Topic Notes: Data Paths and Microprogramming Computer Science 324 Computer Architecture Mount Holyoke College Fall 2007 Topic Notes: Data Paths and Microprogramming We have spent time looking at the MIPS instruction set architecture and building

More information

ECE Sample Final Examination

ECE Sample Final Examination ECE 3056 Sample Final Examination 1 Overview The following applies to all problems unless otherwise explicitly stated. Consider a 2 GHz MIPS processor with a canonical 5-stage pipeline and 32 general-purpose

More information

OPEN BOOK, OPEN NOTES. NO COMPUTERS, OR SOLVING PROBLEMS DIRECTLY USING CALCULATORS.

OPEN BOOK, OPEN NOTES. NO COMPUTERS, OR SOLVING PROBLEMS DIRECTLY USING CALCULATORS. CS/ECE472 Midterm #2 Fall 2008 NAME: Student ID#: OPEN BOOK, OPEN NOTES. NO COMPUTERS, OR SOLVING PROBLEMS DIRECTLY USING CALCULATORS. Your signature is your promise that you have not cheated and will

More information

CS232 Final Exam May 5, 2001

CS232 Final Exam May 5, 2001 CS232 Final Exam May 5, 2 Name: This exam has 4 pages, including this cover. There are six questions, worth a total of 5 points. You have 3 hours. Budget your time! Write clearly and show your work. State

More information

CS 61C: Great Ideas in Computer Architecture RISC-V Instruction Formats

CS 61C: Great Ideas in Computer Architecture RISC-V Instruction Formats CS 61C: Great Ideas in Computer Architecture RISC-V Instruction Formats Instructors: Krste Asanović and Randy H. Katz http://inst.eecs.berkeley.edu/~cs61c/fa17 9/14/17 Fall 2017 - Lecture #7 1 Levels of

More information

9/14/17. Levels of Representation/Interpretation. Big Idea: Stored-Program Computer

9/14/17. Levels of Representation/Interpretation. Big Idea: Stored-Program Computer CS 61C: Great Ideas in Computer Architecture RISC-V Instruction Formats Instructors: Krste Asanović and Randy H. Katz http://inst.eecs.berkeley.edu/~cs61c/fa17 Fall 2017 - Lecture #7 1 Levels of Representation/Interpretation

More information

CISC 662 Graduate Computer Architecture. Lecture 4 - ISA

CISC 662 Graduate Computer Architecture. Lecture 4 - ISA CISC 662 Graduate Computer Architecture Lecture 4 - ISA Michela Taufer http://www.cis.udel.edu/~taufer/courses Powerpoint Lecture Notes from John Hennessy and David Patterson s: Computer Architecture,

More information

Computer Science 324 Computer Architecture Mount Holyoke College Fall Topic Notes: MIPS Instruction Set Architecture

Computer Science 324 Computer Architecture Mount Holyoke College Fall Topic Notes: MIPS Instruction Set Architecture Computer Science 324 Computer Architecture Mount Holyoke College Fall 2009 Topic Notes: MIPS Instruction Set Architecture vonneumann Architecture Modern computers use the vonneumann architecture. Idea:

More information

EE557--FALL 1999 MAKE-UP MIDTERM 1. Closed books, closed notes

EE557--FALL 1999 MAKE-UP MIDTERM 1. Closed books, closed notes NAME: STUDENT NUMBER: EE557--FALL 1999 MAKE-UP MIDTERM 1 Closed books, closed notes Q1: /1 Q2: /1 Q3: /1 Q4: /1 Q5: /15 Q6: /1 TOTAL: /65 Grade: /25 1 QUESTION 1(Performance evaluation) 1 points We are

More information

CS305, Computer Architecture, End Sem, Sat 21/11/09, 2:30 05:30pm, Max marks: 45

CS305, Computer Architecture, End Sem, Sat 21/11/09, 2:30 05:30pm, Max marks: 45 CS305, Computer Architecture, End Sem, Sat 21/11/09, 2:30 05:30pm, Max marks: 45 Declaration (write by hand and sign): I hereby declare that I hold copying as an act as shameful as stealing, or bribery,

More information

EECS 151/251A Fall 2017 Digital Design and Integrated Circuits. Instructor: John Wawrzynek and Nicholas Weaver. Lecture 13 EE141

EECS 151/251A Fall 2017 Digital Design and Integrated Circuits. Instructor: John Wawrzynek and Nicholas Weaver. Lecture 13 EE141 EECS 151/251A Fall 2017 Digital Design and Integrated Circuits Instructor: John Wawrzynek and Nicholas Weaver Lecture 13 Project Introduction You will design and optimize a RISC-V processor Phase 1: Design

More information

ECE 473 Computer Architecture and Organization Project: Design of a Five Stage Pipelined MIPS-like Processor Project Team TWO Objectives

ECE 473 Computer Architecture and Organization Project: Design of a Five Stage Pipelined MIPS-like Processor Project Team TWO Objectives ECE 473 Computer Architecture and Organization Project: Design of a Five Stage Pipelined MIPS-like Processor Due: December 8, 2011 Instructor: Dr. Yifeng Zhu Project Team This is a team project. All teams

More information

CS61c MIDTERM EXAM: 3/17/99

CS61c MIDTERM EXAM: 3/17/99 CS61c MIDTERM EXAM: 3/17/99 D. A. Patterson Last name Student ID number First name Login: cs61c- Please circle the last two letters of your login name. a b c d e f g h i j k l m n o p q r s t u v w x y

More information

Name: University of Michigan uniqname: (NOT your student ID number!)

Name: University of Michigan uniqname: (NOT your student ID number!) The University of Michigan - Department of EECS EECS370 Introduction to Computer Organization Midterm Exam 1 October 22, 2009 Name: University of Michigan uniqname: (NOT your student ID number!) Open book,

More information

EE557--FALL 1999 MIDTERM 1. Closed books, closed notes

EE557--FALL 1999 MIDTERM 1. Closed books, closed notes NAME: SOLUTIONS STUDENT NUMBER: EE557--FALL 1999 MIDTERM 1 Closed books, closed notes GRADING POLICY: The front page of your exam shows your total numerical score out of 75. The highest numerical score

More information

1.3 A Branch Delay Slot is (always advantageous / always disadvantageous / depends on compiler s ability to fill the slot) Explain

1.3 A Branch Delay Slot is (always advantageous / always disadvantageous / depends on compiler s ability to fill the slot) Explain ee57_mt_sp2.fm Spring 2 EE57 Instructor: Gandhi Puvvada Midterm Exam (2%) Date: //2, Friday Time: :M - 2:2PM in THH2 Name: Total points: 28 Perfect score: 9 / 28 ( 23 points) 5 min. Pipelining 5 6 5 3.

More information

Machine Organization & Assembly Language

Machine Organization & Assembly Language Name: 1 CSE 378 Fall 2010 Machine Organization & Assembly Language Final Exam Solution Write your answers on these pages. Additional pages may be attached (with staple) if necessary. Please ensure that

More information

CS61C - Machine Structures. Lecture 6 - Instruction Representation. September 15, 2000 David Patterson.

CS61C - Machine Structures. Lecture 6 - Instruction Representation. September 15, 2000 David Patterson. CS61C - Machine Structures Lecture 6 - Instruction Representation September 15, 2000 David Patterson http://www-inst.eecs.berkeley.edu/~cs61c/ 1 Review Instructions: add, addi, sub, lw, sw beq, bne, j

More information

Computer Hardware Engineering

Computer Hardware Engineering Computer Hardware Engineering IS2, spring 27 Lecture 9: LU and s ssociate Professor, KTH Royal Institute of Technology Slides version. 2 Course Structure Module : C and ssembly Programming LE LE2 LE EX

More information

Winter 2002 FINAL EXAMINATION

Winter 2002 FINAL EXAMINATION University of Calgary Department of Electrical and Computer Engineering ENCM 369: Computer Organization Instructors: Dr. S. A. Norman (L01) and Dr. S. Yanushkevich (L02) Note for Winter 2005 students Winter

More information

CS/COE1541: Introduction to Computer Architecture

CS/COE1541: Introduction to Computer Architecture CS/COE1541: Introduction to Computer Architecture Dept. of Computer Science University of Pittsburgh http://www.cs.pitt.edu/~melhem/courses/1541p/index.html 1 Computer Architecture? Application pull Operating

More information

ECE Exam I February 19 th, :00 pm 4:25pm

ECE Exam I February 19 th, :00 pm 4:25pm ECE 3056 Exam I February 19 th, 2015 3:00 pm 4:25pm 1. The exam is closed, notes, closed text, and no calculators. 2. The Georgia Tech Honor Code governs this examination. 3. There are 4 questions and

More information

Winter 2009 FINAL EXAMINATION Location: Engineering A Block, Room 201 Saturday, April 25 noon to 3:00pm

Winter 2009 FINAL EXAMINATION Location: Engineering A Block, Room 201 Saturday, April 25 noon to 3:00pm University of Calgary Department of Electrical and Computer Engineering ENCM 369: Computer Organization Lecture Instructors: S. A. Norman (L01), N. R. Bartley (L02) Winter 2009 FINAL EXAMINATION Location:

More information

EE380 Spring 2014 Exam 1 Answer Key

EE380 Spring 2014 Exam 1 Answer Key Your name is: Your email address is: The two questions you skipped are: There are 15 questions. Each of the first 14 questions is wor th 8points; you must answer any 12 and indicate above which 2 you skipped

More information

ELEC 5200/6200 Computer Architecture and Design Spring 2017 Lecture 4: Datapath and Control

ELEC 5200/6200 Computer Architecture and Design Spring 2017 Lecture 4: Datapath and Control ELEC 52/62 Computer Architecture and Design Spring 217 Lecture 4: Datapath and Control Ujjwal Guin, Assistant Professor Department of Electrical and Computer Engineering Auburn University, Auburn, AL 36849

More information

Lab 7 (All Sections) Prelab: Verilog Review and ALU Datapath and Control

Lab 7 (All Sections) Prelab: Verilog Review and ALU Datapath and Control Lab 7 (All Sections) Prelab: Verilog Review and ALU Datapath and Control Name: Sign the following statement: On my honor, as an Aggie, I have neither given nor received unauthorized aid on this academic

More information

Lecture 8: Control COS / ELE 375. Computer Architecture and Organization. Princeton University Fall Prof. David August

Lecture 8: Control COS / ELE 375. Computer Architecture and Organization. Princeton University Fall Prof. David August Lecture 8: Control COS / ELE 375 Computer Architecture and Organization Princeton University Fall 2015 Prof. David August 1 Datapath and Control Datapath The collection of state elements, computation elements,

More information

CS 61C: Great Ideas in Computer Architecture. MIPS Instruction Formats

CS 61C: Great Ideas in Computer Architecture. MIPS Instruction Formats CS 61C: Great Ideas in Computer Architecture MIPS Instruction Formats Instructor: Justin Hsia 6/27/2012 Summer 2012 Lecture #7 1 Review of Last Lecture New registers: $a0-$a3, $v0-$v1, $ra, $sp Also: $at,

More information

CISC 662 Graduate Computer Architecture. Lecture 4 - ISA MIPS ISA. In a CPU. (vonneumann) Processor Organization

CISC 662 Graduate Computer Architecture. Lecture 4 - ISA MIPS ISA. In a CPU. (vonneumann) Processor Organization CISC 662 Graduate Computer Architecture Lecture 4 - ISA MIPS ISA Michela Taufer http://www.cis.udel.edu/~taufer/courses Powerpoint Lecture Notes from John Hennessy and David Patterson s: Computer Architecture,

More information

CS31001 COMPUTER ORGANIZATION AND ARCHITECTURE. Debdeep Mukhopadhyay, CSE, IIT Kharagpur. Instructions and Addressing

CS31001 COMPUTER ORGANIZATION AND ARCHITECTURE. Debdeep Mukhopadhyay, CSE, IIT Kharagpur. Instructions and Addressing CS31001 COMPUTER ORGANIZATION AND ARCHITECTURE Debdeep Mukhopadhyay, CSE, IIT Kharagpur Instructions and Addressing 1 ISA vs. Microarchitecture An ISA or Instruction Set Architecture describes the aspects

More information

Midterm I October 6, 1999 CS152 Computer Architecture and Engineering

Midterm I October 6, 1999 CS152 Computer Architecture and Engineering University of California, Berkeley College of Engineering Computer Science Division EECS Fall 1999 John Kubiatowicz Midterm I October 6, 1999 CS152 Computer Architecture and Engineering Your Name: SID

More information

CS 61c: Great Ideas in Computer Architecture

CS 61c: Great Ideas in Computer Architecture MIPS Instruction Formats July 2, 2014 Review New registers: $a0-$a3, $v0-$v1, $ra, $sp New instructions: slt, la, li, jal, jr Saved registers: $s0-$s7, $sp, $ra Volatile registers: $t0-$t9, $v0-$v1, $a0-$a3

More information

5/17/2012. Recap from Last Time. CSE 2021: Computer Organization. The RISC Philosophy. Levels of Programming. Stored Program Computers

5/17/2012. Recap from Last Time. CSE 2021: Computer Organization. The RISC Philosophy. Levels of Programming. Stored Program Computers CSE 2021: Computer Organization Recap from Last Time load from disk High-Level Program Lecture-2 Code Translation-1 Registers, Arithmetic, logical, jump, and branch instructions MIPS to machine language

More information

Topic Notes: MIPS Instruction Set Architecture

Topic Notes: MIPS Instruction Set Architecture Computer Science 220 Assembly Language & Comp. Architecture Siena College Fall 2011 Topic Notes: MIPS Instruction Set Architecture vonneumann Architecture Modern computers use the vonneumann architecture.

More information

Recap from Last Time. CSE 2021: Computer Organization. Levels of Programming. The RISC Philosophy 5/19/2011

Recap from Last Time. CSE 2021: Computer Organization. Levels of Programming. The RISC Philosophy 5/19/2011 CSE 2021: Computer Organization Recap from Last Time load from disk High-Level Program Lecture-3 Code Translation-1 Registers, Arithmetic, logical, jump, and branch instructions MIPS to machine language

More information

University of California, Berkeley College of Engineering

University of California, Berkeley College of Engineering University of California, Berkeley College of Engineering Department of Electrical Engineering and Computer Sciences Fall 2015 Instructors: Vladimir Stojanovic, John Wawrzynek 2015-11-10 L J After the

More information

CS 351 Exam 2, Fall 2012

CS 351 Exam 2, Fall 2012 CS 351 Exam 2, Fall 2012 Your name: Rules You may use one handwritten 8.5 x 11 cheat sheet (front and back). This is the only resource you may consult during this exam. Include explanations and comments

More information

Systems Architecture

Systems Architecture Systems Architecture Lecture 15: A Simple Implementation of MIPS Jeremy R. Johnson Anatole D. Ruslanov William M. Mongan Some or all figures from Computer Organization and Design: The Hardware/Software

More information

Final Project: MIPS-like Microprocessor

Final Project: MIPS-like Microprocessor Final Project: MIPS-like Microprocessor Objective: The objective of this project is to design, simulate, and implement a simple 32-bit microprocessor with an instruction set that is similar to a MIPS.

More information

Register Transfer Level (RTL) Design

Register Transfer Level (RTL) Design CSE4: Components and Design Techniques for Digital Systems Register Transfer Level (RTL) Design Instructor: Mohsen Imani Slides from Tajana Simunic Rosing CAPE CAPEs are out!!! https://cape.ucsd.edu/students/

More information

Computer Hardware Engineering

Computer Hardware Engineering Computer Hardware Engineering IS2, spring 2 Lecture : LU and s ssociate Professor, KTH Royal itute of Technology ssistant Research Engineer, University of California, Berkeley Revision v., June 7, 2: Minor

More information

CS 2506 Computer Organization II Test 1. Do not start the test until instructed to do so! printed

CS 2506 Computer Organization II Test 1. Do not start the test until instructed to do so! printed Instructions: Print your name in the space provided below. This examination is closed book and closed notes, aside from the permitted one-page formula sheet. No calculators or other computing devices may

More information

ICS DEPARTMENT ICS 233 COMPUTER ARCHITECTURE & ASSEMBLY LANGUAGE. Midterm Exam. First Semester (141) Time: 1:00-3:30 PM. Student Name : _KEY

ICS DEPARTMENT ICS 233 COMPUTER ARCHITECTURE & ASSEMBLY LANGUAGE. Midterm Exam. First Semester (141) Time: 1:00-3:30 PM. Student Name : _KEY Page 1 of 14 Nov. 22, 2014 ICS DEPARTMENT ICS 233 COMPUTER ARCHITECTURE & ASSEMBLY LANGUAGE Midterm Exam First Semester (141) Time: 1:00-3:30 PM Student Name : _KEY Student ID. : Question Max Points Score

More information

Guerrilla Session 3: MIPS CPU

Guerrilla Session 3: MIPS CPU CS61C Summer 2015 Guerrilla Session 3: MIPS CPU Problem 1: swai (Sp04 Final): We want to implement a new I- type instruction swai (store word then auto- increment). The operation performs the regular sw

More information

The Processor (1) Jinkyu Jeong Computer Systems Laboratory Sungkyunkwan University

The Processor (1) Jinkyu Jeong Computer Systems Laboratory Sungkyunkwan University The Processor (1) Jinkyu Jeong (jinkyu@skku.edu) Computer Systems Laboratory Sungkyunkwan University http://csl.skku.edu EEE3050: Theory on Computer Architectures, Spring 2017, Jinkyu Jeong (jinkyu@skku.edu)

More information

The Processor: Datapath & Control

The Processor: Datapath & Control Orange Coast College Business Division Computer Science Department CS 116- Computer Architecture The Processor: Datapath & Control Processor Design Step 3 Assemble Datapath Meeting Requirements Build the

More information

MIPS Instruction Set

MIPS Instruction Set MIPS Instruction Set Prof. James L. Frankel Harvard University Version of 7:12 PM 3-Apr-2018 Copyright 2018, 2017, 2016, 201 James L. Frankel. All rights reserved. CPU Overview CPU is an acronym for Central

More information

Processor design - MIPS

Processor design - MIPS EASY Processor design - MIPS Q.1 What happens when a register is loaded? 1. The bits of the register are set to all ones. 2. The bit pattern in the register is copied to a location in memory. 3. A bit

More information

Laboratory 5 Processor Datapath

Laboratory 5 Processor Datapath Laboratory 5 Processor Datapath Description of HW Instruction Set Architecture 16 bit data bus 8 bit address bus Starting address of every program = 0 (PC initialized to 0 by a reset to begin execution)

More information

CS 110 Computer Architecture MIPS Instruction Formats

CS 110 Computer Architecture MIPS Instruction Formats CS 110 Computer Architecture MIPS Instruction Formats Instructor: Sören Schwertfeger http://shtech.org/courses/ca/ School of Information Science and Technology SIST ShanghaiTech University Slides based

More information

Chapter 2A Instructions: Language of the Computer

Chapter 2A Instructions: Language of the Computer Chapter 2A Instructions: Language of the Computer Copyright 2009 Elsevier, Inc. All rights reserved. Instruction Set The repertoire of instructions of a computer Different computers have different instruction

More information

CSE 2021 COMPUTER ORGANIZATION

CSE 2021 COMPUTER ORGANIZATION CSE 22 COMPUTER ORGANIZATION HUGH CHESSER CHESSER HUGH CSEB 2U 2U CSEB Agenda Topics:. Sample Exam/Quiz Q - Review 2. Multiple cycle implementation Patterson: Section 4.5 Reminder: Quiz #2 Next Wednesday

More information

Lectures 3-4: MIPS instructions

Lectures 3-4: MIPS instructions Lectures 3-4: MIPS instructions Motivation Learn how a processor s native language looks like Discover the most important software-hardware interface MIPS Microprocessor without Interlocked Pipeline Stages

More information