United States Naval Academy Electrical and Computer Engineering Department. EC262 Exam 1



Similar documents
exclusive-or and Binary Adder R eouven Elbaz reouven@uwaterloo.ca Office room: DC3576

1. True or False? A voltage level in the range 0 to 2 volts is interpreted as a binary 1.

Karnaugh Maps & Combinational Logic Design. ECE 152A Winter 2012

Gates, Circuits, and Boolean Algebra

Unit 3 Boolean Algebra (Continued)

CSE140: Midterm 1 Solution and Rubric

Chapter 2: Boolean Algebra and Logic Gates. Boolean Algebra

BOOLEAN ALGEBRA & LOGIC GATES

COMBINATIONAL CIRCUITS

Digital Logic Design. Basics Combinational Circuits Sequential Circuits. Pu-Jen Cheng

Binary Adders: Half Adders and Full Adders

CH3 Boolean Algebra (cont d)

Boolean Algebra Part 1

CSE140: Components and Design Techniques for Digital Systems

Logic in Computer Science: Logic Gates

Understanding Logic Design

A single register, called the accumulator, stores the. operand before the operation, and stores the result. Add y # add y from memory to the acc

Digital circuits make up all computers and computer systems. The operation of digital circuits is based on

Two-level logic using NAND gates

CSEE 3827: Fundamentals of Computer Systems. Standard Forms and Simplification with Karnaugh Maps

DEPARTMENT OF INFORMATION TECHNLOGY

CDA 3200 Digital Systems. Instructor: Dr. Janusz Zalewski Developed by: Dr. Dahai Guo Spring 2012

3.Basic Gate Combinations

Boolean Algebra (cont d) UNIT 3 BOOLEAN ALGEBRA (CONT D) Guidelines for Multiplying Out and Factoring. Objectives. Iris Hui-Ru Jiang Spring 2010

CSE140 Homework #7 - Solution

Elementary Logic Gates

The string of digits in the binary number system represents the quantity

Simplifying Logic Circuits with Karnaugh Maps

plc numbers Encoded values; BCD and ASCII Error detection; parity, gray code and checksums

ANALOG & DIGITAL ELECTRONICS

EE 261 Introduction to Logic Circuits. Module #2 Number Systems

Karnaugh Maps. Circuit-wise, this leads to a minimal two-level implementation

Design Example: Counters. Design Example: Counters. 3-Bit Binary Counter. 3-Bit Binary Counter. Other useful counters:

Combinational Logic Design

SOLUTIONS MANUAL DIGITAL DESIGN FOURTH EDITION M. MORRIS MANO California State University, Los Angeles MICHAEL D.

Counters and Decoders

2.0 Chapter Overview. 2.1 Boolean Algebra

CHAPTER 3 Boolean Algebra and Digital Logic

Introduction. The Quine-McCluskey Method Handout 5 January 21, CSEE E6861y Prof. Steven Nowick

Lecture 5: Gate Logic Logic Optimization

SECTION C [short essay] [Not to exceed 120 words, Answer any SIX questions. Each question carries FOUR marks] 6 x 4=24 marks

Boolean Algebra. Boolean Algebra. Boolean Algebra. Boolean Algebra

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

Read-only memory Implementing logic with ROM Programmable logic devices Implementing logic with PLDs Static hazards

FORDHAM UNIVERSITY CISC Dept. of Computer and Info. Science Spring, Lab 2. The Full-Adder

INTEGRATED CIRCUITS. For a complete data sheet, please also download:

Lecture 8: Synchronous Digital Systems

Digital Electronics Detailed Outline

Sistemas Digitais I LESI - 2º ano

Chapter 7 Memory and Programmable Logic

Figure 8-1 Four Possible Results of Adding Two Bits

Combinational circuits

Adder.PPT(10/1/2009) 5.1. Lecture 13. Adder Circuits

INTEGRATED CIRCUITS. For a complete data sheet, please also download:

ENGI 241 Experiment 5 Basic Logic Gates

Module 3: Floyd, Digital Fundamental

CS311 Lecture: Sequential Circuits

ETEC 2301 Programmable Logic Devices. Chapter 10 Counters. Shawnee State University Department of Industrial and Engineering Technologies

Digital Electronics Part I Combinational and Sequential Logic. Dr. I. J. Wassell

Lecture 12: More on Registers, Multiplexers, Decoders, Comparators and Wot- Nots

Chapter 4 Register Transfer and Microoperations. Section 4.1 Register Transfer Language

Latches, the D Flip-Flop & Counter Design. ECE 152A Winter 2012

ECE232: Hardware Organization and Design. Part 3: Verilog Tutorial. Basic Verilog

Logic Reference Guide

Digital Design. Assoc. Prof. Dr. Berna Örs Yalçın

Counters are sequential circuits which "count" through a specific state sequence.

Logic gates. Chapter. 9.1 Logic gates. MIL symbols. Learning Summary. In this chapter you will learn about: Logic gates

PROGRAMMABLE LOGIC CONTROLLERS Unit code: A/601/1625 QCF level: 4 Credit value: 15 OUTCOME 3 PART 1

EE360: Digital Design I Course Syllabus

Gates & Boolean Algebra. Boolean Operators. Combinational Logic. Introduction

NEW adder cells are useful for designing larger circuits despite increase in transistor count by four per cell.

Take-Home Exercise. z y x. Erik Jonsson School of Engineering and Computer Science. The University of Texas at Dallas

Systems I: Computer Organization and Architecture

Course Requirements & Evaluation Methods

Karnaugh Maps (K-map) Alternate representation of a truth table

Design and Development of Virtual Instrument (VI) Modules for an Introductory Digital Logic Course

BINARY CODED DECIMAL: B.C.D.

An Introduction to Fault Tree Analysis (FTA)

ECE410 Design Project Spring 2008 Design and Characterization of a CMOS 8-bit Microprocessor Data Path

5 Combinatorial Components. 5.0 Full adder. Full subtractor

List of Experiment. 8. To study and verify the BCD to Seven Segments DECODER.(IC-7447).

Circuits and Boolean Expressions

HCF4028B BCD TO DECIMAL DECODER

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

Hexadecimal and Numeric Indicators. Technical Data

COMPUTER SCIENCE. Paper 1 (THEORY)

How to bet using different NairaBet Bet Combinations (Combo)

Systems I: Computer Organization and Architecture

Lab 1: Full Adder 0.0

Designing Digital Circuits a modern approach. Jonathan Turner

Chapter 1. Computation theory

IE1204 Digital Design F12: Asynchronous Sequential Circuits (Part 1)

Digital Fundamentals. Lab 8 Asynchronous Counter Applications

DM74LS47 BCD to 7-Segment Decoder/Driver with Open-Collector Outputs

earlier in the semester: The Full adder above adds two bits and the output is at the end. So if we do this eight times, we would have an 8-bit adder.

Asynchronous counters, except for the first block, work independently from a system clock.

Lesson 12 Sequential Circuits: Flip-Flops

RUTGERS UNIVERSITY Department of Electrical and Computer Engineering 14:332:233 DIGITAL LOGIC DESIGN LABORATORY

ECE 3401 Lecture 7. Concurrent Statements & Sequential Statements (Process)

PRIMARY CONTENT MODULE Algebra I -Linear Equations & Inequalities T-71. Applications. F = mc + b.

Transcription:

United States Naval Academy Electrical and Computer Engineering Department EC262 Exam 29 September 2. Do a page check now. You should have pages (cover & questions). 2. Read all problems in their entirety. Answer the question asked. 3. Work neatly and show all of your work to receive maximum partial credit. 4. Explicitly state any assumptions and highlight your final answer. 5. You have minutes to complete the examination. 6. When directed by your instructor, you may commence work. 7. No calculators are permitted. I will not discuss this exam with anyone until after 2 nd period on Friday 3 September 2. (Signature) Page Points Possible 2 5 3 2 4 5 5-6 2 7 8 8 9 TOTAL Name: Section EC262 Fall 2 Page of

) [5 pts] Use the Karnaugh maps to find one minimum SOP (2 possible solutions) and one minimum POS expressions for the following logic function: f = b'c' + bc + c'd' (or bd' ) f = (b' + c + d' ) (b + c' ) (,,, ) = (,, 4, 6, 7,8,5) + ( 9,,2,4) f abcd m d Minimum SOP: f(a,b,c,d) = Minimum POS: f(a,b,c,d) = EC262 Fall 2 Page 2 of

2) [2 pts] Using Boolean (switching) algebra, reduce the expressions below to a minimum sum of products expression. Indicate the property BY NUMBER that you used. x' y' z' a) (4 pts) f(w, x, y, z) = (x' y' + z')(x' y' + z) (x y' z + x' z') ( term and 3 literals) b) (4 pts) f(w, x, y, z) = x' y' z' + x' y' z + x' y z +x y' z' (2 terms and 4 literals) y' z' + x' z c) (4 pts) f(a, b, c) = a + (a + b + c) ' + b' c (2 terms and 2 literals) a + b' EC262 Fall 2 Page 3 of

3) [5 pts] Binary analysis. Show ALL WORK! (just an answer will not suffice) a) (4 pts) What are the maximum negative number and the maximum positive number (in decimal) of a 2 s complement number that has 7 bits? 63 N -64 b) (4 pts) What is the minimum number of bits you need to represent C 6 unique values? How many unused unique combinations will there be? 32 unique combinations 4 unused unique combinations c) (7 pts) Suppose we use 6 bits to store signed numbers (2 s complement). Compute f = a - b. Show a, b and f in decimal as well as binary. Indicate if overflow does or does not occur. Show all carry bits. a = 2 b = 2 f = a - b f = 2 f= -2 (-6) = -6 No overflow Write your signed binary result here: Write your signed decimal result here: Overflow occurred? (YES or NO) EC262 Fall 2 Page 4 of

4) [2 pts] The figure below shows an intersection of a main highway with a secondary access road. Vehicle detection sensors are placed along lanes A, B, C and D. The sensors outputs are LOW () when no vehicle is present and HIGH () when a vehicle is present. The intersection traffic light is to be controlled according to the following logic: The east-west (EW) traffic light will be green whenever both lanes C and D are occupied. The EW traffic light will be green whenever either C or D lane is occupied but lanes A and B are not both occupied. The north-south (NS) traffic light will be green whenever both lanes A and B are occupied but C and D are not both occupied. The NS traffic light will be green whenever either A or B lane is occupied and C and D are both vacant. The EW traffic light will be green whenever no vehicles are present. A C E N S W D B a) (8 pts) Develop a truth table for a logic circuit to control the EW and NS traffic lights at this intersection (assume that logic = green light). EC262 Fall 2 Page 5 of

b) (6 pts) Find the minimum SOP expressions for the outputs of this circuit. EW = CD + A'B' + A'D + A'C + B'D + B'C NS = BC'D' + AC'D'+ ABC' + ABD' c) (6 pts) Draw a block diagram for the circuit that controls the NS traffic light. Assume that only uncomplemented inputs are available. EC262 Fall 2 Page 6 of

5) [8 pts] The figure below shows a logic circuit and a symbol for a -bit comparator (a=b,a<b,a>b). a b A circuit for a -bit comparator = < > -bit comparator a symbol for a -bit comparator = < > a) (3 pts) If the propagation delay for each gate is Δ (assume that the propagation delay of an inverter is already included in Δ), find the worst case propagation delay for this -bit comparator. = 2Δ < 2Δ > 2Δ b) (5 pts) A 3-bit comparator can be built by cascading 3 -bit comparators as shown below, find the total (worst-case) propagation delay for this 3-bit comparator. For full credit, explain or show on the figure how you obtain your answer. A 2 B 2 A B A B = = -bit comparator -bit comparator -bit comparator < > 5Δ EC262 Fall 2 Page 7 of

6) [ pts] The truth table for a logic controller is shown below. Draw a block diagram of this circuit using only 2-to-4 decoders (shown below) and OR gates. Note that you cannot use an inverter in your circuit. xyz f g 2-to-4 decoder x 2-to-4 Decoder 2 3 y z 2-to-4 Decoder 2 3 f y z 2-to-4 Decoder 2 3 g EC262 Fall 2 Page 8 of

7) [ pts] We want to build a circuit to compute the of a 6-bit number A (A 5 A 4 A 3 A 2 A A ). The is defined as if and only if there are an odd number of s in the number (For example: if A = then = ; if A = then = ). One way of doing this is to build the circuit bit at a time (as in the adder), such that the circuit computes the after that bit as a function of the up to that bit and the one input bit. A block diagram of such a circuit is shown below. A 5 A 4 A 3 A 2 A A Parity -bit P 4 -bit P 3 -bit P 2 -bit P -bit P -bit a) (5 pts) Show a circuit to compute -bit using AND, OR and NOT gates only. Assume that inputs are available only uncomplemented. A i P i P (i-) b) (2 pts) If the propagation delay for each gate is Δ, compute the maximum delay for each module ( bit circuit in part a). Again, assume that inputs are available only uncomplemented. State any assumptions made. 3 Δ c) (3 pts) Compute the total (worst-case) delay for 6-bits. 8 Δ EC262 Fall 2 Page 9 of

8) [ pts] Design a circuit that accepts a 4-bit input signed number (2 s complement) and produces the absolute value of that number. Assume the following components are available: Full adders AND, OR, NOT, and XOR gates. Draw a block diagram for this circuit using as many of these components as needed. X 3 X 2 X X FA FA FA Y 3 Y 2 Y Y EC262 Fall 2 Page of

EC262 Fall 2 Page of