Written exam IE1204/5 Digital Design Friday 13/

Similar documents
DIGITAL DESIGN WITH SM CHARTS

DELD MODEL ANSWER DEC 2018

CS302 Digital Logic Design Solved Objective Midterm Papers For Preparation of Midterm Exam

Introduction. BME208 Logic Circuits Yalçın İŞLER

CONTENTS Sl. No. Experiment Page No

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

Digital Logic Circuits

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

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

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

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

Code No: R Set No. 1

Digital Electronics Course Objectives

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

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

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

Department of Electronics and Communication Engineering

Chapter 3 Digital Logic Structures

Spec. Instructor: Center

Course Overview. Course Overview

Digital Electronic Concepts

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

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

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

Asst. Prof. Thavatchai Tayjasanant, PhD. Power System Research Lab 12 th Floor, Building 4 Tel: (02)

Syllabus: Digital Electronics (DE) (Project Lead The Way)

Brought to you by. Priti Srinivas Sajja. PS01CMCA02 Course Content. Tutorial Practice Material. Acknowldgement References. Website pritisajja.

Lecture 02: Digital Logic Review

DIGITAL ELECTRONICS QUESTION BANK

Module -18 Flip flops

Objective Questions. (a) Light (b) Temperature (c) Sound (d) all of these

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

Chapter 4: FLIP FLOPS. (Sequential Circuits) By: Siti Sabariah Hj. Salihin ELECTRICAL ENGINEERING DEPARTMENT EE 202 : DIGITAL ELECTRONICS 1

COURSE LEARNING OUTCOMES AND OBJECTIVES

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

UNIVERSITI MALAYSIA PERLIS

SRV ENGINEERING COLLEGE SEMBODAI RUKMANI VARATHARAJAN ENGINEERING COLLEGE SEMBODAI

High Speed Binary Counters Based on Wallace Tree Multiplier in VHDL

EE 280 Introduction to Digital Logic Design

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

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

GATE Online Free Material

Practical Workbook Logic Design & Switching Theory

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

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

1. The decimal number 62 is represented in hexadecimal (base 16) and binary (base 2) respectively as

Chapter 3 Digital Logic Structures

Java Bread Board Introductory Digital Electronics Exercise 2, Page 1

Digital Electronics. A. I can list five basic safety rules for electronics. B. I can properly display large and small numbers in proper notation,

Name: Class: Date: 1. As more electronic systems have been designed using digital technology, devices have become smaller and less powerful.

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

Homework Problem Set: Combinational Devices & ASM Charts. Answer all questions on this sheet. You may attach additional pages if necessary.

Laboratory Manual CS (P) Digital Systems Lab

Exam #2 EE 209: Fall 2017

Course Outline Cover Page

COLLEGE OF ENGINEERING, NASIK

Logic Design I (17.341) Fall Lecture Outline

CS302 - Digital Logic Design Glossary By

Winter 14 EXAMINATION Subject Code: Model Answer P a g e 1/28

Types of Control. Programmed Non-programmed. Program Counter Hardwired

IES Digital Mock Test

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

Serial Addition. Lecture 29 1

Computer Architecture and Organization:

Midterm Exam ECE 448 Spring Thursday Section. (15 points)

EEE 301 Digital Electronics

SE311: Design of Digital Systems Lecture 1: Introduction to Digital Systems

Odd-Prime Number Detector The table of minterms is represented. Table 13.1

Positive and Negative Logic

EASTERN MEDITERRANEAN UNIVERSITY COMPUTER ENGINEERING DEPARTMENT CMPE224 DIGITAL LOGIC SYSTEMS VHDL EXPERIMENT VII

Topics. FPGA Design EECE 277. Combinational Logic Blocks. From Last Time. Multiplication. Dr. William H. Robinson February 25, 2005

EECS 150 Homework 4 Solutions Fall 2008

*************************************************************************

UNIT II: Clocked Synchronous Sequential Circuits. CpE 411 Advanced Logic Circuits Design 1

1.) If a 3 input NOR gate has eight input possibilities, how many of those possibilities result in a HIGH output? (a.) 1 (b.) 2 (c.) 3 (d.) 7 (e.

Exercises: Fundamentals of Computer Engineering 1 PAGE: 1

EE6301 DIGITAL LOGIC CIRCUITS LT P C UNIT I NUMBER SYSTEMS AND DIGITAL LOGIC FAMILIES 9

EXPERIMENT NO 1 TRUTH TABLE (1)

Digital Circuits II Lecture 6. Lab Demonstration 3 Using Altera Quartus II to Determine Simplified Equations & Entering Truth Table into VHDL

Electronics. Digital Electronics

Lecture 3: Logic circuit. Combinational circuit and sequential circuit

Unit level 4 Credit value 15. Introduction. Learning Outcomes

B.C.A 2017 DIGITAL ELECTRONICS BCA104T MODULE SPECIFICATION SHEET. Course Outline

DELD UNIT 3. Question Option A Option B Option C Option D Correct Option A B C

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

ECOM 4311 Digital System Design using VHDL. Chapter 9 Sequential Circuit Design: Practice

CSE 260 Digital Computers: Organization and Logical Design. Midterm Solutions

Computer Architecture: Part II. First Semester 2013 Department of Computer Science Faculty of Science Chiang Mai University

Logic Circuit Design


E2.11/ISE2.22 Digital Electronics II

JEFFERSON COLLEGE COURSE SYLLABUS ETC255 INTRODUCTION TO DIGITAL CIRCUITS. 6 Credit Hours. Prepared by: Dennis Eimer

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) SUMMER-16 EXAMINATION Model Answer

Function Table of an Odd-Parity Generator Circuit

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

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

DIGITAL LOGIC COMPUTER SCIENCE

logic system Outputs The addition of feedback means that the state of the circuit may change with time; it is sequential. logic system Outputs

! Review: Sequential MOS Logic. " SR Latch. " D-Latch. ! Timing Hazards. ! Dynamic Logic. " Domino Logic. ! Charge Sharing Setup.

Design for Testability & Design for Debug

Transcription:

Written exam IE204/5 Digital Design Friday 3/ 207 08.00-2.00 General Information Examiner: Ingo Sander. Teacher: Kista, William Sandqvist tel 08-7904487 Teacher: Valhallavägen, Ahmed Hemani 08-7904469 Exam text does not have to be returned when you hand in your writing. Aids: No aids are allowed! The exam consists of three parts with a total of 4 tasks, and a total of 30 points: Part A (Analysis) containes ten short questions. Right answer will give you one point. Incorrect answer will give you zero points. The total number of points in Part A is 0 points. To pass the Part A requires at least 6p, if fewer points we will not look at the rest of your exam. Part A2 (Methods) contains two method problems on a total of 0 points. To pass the exam requires at least points from A + A2, if fewer points we will not look at the rest of your exam. Part B (Design problems) contains two design problems of a total of 0 points. Part B is corrected only if there are at least p from the exam A- Part. NOTE! At the end of the exam text there is a submission sheet for Part A, which shall be separated and be submitted together with the solutions for A2 and B. For a passing grade (E ) requires at least points on the exam. If exactly 0p from A(6p)+A2(4p), (FX), completion to (E) will be offered. Grades are given as follows: 0 6 9 22 25 F E D C B A The result is expected to be announced before Friday 3/2 207.

Part A: Analysis Only answers are needed in Part A. Write the answers on the submission sheet for Part A, which can be found at the end of the exam text.. p/0p A function f(x, y, z) is described on minimized SoP form (Sum of products): f ( x, y, z) { SoP} min y x z Write down the function as a minimized product of sums. f ( x, y, z ) PoS min? 2. p/0p Useless circuit (!). A 5-bit adder is connected to multiply a binary unsigned 4-bit number x = x3x2xx0 with a constant k, y = k x. Let the number x be x = 002 then what will the (6 bit) sum y = y5y4y3y2yy0 be? 3. p/0p A two s complement 6-bit number is x6 = FFFB (hexadecimal). This number will be transfered to a 4-bit register (the number of bits will be reduced and the sign kept). Express this 4-bit number as a decimal number with sign x0 =? 4. p/0p Given is a Karnaugh map for a function of four variables Y = f(x3, x2, x, x0). Write the function Ymin, as a minimized sum of products, on SoP form. - in the map means don t care. 2

5. p/0p The figure below shows a circuit with two NOR gates and two NAND gates. Simplify the function Y = f( a, b, c, d ) as much as possible and write the function on SoP-form. 6. p/0p Give an expression for the logical function realized by the CMOS circuit in the figure. Write the function on SoP-form. F = f(a, B, C, D) =? 7. p/0p A State Machine can be drawn either as state diagram or as ASM chart (Algorithmic State Machine chart). This figure shows an ASMchart. Draw the equivalent Moore state diagram using the circles in the right figure. The same figure is also on the submission sheet. 8. p/0p A synchronous counter starts in the state q2qq0 = 000. What will the state be after four clock pulses? q2qq0 =? 3

9. p/0p The figure shows a latch circuit. Complete the timing diagram. The same timing diagram is also on the submission sheet. 0. p/0p At the labs, we use chips from the 74-series. They are nowadays used as spares. These functions can instead be described using VHDL code and downloaded to programmable logic. The circuit 742 is shown to the right. Below are the VHDL code for the circuit. In the code, we have hidden the line o from you ( with characters ). Write VHDL code for the line o2 <= ( ) ; library ieee; use ieee.std_logic_64.all; entity A74XX2 is port ( a : in std_logic; b : in std_logic; c : in std_logic; d : in std_logic; a2 : in std_logic; b2 : in std_logic; c2 : in std_logic; d2 : in std_logic; o : out std_logic; o2 : out std_logic ); end entity; architecture dataflow of A74XX2 is begin o <= ( ) ; o2 <= ( ) ; end architecture; 4

Part A2: Methods Note! Part A2 will only be corrected if you have passed part A ( 6p). 4p ANDON signal lights. In production factories with assembly line a system of warning lights green (G), yellow (Y) and Red (R) are used at the assembly stations. Operators have a stop button (with a cord) that stops the assembly line and all stations then signals red. The operator also has an alert button to summon help. It will signal yellow light at the own station and for all previous stations along the assembly line, but without stopping it. When all problems are removed, the assembly line may be started again with a short start pulse (Start). All stations then signals the green light. See the figure that shows three stations with the operator buttons and lights. The arrow indicates the transport direction of the assembly line. a) (a+b=p) (Green) A short pulse Start = can start the assembly line if Ready =. Design a circuit that provides signal Ready = if none of the stop signals s s2 s3 are. b) (Red) The assembly line is stopped if Reset =. Design a circuit that provides signal Reset = if any of the signals s s2 s3 is. Reset = f(s,s2,s3). Draw the two circuits together, use a few optional gates. c) (2p) (Yellow) Operators can warn on problems by lighting a yellow lamp. The signals w w2 w3 shall lit their own yellow light (y at w or y2 at w2 or y3 at w3 ), but also lit the yellow lights belonging to the stations that are earlier in the direction of assembly line (stations after shall not be warned). Set up the truth table for yy2y3 = f(w,w2,w3). Derive the functions y = f(w,w2,w3) y2 = f(w,w2,w3) y3 = f(w,w2,w3) by inspecting the truth table or by using Karnaugh map. Design the circuit with a few optional gates. 5

d) (p) It is common with more than three workstations along a conveyor belt. In the figure, a warning signal win from an subsequent station, and a warning signal wout to a previous station, has been added. Completed the circuit from c) with the signals signal wout and win in such a way that it works together with the other stations. (Rule: all previous stations must also warn with yellow light). 2. 6p Counter. A modulo-6 synchronous counter consists of three D-flip-flops and one XOR-gate and one AND-gate, se the figure. a) (p) Derive the expressions for next state q q? q? 3? 2 b) (p) Set up the complete state table q3 q2 q f ( q3q2q ) c) (p) Draw the complete state diagram. d) (p) Which states are not part of the modulo-6 sequence? What will happen if one starts from any of these states? Redesign the circuit, maintaining the function so that it uses two 2: multiplexers in place of the gates. See figure to the right. e) (2p) What signals should be connected to the multiplexer data inputs to replace the gates? Motivate answer. q : mux q 3 0 : mux 0?,?, mux? mux? 6

Part B. Design Problems Note! Part B will only be corrected if you have passed part A+A2 ( p). 3. 5p Synchronous sequential circuit. Detector for specific event. A shift register is used to detect when a particular sequence occurs in a sequence of bits to input w. The signal w is synchronized with the clock pulses c. Each time the correct bit sequence appears z =. At start is w = 0. a) (p) Which bit sequence is detected? One can construct a Moore machine with fewer D-flip-flops that detects the same sequence. b) (p) Draw the State Diagram for such a sequence detector. c) (2p) Derive the state table and the coded state table, using binary code as state code. Derive minimized expressions for next state decoder and output decoder. You do not need to draw any circuit diagram. d) (p) Minimize the following state diagram. Then draw the minimized state diagram. Note that this is a completely independent task without any connection to the former sequence detector. 7

4. 5p Registration of double edges. Pulses are received at two inputs a and b of an asynchronous sequential circuit. As soon as a total of two positive edges (transitions from 0 ) has been submitted to the inputs then the output y becomes (and then remains regardless of input signals). Two edges means that it either enters two pulses to any of the inputs, or enters one pulse to each input. The pulses may come at any time to the inputs and no assumption can be made about the length of the pulses. At start both input signals are a = b = 0. No simultaneous input signal changes can occur. a) (2p) Study the possible inputs, and set up a proper flow table for the sequential circuit. Draw the state diagram. b) (2p) Make a suitable state assignment with an exitation table that provides circuits that are free from critical race (comment on how you achieved this). You will also develop the hazard free expressions for the next state (comment on how you achieved this) as well as an expression for output. c) (0,5p) Draw the circuit diagram. (Use optional gates). d) (0,5p) To be useful, the sequential circuit will need a Reset input so that it can be re-started. Complete the circuit with such a function. (Use optional gates). Good Luck! 8

Submission sheet for Part A Sheet ( remove and hand in together with your answers for part A2 and part B ) Last name: Given name: Personal code: Sheet: Write down your answers for the questions from Part A ( to 0 ) Question Answer f ( x, y, z ) PoS min? 2 3 4 5 6 x = 002 y = k x = y5y4y3y2yy0 =? x6 = FFFB 4-bit x0 =? Y {SoP} min Y = f( a, b, c, d ) F = f(a, B, C, D) 7 8 q2qq0 = 000?? 9 0 o2 <= ( ) ; This table is completed by the examiner!! Part A (0) Part A2 (0) Part B (0) Total (30) Points 2 3 4 Sum Grade 9