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

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

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

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

CS 151 Final. Q1 Q2 Q3 Q4 Q5 Total Credit Score. Instructions: Student ID. (Last Name) (First Name) Signature

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

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

ECE 341 Midterm Exam

REGISTER TRANSFER LANGUAGE

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

ECE 341 Midterm Exam

Two hours - online EXAM PAPER MUST NOT BE REMOVED FROM THE EXAM ROOM UNIVERSITY OF MANCHESTER SCHOOL OF COMPUTER SCIENCE

BUILDING BLOCKS OF A BASIC MICROPROCESSOR. Part 1 PowerPoint Format of Lecture 3 of Book

CS303 LOGIC DESIGN FINAL EXAM

The Need of Datapath or Register Transfer Logic. Number 1 Number 2 Number 3 Number 4. Numbers from 1 to million. Register

ECE 2030B 1:00pm Computer Engineering Spring problems, 5 pages Exam Two 10 March 2010

Let s put together a Manual Processor

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

University of Toronto Mississauga. Flip to the back cover and write down your name and student number.

EE 109L Review. Name: Solutions

Digital Circuit Design and Language. Datapath Design. Chang, Ik Joon Kyunghee University

EPC6055 Digital Integrated Circuits EXAM 1 Fall Semester 2013

CS 2630 Computer Organization. Meeting 13: Faster arithmetic and more operations Brandon Myers University of Iowa

TSEA 26 exam page 1 of Examination. Design of Embedded DSP Processors, TSEA26 Date 8-12, G34, G32, FOI hus G

UNIT-III REGISTER TRANSFER LANGUAGE AND DESIGN OF CONTROL UNIT

UNIVERSITY OF TORONTO FACULTY OF APPLIED SCIENCE AN:p ENGINEERING. ECE241F - Digital Syst~ms Final Examination

Register Transfer Level in Verilog: Part I

ELCT 501: Digital System Design

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Electrical Engineering and Computer Sciences

11/22/1999 7pm - 9pm. Name: Login Name: Preceptor Name: Precept Number:

Student Number: UTORid: Question 0. [1 mark] Read and follow all instructions on this page, and fill in all fields.

For Example: P: LOAD 5 R0. The command given here is used to load a data 5 to the register R0.

Digital Fundamentals. Lab 6 2 s Complement / Digital Calculator

EKT 422/4 COMPUTER ARCHITECTURE. MINI PROJECT : Design of an Arithmetic Logic Unit

Chapter 2 Basic Logic Circuits and VHDL Description

Format. 10 multiple choice 8 points each. 1 short answer 20 points. Same basic principals as the midterm

Arithmetic Logic Unit. Digital Computer Design

Register Transfer and Micro-operations

University of Toronto Faculty of Applied Science and Engineering Edward S. Rogers Sr. Department of Electrical and Computer Engineering

One and a half hours. Section A is COMPULSORY UNIVERSITY OF MANCHESTER SCHOOL OF COMPUTER SCIENCE

EXPERIMENT #8: BINARY ARITHMETIC OPERATIONS

Problem Points Your Points Total 80

IA Digital Electronics - Supervision I

CS2100 COMPUTER ORGANISATION

Department of Electrical and Computer Engineering University of Wisconsin - Madison. ECE/CS 352 Digital System Fundamentals.

Binary Adders. Ripple-Carry Adder

Code No: R Set No. 1

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

EE 109L Final Review

problem maximum score 1 10pts 2 8pts 3 10pts 4 12pts 5 7pts 6 7pts 7 7pts 8 17pts 9 22pts total 100pts

Cpr E 281 FINAL PROJECT ELECTRICAL AND COMPUTER ENGINEERING IOWA STATE UNIVERSITY. FINAL Project. Objectives. Project Selection

CSE 140L Final Exam. Prof. Tajana Simunic Rosing. Spring 2008

ENEL 353: Digital Circuits Midterm Examination

Question Total Possible Test Score Total 100

Introduction to Digital Logic Missouri S&T University CPE 2210 Multipliers/Dividers

Solution printed. Do not start the test until instructed to do so! CS 2504 Intro Computer Organization Test 2 Spring 2006.

END-TERM EXAMINATION

11.1. Unit 11. Adders & Arithmetic Circuits

Contents. Chapter 9 Datapaths Page 1 of 28

Design of Embedded DSP Processors

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

UNIT - V MEMORY P.VIDYA SAGAR ( ASSOCIATE PROFESSOR) Department of Electronics and Communication Engineering, VBIT

Lab #12: ArithmeticLogic Unit

Real Digital Problem Set #6

EE 3170 Microcontroller Applications

REGISTER TRANSFER AND MICROOPERATIONS

University of California at Berkeley College of Engineering Department of Electrical Engineering and Computer Sciences. Spring 2010 May 10, 2010

problem maximum score 1 8pts 2 6pts 3 10pts 4 15pts 5 12pts 6 10pts 7 24pts 8 16pts 9 19pts Total 120pts

Philadelphia University Student Name: Student Number:

Midterm Project Design of 4 Bit ALU Fall 2001

CSE 140L Final Exam. Prof. Tajana Simunic Rosing. Spring 2008

ECE260: Fundamentals of Computer Engineering

The LC3's micro-coded controller ("useq") is nothing more than a finite-state machine (FSM). It has these inputs:

CSC-105 Exam #1 October 10, 2013

THE UNIVERSITY OF BRITISH COLUMBIA CPSC 121: MIDTERM 2 Group March 12, 2014

Lab 3: Standard Combinational Components

5 Arithmetic Logic Unit

EE6301 DIGITAL LOGIC CIRCUITS UNIT V VHDL PART A

Digital Design with FPGAs. By Neeraj Kulkarni

Finite State Machine with Datapath

Microcomputers. Outline. Number Systems and Digital Logic Review

The MIPS Processor Datapath

EECE 321: Computer Organization

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

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

Storage Elements & Sequential Circuits

Good Evening! Welcome!

Tailoring the 32-Bit ALU to MIPS

FPGA Design Challenge :Techkriti 14 Digital Design using Verilog Part 1

Week 6: Processor Components

8/27/2016. ECE 120: Introduction to Computing. Graphical Illustration of Modular Arithmetic. Representations Must be Unambiguous

ECE 595Z Digital Systems Design Automation

CS1800 Discrete Structures Final Version A

Lecture Topics. Announcements. Today: Integer Arithmetic (P&H ) Next: continued. Consulting hours. Introduction to Sim. Milestone #1 (due 1/26)

NAME: 1a. (10 pts.) Describe the characteristics of numbers for which this floating-point data type is well-suited. Give an example.

CS222: Processor Design

Midterm Exam ECE 448 Spring 2014 Monday, March 3 (15 points)

CHAPTER 4: Register Transfer Language and Microoperations

60-265: Winter ANSWERS Exercise 4 Combinational Circuit Design

(ii) Simplify and implement the following SOP function using NOR gates:

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

Transcription:

CS 151 Midterm Name Student ID Signature :, (Last Name) (First Name) : : Instructions: 1. Please verify that your paper contains 13 pages including this cover. 2. Write down your Student-Id on the top of each page of this quiz. 3. This exam is closed book. No notes or other materials are permitted. 4. Total credits of this midterm are 80 points. 5. To receive credit you must show your work clearly. 6. Re-grade requests will not be entertained unless you write clearly. 7. Calculators are NOT allowed. 8. If necessary, state your assumptions clearly CS 151 Digital Logic Design, Spring Quarter 2008, Midterm Page 1

Q1: [Sequential Circuit Timing Analysis] [10 points] The circuit below shows a sequential circuit using D Flip Flops, and Multiplexers. Assuming that A 1, A 0, and S are the inputs of the circuit, and Q 1 is 0, Q 0 is 1 when time equals 0 (t0), show the timing diagram for Q 1 and Q 0. NOTE: You can assume that gate delay is negligible. CS 151 Digital Logic Design, Spring Quarter 2008, Midterm Page 2

Q2: [ALU] [20 points] We are going to design a 4-bit Arithmetic Unit (AU) with the following functional table: M1 M0 Function Name F(A,B) 0 0 if(a/4==0) add B to A; else subtract B from A if(a/4==0) S = A + B; else S = A - B 0 1 if(a<b) add A to B times 8; else add A to B divided 4 if(a<b) S = A + (B * 8); else S = A + (B / 4) 1 0 Increment A by 4 S = A + 4 1 1 Add 1 to A+B * 8 S = A + (B * 8) + 1 Both A and B are 4-bit binary unsigned numbers a3a2a1a0 and b3b2b1b0. M1, M0 are the control inputs to this AU. Although B is the only input register to the AL-Extender unit, if you need to, you can also connect register A to the AL-Extender. In this question you are required to design the logic inside AL-Extender using JUST Comparators, and Multiplexers if needed. Hint: Although the inputs and outputs are unsigned numbers, you can use 2 s complement arithmetic within the design. ALU a 3 a 2 a 1 a 0 b 3 b 2 b 1 b 0 M1 AL-Extender M0 IA IB Full Adder Cin IS s 3 s 2 s 1 s 0 CS 151 Digital Logic Design, Spring Quarter 2008, Midterm Page 3

<This page is intentionally left blank> CS 151 Digital Logic Design, Spring Quarter 2008, Midterm Page 4

<This page is intentionally left blank> CS 151 Digital Logic Design, Spring Quarter 2008, Midterm Page 5

Q3: [Counter Application] [15 points] Using only a 3-bit up binary counter, you are going to design a mod-8 specific sequence whose output (denoted by MOD8) is 1 when the equals 0, otherwise it outputs a 0. The sequence is defined below in Q 3a. any of the following components (Specify the bit widths, and name all inputs/outputs): 1) Adders 2) Shifters 3) Comparators 4) Multiplexers Make sure you answer both parts 3a, and 3b. 3a. Using the 3-bit up binary counter, create a counter that generates the following sequence [10 points]: 2 4 6 8 10 12 14 16 2 4.. CS 151 Digital Logic Design, Spring Quarter 2008, Midterm Page 6

<This page is intentionally left blank> CS 151 Digital Logic Design, Spring Quarter 2008, Midterm Page 7

3b. Using the counter designed in part 3a design a mod-8 counter whose output (denoted by MOD8) is 1 when the sequence value mod 8 equals 0, otherwise it outputs a 0. [5 points] CS 151 Digital Logic Design, Spring Quarter 2008, Midterm Page 8

Q4: [RTL design] [35 points] The following high-level state machine has the task of finding either the minimum or the maximum among an array of 128 elements depending on the mode selected (Mode = 0 = find the minimum, and Mode = 1 = find the maximum). A_Data is an 8-bit input, A_Address is an 8-bit output, and minmax_out is the final 8-bit (minimum or maximum) output value. Data and minmax are both 8-bit internal registers. All inputs/outputs are unsigned. The Start input drives the circuit to start the execution of the task. Use this state machine to answer the following questions: CS 151 Digital Logic Design, Spring Quarter 2008, Midterm Page 9

4a. Design the data-path for this system. [15 points] Please note that the initial value for the minmax register depends on the Mode, if the Mode = 0, minmax is initialized to 0, if the Mode = 1, minmax is initialized Hint: Your to minmax (255). register will have at most 2 inputs. You may use any of the following components: 1) Registers 2) Adders 3) Comparators 4) Multiplexers CS 151 Digital Logic Design, Spring Quarter 2008, Midterm Page 10

4b. Design the interface of the system and the interface between the controller and the datapath. [5 points] CS 151 Digital Logic Design, Spring Quarter 2008, Midterm Page 11

4c. Design the FSM of the controller. [15 points] HINT: There is no timing issue for this system so you do not have to consider timing issues in designing the controller s FSM. CS 151 Digital Logic Design, Spring Quarter 2008, Midterm Page 12

<This page is intentionally left blank> CS 151 Digital Logic Design, Spring Quarter 2008, Midterm Page 13