Problem Points Your Points Total 80

Similar documents
Department of Computer and Mathematical Sciences. Lab 4: Introduction to MARIE

Computer Organization II CMSC 3833 Lecture 33

Notes: The Marie Simulator

Chapter 4. MARIE: An Introduction to a Simple Computer. Chapter 4 Objectives. 4.1 Introduction. 4.2 CPU Basics

Computer Systems and Networks. ECPE 170 Jeff Shafer University of the Pacific. Introduc>on to MARIE

CC312: Computer Organization

CSE100 Lecture03 Machines, Instructions, and Programs Introduction to Computer Systems

The MARIE Architecture

Chapter 4. MARIE: An Introduction to a Simple Computer

CMSC 3833 Lecture 37

Chapter 4. Chapter 4 Objectives. MARIE: An Introduction to a Simple Computer

CDA 3103 Computer Organization Exam 1 (Sep. 22th, 2014)

CDA 3103 Computer Organization Homework #7 Solution Set

MARIE: An Introduction to a Simple Computer

MARIE: An Introduction to a Simple Computer

Chapter 4. Chapter 4 Objectives

CS311 Lecture: The Architecture of a Simple Computer

Computer Architecture. CSE 1019Y Week 16. Introduc>on to MARIE

2.2 THE MARIE Instruction Set Architecture

Computer Systems and Networks. ECPE 170 Jeff Shafer University of the Pacific. MARIE Simulator

CHAPTER 4 MARIE: An Introduction to a Simple Computer

MARIE: An Introduction to a Simple Computer

a number of pencil-and-paper(-and-calculator) questions two Intel assembly programming questions

Total: EEL 3701 Digital Logic & Computer Systems Final Exam Fall Semester 2007 COVER SHEET: Re-Grade Information: 1 (10) 2 (10) 3 (10) 4 (14) 5 (14)

Arab Open University. Computer Organization and Architecture - T103

Computer Systems and Networks. ECPE 170 Jeff Shafer University of the Pacific. Exam 1 Review

CS 151 Midterm. (Last Name) (First Name)

Computer architecture Assignment 3

CS303 LOGIC DESIGN FINAL EXAM

CS/ECE 252: INTRODUCTION TO COMPUTER ENGINEERING UNIVERSITY OF WISCONSIN MADISON

Final Exam Solution Sunday, December 15, 10:05-12:05 PM

Good Evening! Welcome!

CS 151 Final. (Last Name) (First Name)

Final Exam Review. b) Using only algebra, prove or disprove the following:

EPC6055 Digital Integrated Circuits EXAM 1 Fall Semester 2013

Sample Exam I PAC II ANSWERS

CSCI 2121 Computer Organization and Assembly Language PRACTICE QUESTION BANK

SIR C.R.REDDY COLLEGE OF ENGINEERING, ELURU DEPARTMENT OF INFORMATION TECHNOLOGY LESSON PLAN

ECE 331: N0. Professor Andrew Mason Michigan State University. Opening Remarks

SCRAM Introduction. Philipp Koehn. 19 February 2018

University of Florida EEL 4744 Fall 1998 Dr. Eric M. Schwartz

DC57 COMPUTER ORGANIZATION JUNE 2013

Midterm Examination # 2 Wednesday, March 18, Duration of examination: 75 minutes

Chapter 4. MARIE: An Introduction to a Simple Computer 4.8 MARIE 4.8 MARIE A Discussion on Decoding

Engineering 100 Midterm Exam Technical Part Fall 2010

Systems Programming. Lecture 2 Review of Computer Architecture I

MCQ's on Unit-3 Control Unit

Computer Organization

Sunday, April 25, 2010

CS 151 Quiz 4. Instructions: Student ID. (Last Name) (First Name) Signature

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

The Memory Component

CDS130 Mid-term exam: Sample

Code No: R Set No. 1

Register Transfer and Micro-operations

Grading: 3 pts each part. If answer is correct but uses more instructions, 1 pt off. Wrong answer 3pts off.

CS 151 Midterm. Instructions: Student ID. (Last Name) (First Name) Signature

COMPUTER ARCHITECTURE AND DIGITAL DESIGN

CMPUT 101 with Solutions Quiz 2 (50 minutes) November 16, 2000

Question Total Possible Test Score Total 100

1. (11 pts) For each question, state which answer is the most apropriate. First one is done for you.

Signature: 1. (10 points) Basic Microcontroller Concepts

QUESTION BANK FOR TEST

CPSC 3300 Spring 2016 Final Exam Version A No Calculators

Unit II Basic Computer Organization

15110 PRINCIPLES OF COMPUTING SAMPLE EXAM 2

Memory System Design. Outline

CHAPTER 4: Register Transfer Language and Microoperations

SIDDHARTH GROUP OF INSTITUTIONS :: PUTTUR Siddharth Nagar, Narayanavanam Road QUESTION BANK (DESCRIPTIVE) UNIT-I

May the Schwartz be with you!

EECS 373 Practice Midterm / Homework #3 Fall 2014

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

ECE 313 Computer Organization EXAM 2 November 11, 2000

Faculty of Engineering Systems & Biomedical Dept. First Year Cairo University Sheet 6 Computer I

Computer Organization (Autonomous)

ECE 375 Computer Organization and Assembly Language Programming Winter 2018 Solution Set #2

Machine Language and Assembly Language

REGISTER TRANSFER AND MICROOPERATIONS

CSC-105 Exam #1 October 10, 2013

EECS 270 Midterm Exam

Computer Organization EE 3755 Midterm Examination

Introduction to Computer Systems COMP-273 Assignment #1 Due: September 24, 2009 on Web CT at 23:55

CPU. Fall 2003 CSE 207 Digital Design Project #4 R0 R1 R2 R3 R4 R5 R6 R7 PC STATUS IR. Control Logic RAM MAR MDR. Internal Processor Bus

Exam Computer Systems/Computer Architecture and Organisation Bachelor 2 nd year, EE and CS, EWI

Computer Systems and Networks. ECPE 170 Jeff Shafer University of the Pacific. Exam Review

Henry Lin, Department of Electrical and Computer Engineering, California State University, Bakersfield Lecture 7 (Digital Logic) July 24 th, 2012

Introduction to Computer Science. Homework 1

There are four registers involved in the fetch cycle: MAR, MBR, PC, and IR.

Running Applications

CONCORDIA UNIVERSITY Department of Computer Science and Software Engineering COMP 228/4 Section PP Midterm Exam

2. (a) Compare the characteristics of a floppy disk and a hard disk. (b) Discuss in detail memory interleaving. [8+7]

Philadelphia University Department of Computer Science. By Dareen Hamoudeh

CMSC 2833 Lecture Memory Organization and Addressing

We r e going to play Final (exam) Jeopardy! "Answers:" "Questions:" - 1 -

ECE 2030D Computer Engineering Spring problems, 5 pages Exam Two 8 March 2012

A3 Computer Architecture

REGISTER TRANSFER AND MICROOPERATIONS

A 32-bit Processor: Sequencing and Output Logic

Code No: 07A3EC03 Set No. 1

ECE 2020B Fundamentals of Digital Design Spring problems, 6 pages Exam Two 26 February 2014

Transcription:

Grades: 20% of the final grade. CDA 3103 Computer Organization Exam 2 Solution Set Name: USF ID: Problem Points Your Points 1 10 2 10 3 20 4 10 5 15 6 15 Total 80 Exam Rules Close book, notes and HW. Only the exam paper is allowed. All electronics must be turned o. Show all work to get partial credits except yes/no problems. Use the back of the exam paper as necessary. But indicate clearly which problems that the answers on the back correspond to. Make sure that your writing is legible; otherwise you grades may be adversely a ected. Additional information that might be necessary is shown at the end of the exam paper. 1

Problem 1 (10 pts) Consider the following logic circuit. 1. Find the corresponding Boolean expression in a simplified form. F = (xy + z 0 )(y + z) 0 = (xy + z 0 )y 0 z 0 = y 0 z 0 2. Implement the simplified Boolean expression from the previous step using 2-inputs NOR gates only. Show the circuit diagram. Since y 0 z 0 =(y + z) 0, the circuit consists of a single 2-input NOR gate with inputs y and z and the output F. Problem 2 (10 pts) Consider the following sequential circuit with the characteristic table for JK flip flop is shown on the right. X Y Clock J K Q(t +1) 0 0 Q(t) 0 1 0 1 0 1 1 1 Q 0 (t) The following table shows a sequence of inputs for the above sequential circuit in each clock cycle. Complete the table. Q =0intheinitialstate. X Y Q(t) Q(t +1) 1 1 0 0 0 1 0 1 0 0 1 1 1 1 1 0 0 0 0 1 2

Problem 3 (20 pts) Suppose that a 4K 32 memory is given. 1. What is the word size of this memory? 32 bits 2. If this memory is word-addressable, how many address bits are required? What is the highest address? There are 4K words, so the total number of address lines is 12 bits. The highest address is 2 12 1. 3. If the memory is byte-addressable, how many address bits are required? what is the highest address? There are 4K 4 bytes, so the total number of address lines is 14 bits. The highest address is 2 14 1. 4. Suppose this memory is word-addressable, and it is constructed by connecting 512 32 RAM chips. Also suppose that this memory organization uses the high-order interleaving, which bits, among all address bits, are used for chip selection? Which bits, among all address bits, are used for o set on a chip? 8512 32 RAM chips are needed to build the 4K 32 memory. 3 address lines are used to select chips. Since each RAM chip has 512 addressable words, 9 address lines are needed for chip o set (selecting a word from a RAM chip. In case that the memory is organized using high-order interleaving, address bits 11 9areusedaschipselect,andaddressbits8 0areusedaschipo set. Problem 4 (10 pts) Consider the following instruction that appears at memory address 102 in an assembly program. After this instruction is executed, Hex Address Instruction... 102 JnS 10C... (a) What is the value of PC? (b) What is stored at memory location 10C? 10D 103 3

Problem 5 (15 pts) Execute the following program, and fill in the blanks for registers PC and AC, and the memory location M[A] andm[one] aftereachinstructionisexecuted. Their initial values are filled in the first row of the table. Address Label Instruction PC AC M[A] M[One] 100 23 1 100 Load A 101 23 23 1 101 Add One 102 24 23 1 102 Jump S1 106 24 23 1 103 S2, Add One 107 47 23 1 104 Store A 103 47 23 1 105 Halt 104 48 23 1 106 S1, Add A 105 48 48 1 107 Jump S2 106 48 48 1 108 A, DEC 23 108 One, DEC 1 Problem 6 (10 pts) Translate the following high-level program to the MARIE assembly program. Assume that X, Y, and Z are memory locations where some data are stored. Also assume that the first instruction of your assembly program is stored at memory address 100. if X <= Y then Z = X - Y; else Z = Z+1; endif; Load X Subt Y Skipcond 400 Jump Else Jump End Else, Load Z Add One End, Store Z Halt One, DEC 1 4

MARIE s Instruction Set Opcode Binary Hexdecimal Instruction RTN 00010 0 JnS X MBR PC MAR X M[MAR] MBR MBR X AC 1 AC AC + MBR PC AC 0001 1 Load X MAR X AC MBR 0010 2 Store X MAR X MBR AC M[MAR] MBR 0011 3 Add X MAR X AC AC + MBR 0100 4 Subt X MAR X AC AC MBR 0101 5 Input AC InReg 0110 6 Output OutReg AC 0111 7 Halt 1000 8 Skipcond X if IR[11 10] =00then if AC < 0thenPC PC +1 if IR[11 10] =01then if AC =0thenPC PC +1 if IR[11 10] =10then if AC > 0thenPC PC +1 1001 9 Jump X PC IR[11 0] 1010 A Clear AC 0 1011 B AddI X MAR X MAR MBR AC AC + MBR To be continued on the next page 5

MARIE s Instruction Set (continued) Opcode Binary Hexdecimal Instruction RTN 1100 C JumpI X MAR X PC MBR 1101 D LoadI X MAR X MAR MBR AC MBR 1110 E StoreI X MAR X MAR MBR MBR AC M[MAR] MBR 6

This page is left blank intentionally. You can use it as worksheet. 7