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

Similar documents
Solutions. ICS 151 Final. Q1 Q2 Q3 Q4 Total Credit Score. Instructions: Student ID. (Last Name) (First Name) Signature

Chapter 3 Combinational Logic Design

Understanding Engineers #2

Exam #2 EE 209: Fall 2017

Learning Outcomes. Spiral 2 3. DeMorgan Equivalents NEGATIVE (ACTIVE LO) LOGIC. Negative Logic One hot State Assignment System Design Examples

Digital Logic and Design (Course Code: EE222) Lecture 14: Combinational Contd.. Decoders/Encoders

Adder Comparator 7 segment display Decoder for 7 segment display D flip flop Analysis of sequential circuits. Sequence detector

Chapter 9. sequential logic technologies

Chapter 9. sequential logic technologies

Controller Implementation--Part I. Cascading Edge-triggered Flip-Flops

Lab #10: Finite State Machine Design

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

5. (Adapted from 3.25)

Chapter 3 Digital Logic Structures

Lecture 3: Logic circuit. Combinational circuit and sequential circuit

Encoders. Lecture 23 5

Java Bread Board Introductory Digital Electronics Exercise 2, Page 1

Logic Circuit Design

Digital Logic Design ELCT 201

Written exam IE1204/5 Digital Design Friday 13/

CS 61C: Great Ideas in Computer Architecture Finite State Machines, Functional Units

Code No: R Set No. 1

ELECTRICAL AND COMPUTER ENGINEERING DEPARTMENT, OAKLAND UNIVERSITY ECE-2700:

(a) (b) (c) (d) (e) (a) (b) (c) (d) (e)

EECS150 - Digital Design Lecture 28 Course Wrap Up. Recap 1

Chapter 3 Digital Logic Structures

Gomoku Player Design

CHW 261: Logic Design

Digital Electronics. Functions of Combinational Logic

Dr. Nicola Nicolici COE/EE2DI4 Midterm Test #1 Oct 18, 2006

MSI Design Examples. Designing a circuit that adds three 4-bit numbers

Datapath Components. Multipliers, Counters, Timers, Register Files

Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Computing Layers

LOGIC DIAGRAM: HALF ADDER TRUTH TABLE: A B CARRY SUM. 2012/ODD/III/ECE/DE/LM Page No. 1

Combinational Logic Circuits. Combinational Logic

Project Part 1 A. The task was to design a 4 to 1 multiplexer that uses 8 bit buses on the inputs with an output of a single 8 bit bus.

First Name: Last Name: Lab Cover Page. Teaching Assistant to whom you are submitting

ELECTRICAL AND COMPUTER ENGINEERING DEPARTMENT, OAKLAND UNIVERSITY ECE-378:

First Optional Homework Problem Set for Engineering 1630, Fall 2014

COMPUTER ORGANIZATION & ARCHITECTURE DIGITAL LOGIC CSCD211- DEPARTMENT OF COMPUTER SCIENCE, UNIVERSITY OF GHANA

A-PDF Split DEMO : Purchase from to remove the watermark 114 FSM

ELECTRICAL AND COMPUTER ENGINEERING DEPARTMENT, OAKLAND UNIVERSITY ECE-2700:

Computer Architecture and Organization:

CHAPTER 16 SEQUENTIAL CIRCUIT DESIGN. Click the mouse to move to the next page. Use the ESC key to exit this chapter.

Digital Electronics 8. Multiplexer & Demultiplexer

Laboratory Manual CS (P) Digital Systems Lab

Number system: the system used to count discrete units is called number. Decimal system: the number system that contains 10 distinguished

IES Digital Mock Test

Combinational Logic. Rab Nawaz Khan Jadoon DCS. Lecturer COMSATS Lahore Pakistan. Department of Computer Science

ELECTRICAL AND COMPUTER ENGINEERING DEPARTMENT, OAKLAND UNIVERSITY ECE-2700:

A Fast-Transient Wide-Voltage-Range Digital- Controlled Buck Converter with Cycle- Controlled DPWM

2 Building Blocks. There is often the need to compare two binary values.

Combinational Circuits DC-IV (Part I) Notes

EECS 150 Homework 4 Solutions Fall 2008

Department of Electrical and Electronics Engineering Logic Circuits Laboratory EXPERIMENT-5 COMBINATIONAL LOGIC CIRCUITS

CS302 - Digital Logic Design Glossary By

Digital Applications (CETT 1415) Credit: 4 semester credit hours (3 hours lecture, 4 hours lab) Prerequisite: CETT 1403 & CETT 1405

Classification of Digital Circuits

Course Outline Cover Page

GATE Online Free Material

LOGIC GATES AND LOGIC CIRCUITS A logic gate is an elementary building block of a Digital Circuit. Most logic gates have two inputs and one output.

DIGITAL ELECTRONICS QUESTION BANK

7.1. Unit 7. Fundamental Digital Building Blocks: Decoders & Multiplexers

Computer Architecture and Organization: L08: Design Control Lines

In this lecture: Lecture 8: ROM & Programmable Logic Devices


Serial Addition. Lecture 29 1

Experiment # 4. Binary Addition & Subtraction. Eng. Waleed Y. Mousa

This exam contains 9 problems. CHECK THAT YOU HAVE A COMPLETE EXAM.

THE INTERNATIONAL JOURNAL OF SCIENCE & TECHNOLEDGE

Digital Applications (CETT 1415) Credit: 4 semester credit hours (3 hours lecture, 4 hours lab) Prerequisite: CETT 1403 & CETT 1405

Fan in: The number of inputs of a logic gate can handle.

Combinatorial Logic Design Multiplexers and ALUs CS 64: Computer Organization and Design Logic Lecture #14

ENGR-2300 Electronic Instrumentation Quiz 3 Spring Name: Solution Please write you name on each page. Section: 1 or 2

UNIVERSITI MALAYSIA PERLIS

Chapter 5 Sequential Logic Circuits Part II Hiroaki Kobayashi 6/30/2008

Topic Notes: Digital Logic

Unit 3. Logic Design

(CSC-3501) Lecture 6 (31 Jan 2008) Seung-Jong Park (Jay) CSC S.J. Park. Announcement

Chapter 5 Sequential Logic Circuits Part II Hiroaki Kobayashi 7/11/2011

Module 4: Design and Analysis of Combinational Circuits 1. Module-4. Design and Analysis of Combinational Circuits

LIST OF EXPERIMENTS. KCTCET/ /Odd/3rd/ETE/CSE/LM

6.111 Lecture # 19. Controlling Position. Some General Features of Servos: Servomechanisms are of this form:

ECE COMBINATIONAL BUILDING BLOCKS - INVEST 14 DATA TRANSFER

PHYSICS 536 Experiment 14: Basic Logic Circuits

Digital Electronic Concepts

Computer Systems and Networks. ECPE 170 Jeff Shafer University of the Pacific. Digital Logic

Combinational Logic. Combinational Logic Design Process, Three State Buffers, Decoders, Multiplexers, Encoders, Demultiplexers, Other Considerations

Implementing Logic with the Embedded Array

COMBINATIONAL CIRCUIT

2014 Paper E2.1: Digital Electronics II

Design of Parallel Prefix Tree Based High Speed Scalable CMOS Comparator for converters

6.1 In this section, you will design (but NOT build) a circuit with 4 inputs,

Schmitt Trigger Inputs, Decoders

DIGITAL ELECTRONICS. Methods & diagrams : 1 Graph plotting : - Tables & analysis : - Questions & discussion : 6 Performance : 3

Digital Fundamentals

Time: 3 hours Max. Marks: 70 Answer any FIVE questions All questions carry equal marks

Lecture 1. Tinoosh Mohsenin

Chapter # 1: Introduction

DIGITAL TO ANALOG CONVERTERS. 1. Digital to Analog Converter using Binary- Weighted Resistors

Transcription:

ICS 151 Final Name Student ID Signature :, (Last Name) (First Name) : : Instructions: 1. Please verify that your paper contains 19 pages including this cover and 3 blank pages. 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 quiz are 110 points. 5. To receive the whole credit you must show your work clearly. 6. Calculators are NOT allowed. Q1 Q2 Q3 Q4 Total Credit 40 30 10 30 110 Score ICS 151 Digital Logic Design, Spring Quarter 2006, Final Page 1

Q1: Combinational Logic Design & Optimization [40 points] For function F(x, y, z) = x y z + x yz + x yz + xyz + xy z We want to design a circuit to implement function F(x,y,z) using three different methods. First design is called design MUX. Function F(x,y,z) is implemented using Multiplexer. Second design is design DEC. F(x,y,z) is designed using Decoder. Then we want to optimize the function F(x, y, z), called design OPT, by two-level logic optimization using K-map and Implicants. Finally, we want to compare three designs (design MUX, design DEC, and design OPT) in terms of area (number of 2-input gates) and critical path delay (number of 2-input gate levels). For computation of area and delay, refer to the following table: Component Area (number of 2-input gates) Delay (number of 2-input gate levels) 2-to-1 Mux 5 2 4-to-1 Mux 11 4 3-to-8 Decoder 16 3 N-input gate (N>2) (N-1) (N-1) [Note 1: Assume that the area and delay of inverter is negligible and is not considered. Also any link overhead is ignored.] [Note 2: You are NOT supposed to minimize the function F for design MUX and design DEC] ICS 151 Digital Logic Design, Spring Quarter 2006, Final Page 2

(a) Create the truth table ICS 151 Digital Logic Design, Spring Quarter 2006, Final Page 3

(b) [design MUX] Implement F by means of only 4-to-1 Mux and 2-to-1 Mux. [Hint: You may use multiple Muxes in a hierarchical method] ICS 151 Digital Logic Design, Spring Quarter 2006, Final Page 4

(c) [design DEC] Implement F by means of a 3-to-8 Decoder ICS 151 Digital Logic Design, Spring Quarter 2006, Final Page 5

(d) Draw the K-map for this function F (e) Show all the Prime Implicants and Essential Prime Implicants from (d) (f) [design OPT] Simplify the function F(x, y, z) ICS 151 Digital Logic Design, Spring Quarter 2006, Final Page 6

(g) Calculate the area (number of 2-input gates) and critical path delay (number of 2-input gate levels) for each design (design MUX, design DEC, and design OPT), and place each design with correct values of area and delay at the following graph (10 points) Which design gives the best delay? Which design gives the best area? Area (number of 2-input gates) Delay (number of 2-input gate levels) ICS 151 Digital Logic Design, Spring Quarter 2006, Final Page 7

ICS 151 Digital Logic Design, Spring Quarter 2006, Final Page 8

Q2: FSM Design Moore and Mealy Machines [30 points] We want to design a non-resetting sequence detector using a finite state machine with one input X and one output Y. The FSM asserts its output Y when it recognizes the following input bit sequence: "1101". The machine will keep checking for the proper bit sequence and does not reset to the initial state after it has recognized the string. [Note: As an example the input string X= "..1101101.." will cause the output to go high twice: Y = "..0001001.."] (a) Capture the Moore FSM. (b) Create the architecture (3 points) ICS 151 Digital Logic Design, Spring Quarter 2006, Final Page 9

(c) Encode the states (use a simple binary encoding) (2 points) (d) Create the state table ICS 151 Digital Logic Design, Spring Quarter 2006, Final Page 10

(e) Implement the combinational logic (NO NEED to draw the gates, just write the equations) (f) Convert the Moore FSM into the Mealy FSM (10 points) ICS 151 Digital Logic Design, Spring Quarter 2006, Final Page 11

ICS 151 Digital Logic Design, Spring Quarter 2006, Final Page 12

Q3: State Minimization [10 points] Reduce the number of states in the following state table using the implication table method and tabulate the reduced state table. [Note: this state table is for a Mealy machine.] Next State Output Present state X=0 X=1 X=0 X=1 A F E 0 0 B C D 0 0 C F B 0 0 D A G 0 1 E C D 0 0 F F B 1 1 G G H 0 1 H A G 0 1 ICS 151 Digital Logic Design, Spring Quarter 2006, Final Page 13

ICS 151 Digital Logic Design, Spring Quarter 2006, Final Page 14

Q4: RTL Design [30 points] Using RTL design method, we want to design a 4-bit up/down counter as shown in the following block diagram, which can count either up or down. It requires an input signal dir to indicate the count direction, an input signal ld to load the input data from I [i3..i0], and an input signal clr to reset the counter. We ll let dir=0 mean to count up and dir=1 mean to count down. If ld = 1, it loads from input data I [i3..i0] regardless of the value of dir. When clr = 1, it clears the output Q [q3..q0] regardless of the value of dir or ld. I [i3..i0] dir 4 ld clr 4-bit up/down counter 4 Q [q3..q0] (a) Capture a high-level state machine (10 points) ICS 151 Digital Logic Design, Spring Quarter 2006, Final Page 15

(b) Create the datapath using the following components 4-bit Register 2 to1 Mux 4-bit Adder (10 points) ICS 151 Digital Logic Design, Spring Quarter 2006, Final Page 16

(c) Connect the datapath to the controller ICS 151 Digital Logic Design, Spring Quarter 2006, Final Page 17

(d) Derive the controller s FSM (Moore machine) ICS 151 Digital Logic Design, Spring Quarter 2006, Final Page 18

ICS 151 Digital Logic Design, Spring Quarter 2006, Final Page 19