Written Re-exam with solutions for IE1204/5 Digital Design Friday 10/

Similar documents
Written exam for IE1204/5 Digital Design Thursday 29/

ELCT 501: Digital System Design

R a) Simplify the logic functions from binary to seven segment display code converter (8M) b) Simplify the following using Tabular method

R10. II B. Tech I Semester, Supplementary Examinations, May

R07

IE1204/5 Digital Design example exam

HANSABA COLLEGE OF ENGINEERING & TECHNOLOGY (098) SUBJECT: DIGITAL ELECTRONICS ( ) Assignment

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

Code No: R Set No. 1

Code No: 07A3EC03 Set No. 1

Injntu.com Injntu.com Injntu.com R16

Philadelphia University Student Name: Student Number:

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

Code No: R Set No. 1

Principles of Digital Techniques PDT (17320) Assignment No State advantages of digital system over analog system.

B.Tech II Year I Semester (R13) Regular Examinations December 2014 DIGITAL LOGIC DESIGN

SUBJECT CODE: IT T35 DIGITAL SYSTEM DESIGN YEAR / SEM : 2 / 3

VALLIAMMAI ENGINEERING COLLEGE. SRM Nagar, Kattankulathur DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING EC6302 DIGITAL ELECTRONICS

UNIT I BOOLEAN ALGEBRA AND COMBINATIONAL CIRCUITS PART-A (2 MARKS)

COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING QUESTION BANK SUBJECT CODE & NAME: EC 1312 DIGITAL LOGIC CIRCUITS UNIT I

Code No: R Set No. 1

Scheme G. Sample Test Paper-I

Final Examination (Open Katz, asynchronous & test notes only, Calculators OK, 3 hours)

3. The high voltage level of a digital signal in positive logic is : a) 1 b) 0 c) either 1 or 0

KINGS COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING QUESTION BANK NAME OF THE SUBJECT: EE 2255 DIGITAL LOGIC CIRCUITS

PART B. 3. Minimize the following function using K-map and also verify through tabulation method. F (A, B, C, D) = +d (0, 3, 6, 10).

CS303 LOGIC DESIGN FINAL EXAM

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

CSE 260 Introduction to Digital Logic and Computer Design. Exam 1. Your name 2/13/2014

10EC33: DIGITAL ELECTRONICS QUESTION BANK


NADAR SARASWATHI COLLEGE OF ENGINEERING AND TECHNOLOGY Vadapudupatti, Theni

Control and Datapath 8

BHARATHIDASAN ENGINEERING COLLEGE Degree / Branch : B.E./ECE Year / Sem : II/ III Sub.Code / Name : EC6302/DIGITAL ELECTRONICS

Question Total Possible Test Score Total 100

R07. Code No: V0423. II B. Tech II Semester, Supplementary Examinations, April

END-TERM EXAMINATION

1. Mark the correct statement(s)

ACS College of Engineering. Department of Biomedical Engineering. Logic Design Lab pre lab questions ( ) Cycle-1

Lecture 12 VHDL Synthesis

Hours / 100 Marks Seat No.

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

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

CS6201-DIGITAL PRINCIPLE AND SYSTEM DESIGN I YEAR/II SEM PART-B UNIT-I BOOLEAN ALGEBRA AND LOGIC GATES.

Luleå University of Technology Kurskod SMD152 Datum Skrivtid

DIGITAL ELECTRONICS. P41l 3 HOURS

1. What is y-chart? ans: The y- chart consists of three domains:- behavioral, structural and geometrical.

Hours / 100 Marks Seat No.

DESCRIPTION OF DIGITAL CIRCUITS USING VHDL

DIGITAL LOGIC WITH VHDL (Fall 2013) Unit 6

DHANALAKSHMI SRINIVASAN COLLEGE OF ENGINEERING AND TECHNOLOGY

Lecture 7. Standard ICs FPGA (Field Programmable Gate Array) VHDL (Very-high-speed integrated circuits. Hardware Description Language)

EE 109L Review. Name: Solutions

CSE 260 Introduction to Digital Logic and Computer Design. Exam 1 Solutions

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

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

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

VALLIAMMAI ENGINEERING COLLEGE

SHRI ANGALAMMAN COLLEGE OF ENGINEERING. (An ISO 9001:2008 Certified Institution) SIRUGANOOR, TIRUCHIRAPPALLI

DIGITAL LOGIC DESIGN VHDL Coding for FPGAs Unit 6

VHDL Examples Mohamed Zaky

VALLIAMMAI ENGINEERING COLLEGE

COPYRIGHTED MATERIAL INDEX

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

COMBINATIONAL LOGIC CIRCUITS

/90 TOTAL. 1(a) 8pts. fiv(a,b) is called the function.

The University of Alabama in Huntsville ECE Department CPE Midterm Exam February 26, 2003

QUESTION BANK FOR TEST

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

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

Model EXAM Question Bank

Design a three-input, two-output sequential digital circuit which functions as a digital locking mechanism. LOCK ALARM

Schedule. ECE U530 Digital Hardware Synthesis. Rest of Semester. Midterm Question 1a

Lab 3: Standard Combinational Components

SRI SUKHMANI INSTITUTE OF ENGINEERING AND TECHNOLOGY, DERA BASSI (MOHALI)

EECS150 Homework 2 Solutions Fall ) CLD2 problem 2.2. Page 1 of 15

Department of Electrical Engineering McGill University ECSE 221 Introduction to Computer Engineering Assignment 2 Combinational Logic

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

EECS150, Fall 2004, Midterm 1, Prof. Culler. Problem 1 (15 points) 1.a. Circle the gate-level circuits that DO NOT implement a Boolean AND function.

ECE 341 Midterm Exam

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

EPC6055 Digital Integrated Circuits EXAM 1 Fall Semester 2013

Federal Urdu University of Arts, Science and Technology, Islamabad VLSI SYSTEM DESIGN. Prepared By: Engr. Yousaf Hameed.

CS/IT DIGITAL LOGIC DESIGN

CSE 260 Digital Computers: Organization and Logical Design. Exam 2. Jon Turner 3/28/2012

Programmable Logic Devices

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

II/IV B.Tech (Regular/Supplementary) DEGREE EXAMINATION. Answer ONE question from each unit.

DIGITAL SYSTEM DESIGN

Ripple Counters. Lecture 30 1

Chapter Three. Digital Components

KING FAHD UNIVERSITY OF PETROLEUM & MINERALS COMPUTER ENGINEERING DEPARTMENT

This tutorial gives a complete understanding on Computer Logical Organization starting from basic computer overview till its advanced architecture.

Experiment 4 Boolean Functions Implementation

Field Programmable Gate Array

Digital logic fundamentals. Question Bank. Unit I

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

ECE 2300 Digital Logic & Computer Organization. More Sequential Logic Verilog

Logic design Ibn Al Haitham collage /Computer science Eng. Sameer

Switching Theory & Logic Design/Digital Logic Design Question Bank

Transcription:

Written Re-exam with solutions for IE24/5 Digital Design Friday /4 25 8.-2. General Information Examiner: Teacher: Ingo Sander. Kista, William Sandvist, phone 8-79 44 87 / Fredrik Jonsson. 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 2 tasks, and a total of 3 points: Part A (Analysis) contains eight short uestions. Right answer will for six of the uestions give you one point and for two of the uestions one or two points. Incorrect answer will give you zero points. The total number of points in Part A is points. To pass the Part A reuires 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 points. To pass the exam reuires 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 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 can be separated to be submitted together with the solutions for A2 and B. For a passing grade (E ) reuires at least points on the exam. Grades are given as follows: 6 9 22 25 F E D C B A The result is expected to be announced before Monday 4/5 25.

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/p A function f(x, y, z) is described by the euation: f ( x, y, z) x y z y z xy z x y z Minimize the function. f ( x, y, z) min?. Proposed solution f ( x, y, z) x y z y z xy z x y z y x z Kmap 2. 2p/p/p When the numbers... 9 are coded with the usual 4 bit binary code it is called BCD code (binary code for... 5 are not included in the BCD code). Sometimes, a 4-bit code in which the BCD code words is reduced by 3, the so-called "exess-3 code", XS3, is used. (y3y2yy)xs3 = (x3x2xx)bcd 3. a) Use a four-bit adder and, if necessary inverters to make a BCDXS3 coder. The subtraction should be done with the two complement method. The constants and are available. Draw your solution in the figure on the answer sheet. b) What binary XS3 code has the BCD number 9? 2. Proposed solution a) -3=. b) BCD 9 is. XS3 code gets =. 2

3. p/p Given is a Karnaugh map for a function of four variables y = f(x3, x2, x, x). Write the function as a minimized sum of products, SP form. - in the map means don t care. 3. Proposed solution 4. 2p/p/p The figure shows a circuit consisting of three gates. a) Specify the logical function f truth table. b) Derive a simplified expression for the function f = f(a,b). 4. Proposed solution a) a b A B f b) f a ( a b) ( a b) f ab 3

5. p/p Give an expression for the logical function realized by the CMOS circuit in the figure? Only the "pull-down" circuit appears, the "pull-up" circuit is symbolized by the suare at the top of the figure. 5. Proposed solution Pull Down circuit gives inverted function. A is in series () with (+) B and C in parallel. V OUT dm A ( B C A BC A( B C) V A( B C) ) OUT 6. p/p This seuence circuit consists of a T-flip-flop and a D-flip-flop, it starts in the state. Analyze the circuit and give the seuence for the following three clock pulses. 6. Proposed solution T T T 4

7. p/p The figure shows a type of asynchronous latch. It's called the Earle latch (but it is not included in the course materials). Derive the circuit s characteristic function. f (, e, d)? 7. Proposed solution f (, e, d) ( ed) ( d) ( e) dm ed d e 8. p/p The following is the VHDL code for a 2: MUX. Unfortunately, some of the code has fallen away, this is marked by (???? ) Answer with making the line of code complete! ENTITY MUX_2_ IS PORT ( d_in : IN STD_LOGIC_VECTOR( downto ) ; a : IN STD_LOGIC ; d_out : OUT STD_LOGIC ) ; END MUX_2_ ; ARCHITECTURE beh OF MUX_2_ IS BEGIN d_out <= ( NOT a AND d_in() ) OR (???? ) ; END beh ; 8. Proposed solution d_out <= ( NOT a AND d_in() ) OR ( a AND d_in() ) ; 5

Part A2: Methods Note! Part A2 will only be corrected if you have passed part A ( 6p). 9. 5p The figure shows an punched tape with the Baudot code. Your task is to make a decoder for vowels (our Swedish vowels Å Ä Ö are not included) that provides the output V= only when the code is corresponding to a vowel. Assume that the paper tape to read is edited so that only the English alphabet letters A Z are appearing (letters from the line "Lowercase"). No special characters (Car. Return, Line Feed, Ltrs...) can occur. Consider Y as a vowel. Hole =, no hole =. a) (p) Enter the truth table V = f(x4,x3,x2,x,x), or directly as Karnaugh maps. Specify do not care. One code word is missing on the character strip - which one? - It could also be used as do not care. b) (2p) Minimize the function V and express it as a sum of products (SP). Use do not care. c) (2p) In order to reduce the number of gates a multiplexer is used. Realize the function V with a 4: MUX and a minimized number of optional gates. As select variables x4 and x3 should be used. 9. Proposed solution a) V = for A(3), E(), I(6), O(24), U(7), Y(2). V is don t care for BLANK(), LF(2), CR(8), SP(4), LTRS(3), FIGS(27). b) It is the code for BLANK, no holes that is missing on the character strip. That don t care position is not utilized in this solution. c) 6

. 5p A counter (a Moore-machine) counts Graycode up or down. With two mode-signals a b ( ) you control to which the state counter should count, and then remain in this state until ab are changed, then it should go to the new state. Choose to follow up/down seuence so that the desired state ab is reached after as few steps as possible if the choice up/down does not imply any difference in the number of steps, then choose to follow the up seuence. a) (p) Finish the initiated state diagram. Map the condition for all state transitions. b) (2p) Write state table based on the state diagram. + + = f(, ab) Derive minimized expressions for the next state. + = f(, ab) + = f(, ab) c) (2p) Realize the next state decoder with two 4: multiplexers. The control signals a and b are connected to the multiplexers select inputs. Derive the minimized function expressions for the multiplexers data inputs. See the figure.. Proposed solution a) b) c) 7

8

Part B. Design Problems Note! Part B will only be corrected if you have passed part A+A2 ( p).. 5p Synchronous serial two-complementer. a) (p) A synchronous seuential circuits, a Moore machine, has the state diagram to the right. Minimize the number of states, set up the minimized state-table and draw the minimized state diagram. (This may very well prove to be time well spent before the subtask b). b) (p) The Rapid method for the two complement of a binary number means that, in the direction from the least significant bit to the most significant bit, all the bits including the leading are copied and then all of the following bits are inverted. A synchronous seuential circuit, a Moore machine, will at the input i for each clock pulse, get the bits in this serial order. After each clock pulse the seuential circuit output z will present the corresponding bit copied or inverted according to the rule. After each complete data word the circuit is cleared with the (asynchronous) reset. Derive the circuit s state table and draw the state diagram. (2p) Derive the coded state table (select the code yourself) and derive the minimized functions for next state and output. (p) Draw schematic it is free to use any type of gates together with the D-flip-flops wich has asynchronous reset input.. Proposed solution State encoding is free, except that a must have the code as we use asynchronous reset. 9

2. (5p) Asynchronous edge triggered pulse gate An asynchronous seuential circuits has two inputs and one output. On one input there is a pulse train p, on the other input there is a slow signal w ( slow in comparision to p ). As soon as possible after each rising edge of w, the output z will let through the next complete pulse (one complete pulse) from p. Output z is all other times. See the figure's example. Your answer must include a state diagram, if necessary minimized, a flow table, and an appropriate state assignment with a excitation table that gives race-free net. You must also develop the hazard-free expressions for the next state and an expression for the output, but you don t need to draw the gate circuit. 2. Proposed solution The states can be coded with the gray code. Two of the don t care entries occur because the signal w is slow and then always will be w = during the pulses from p. The other two don t care entries occur because input signala can have no double changes. Good Luck!

Submission sheet for Part A Sheet ( remove and hand in together with your answers for part A2 and part B ) Last Name: Personal code number: Given Name: Write down your answers for the uestions from Part A ( to 8 ) Question Answer p f ( x, y, z ) SP min? 2 +p a) b) xbcd = 9 yxs3 =?2 (answer with a binary number) 3 p y f x, x, x, x ) SP? 4 +p ( 3 2 min a) Truth table b) Simplified function f ( a, b)? 5 p f ( A, B, C)? V OUT 6 p 7 p 8 p, f (, e, d)? d_out <= ( NOT a AND d_in() ) OR ( ) ; This table is completed by the examiner!! Part A Part A2 Part B Total Points 9 2 Sum Grade