Switching Circuits & Logic Design, Fall Final Examination (1/13/2012, 3:30pm~5:20pm)

Similar documents
Final Exam review: chapter 4 and 5. Supplement 3 and 4

1. Convert the decimal number to binary, octal, and hexadecimal.

Logic Design II (17.342) Spring Lecture Outline

1. a) For the circuit shown in figure 1.1, draw a truth table showing the output Q for all combinations of inputs A, B and C. [4] Figure 1.

Logic Design II (17.342) Spring Lecture Outline

ECE 301 Digital Electronics

Chapter 5 Sequential Circuits

Course Administration

Logic and Computer Design Fundamentals. Chapter 7. Registers and Counters

UNIVERSITI TEKNOLOGI MALAYSIA

The reduction in the number of flip-flops in a sequential circuit is referred to as the state-reduction problem.

1. True/False Questions (10 x 1p each = 10p) (a) I forgot to write down my name and student ID number.

Spring 2017 EE 3613: Computer Organization Chapter 5: The Processor: Datapath & Control - 1

UNIT III. Combinational Circuit- Block Diagram. Sequential Circuit- Block Diagram

Experiment 8 Introduction to Latches and Flip-Flops and registers

Sequential Circuits. Output depends only and immediately on the inputs Have no memory (dependence on past values of the inputs)

L5 Sequential Circuit Design

CHAPTER1: Digital Logic Circuits

Unit-5 Sequential Circuits - 1

Digital Fundamentals: A Systems Approach

Digital Logic Design I

Computer Architecture and Organization


Sequential Logic Circuits

Logic Design. Flip Flops, Registers and Counters

Fall 2000 Chapter 5 Part 1

EECS 270 Final Exam Spring 2012

EECS150 - Digital Design Lecture 19 - Finite State Machines Revisited

ECE 331 Digital System Design

ECE 301 Digital Electronics

CS6201 UNIT I PART-A. Develop or build the following Boolean function with NAND gate F(x,y,z)=(1,2,3,5,7).

Digital Design, Kyung Hee Univ. Chapter 5. Synchronous Sequential Logic

Principles of Computer Architecture. Appendix A: Digital Logic

ECE 263 Digital Systems, Fall 2015

problem maximum score 1 28pts 2 10pts 3 10pts 4 15pts 5 14pts 6 12pts 7 11pts total 100pts

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District UNIT-III SEQUENTIAL CIRCUITS

Registers and Counters

Question Bank. Unit 1. Digital Principles, Digital Logic

ELCT201: DIGITAL LOGIC DESIGN

Universidad Carlos III de Madrid Digital Electronics Exercises

ELE2120 Digital Circuits and Systems. Tutorial Note 8

DIGITAL TECHNICS. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District DEPARTMENT OF INFORMATION TECHNOLOGY CS 2202 DIGITAL PRINCIPLES AND SYSTEM DESIGN

Lecture 11: Synchronous Sequential Logic

More design examples, state assignment and reduction. Page 1

CprE 281: Digital Logic

EXPERIMENT: 1. Graphic Symbol: OR: The output of OR gate is true when one of the inputs A and B or both the inputs are true.

Synchronous Sequential Logic

DIGITAL SYSTEM DESIGN UNIT I (2 MARKS)

University of California at Berkeley College of Engineering Department of Electrical Engineering and Computer Science SOLUTIONS

Chapter Contents. Appendix A: Digital Logic. Some Definitions

RS flip-flop using NOR gate

Experiment # 9. Clock generator circuits & Counters. Digital Design LAB

WINTER 15 EXAMINATION Model Answer

Analysis of Clocked Sequential Circuits

Counters

Midterm Examination II

Synchronous sequential circuits

1.b. Realize a 5-input NOR function using 2-input NOR gates only.

Chapter 5 Synchronous Sequential Logic

YEDITEPE UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING. EXPERIMENT VIII: FLIP-FLOPS, COUNTERS 2014 Fall

Sequential Digital Design. Laboratory Manual. Experiment #7. Counters

Registers & Counters. Logic and Digital System Design - CS 303 Erkay Savaş Sabanci University

Flip-Flops and Registers

EXPERIMENT 13 ITERATIVE CIRCUITS

IT T35 Digital system desigm y - ii /s - iii

Chapter 6. Flip-Flops and Simple Flip-Flop Applications

CprE 281: Digital Logic

Midterm Exam 15 points total. March 28, 2011

WEEK 10. Sequential Circuits: Analysis and Design. Page 1

Review : 2 Release Date : 2019 Last Amendment : 2013 Course Code : SKEE 2742 Procedure Number : PK-UTM-FKE-(0)-10

EE292: Fundamentals of ECE

The basic logic gates are the inverter (or NOT gate), the AND gate, the OR gate and the exclusive-or gate (XOR). If you put an inverter in front of

The word digital implies information in computers is represented by variables that take a limited number of discrete values.

Section 6.8 Synthesis of Sequential Logic Page 1 of 8

MODEL QUESTIONS WITH ANSWERS THIRD SEMESTER B.TECH DEGREE EXAMINATION DECEMBER CS 203: Switching Theory and Logic Design. Time: 3 Hrs Marks: 100

Chapter 5: Synchronous Sequential Logic

MODULE 3. Combinational & Sequential logic

Combinational vs Sequential

Quiz #4 Thursday, April 25, 2002, 5:30-6:45 PM

ASYNCHRONOUS COUNTER CIRCUITS

Synchronous Sequential Logic. Chapter 5

EET2411 DIGITAL ELECTRONICS

Unit 9 Latches and Flip-Flops. Dept. of Electrical and Computer Eng., NCTU 1

Synchronous Sequential Logic

CS 61C: Great Ideas in Computer Architecture

Part 4: Introduction to Sequential Logic. Basic Sequential structure. Positive-edge-triggered D flip-flop. Flip-flops classified by inputs

Administrative issues. Sequential logic

Register Transfer Level in Verilog: Part II

COE 202: Digital Logic Design Sequential Circuits Part 1. Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:

Registers and Counters

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) WINTER 2018 EXAMINATION MODEL ANSWER

MODU LE DAY. Class-A, B, AB and C amplifiers - basic concepts, power, efficiency Basic concepts of Feedback and Oscillation. Day 1

CHAPTER 6 COUNTERS & REGISTERS

CS61C : Machine Structures

LESSON PLAN. Sub Code: EE2255 Sub Name: DIGITAL LOGIC CIRCUITS Unit: I Branch: EEE Semester: IV

CS 110 Computer Architecture. Finite State Machines, Functional Units. Instructor: Sören Schwertfeger.

Good Evening! Welcome!

EECS 270 Midterm 2 Exam Closed book portion Fall 2014

Flip-Flops and Sequential Circuit Design

Transcription:

Switching Circuits & Logic Design, Fall 2011 Final Examination (1/13/2012, 3:30pm~5:20pm) Problem 1: (15 points) Consider a new FF with three inputs, S, R, and T. No more than one of these inputs can be 1 at any time. The S and R inputs behave exactly as they do in an SR-FF. The T input behaves as it does in a T-FF. Please write the characteristics equation of such a new FF. Please simplify the equation to minimum SOP. (7%) Please construct such a FF with a T-FF and extra logic gates. (8%) Problem 2: (20 points) Design a periodical waveform generator which generates the following waveforms (period = 4 cycles): CLK ClrN A B (a)this waveform generator can be designed as a sequential circuit with two positive-edge triggered flip-flops. Derive the state graph of this circuit. (Hint: please present the state as AB. For example, AB=00 can be presented as 00 in the state graph.) (3%) (b)realize the circuits with one positive-edge triggered JK flip-flop for A, one positive-edge triggered T flip-flop for B, and basic logic gates. (AND, OR, NOT) Please use minimum SOP to realize your circuit. (12%) (c) Modify the circuits developed in (b) by adding one new control pin cnt, whose function is shown as the following table: (5%)

cnt A + B + 0 AB (no change) 1 Generate the waveform Problem 3: (5 points) Reduce the following state table to a minimum number of states with row matching technique: Present Next State Present State X=0 1 Output (Z) A B C 0 0 B D E 0 0 C F G 0 0 D A A 0 0 E A A 1 0 F A A 0 0 G A A 1 0 Problem 4: (25 points) In Chapter 14, we have designed a 101 Sequence Detector and obtained the following Mealy State Graph and State Table: (a) Try to complete the circuit design by using the following state assignments: S 0 =00, S 1 =01 and S 2 =11, two D-type flip-flops and necessary logic gates. Show your transition table and K-maps, then, plot the final circuit with minimum SOP. (13%)

(b) Try to complete the circuit design by using the following (one-hot) state assignments: S 0 =001, S 1 =010 and S 2 =100, three D-type flip-flops (one for each State) and necessary logic gates. Show your transition table, find the three flip-flop inputs and output Z directly from the table (without simplification), and plot the final circuit diagram. (12%) Problem 5: (10 points) Determine if the following statements are correct (true/false questions). If false, please correct the statement(s) with proper explanations. When implementing a sequential circuit design using 4 flip-flops and a ROM: (a) state assignment in straight binary order is as good as any other choices; (2%) (b) J-K flip-flops are preferable to D flip-flops; (2%) (c) either Moore-typed or Mealy-typed machine can be implemented; (2%) (d) the sequential circuit can have at most 4 different states; (2%) (e) positive-edge triggered flip-flops are less preferred because they may cause false outputs. (2%) Problem 6: (15 points) A serial average circuit is similar to the serial accumulator in the textbook except that the new value of X is the average of X and Y. Assume both X and Y are 4-bit positive integers. For example, initially X=0010 2 =2 10 and Y=1001 2 =9 10, then new X = 0101 2 =5 10. (Please note that 0.5 in the average is rounded off.) For another

example, X=1111 2 =15 10 and Y=1111 2 =15 10, the new X=1111 2 =15 10 (a) Use the following components defined in the textbook, draw your design of the serial average circuit. Please assume that both X and Y are initially loaded in the register before the start signal. Only block diagram is enough. You can add one AND gate if needed. (10%) X register: 4-bit right shift register with Shift input (SI), Shift (Sh), Shift output (SO). Y register: 4-bit right shift register with Shift input (SI), Shift (Sh), Shift output (SO). Note: We do NOT need to keep the number Y after the operation. One-bit serial adder: It has two inputs a, b, and outputs sum (s). Assume carry is initially zero. Controller: A Mealy circuit that has one input (St) and two outputs. (b) Please draw the state graph of the controller. No circuit design is needed. (5%) Problem 7: (10 points) You are asked to design a circuit to compare two 2500-symbol long sequences collected. There are only four different symbols, A, T, C, and G. The comparison process starts from the first symbol, and the process repeats until all the symbols in the sequences have been compared. If two sequences are identical, the final output is 1. Otherwise, the final output is 0. (a) Please draw the block diagram for the iterative circuit that consists of identical cells. Label the numbers of input/output bits for each cell. However, you don t have to provide detailed circuit design within the cell. (5%) (b) Please provide the state table for a single cell. You can use symbolic inputs in the table, for example, X 1 X 2 =AT. (5%) Bonus Problem: (5 points) The following Verilog code describes a 7-bit binary-to-bcd converter as in our Verilog LAB. Draw the circuit and label each MAdd3 module corresponding to the instance name in the code. The order of input ports and output ports in each MAdd3 module should follow the rule in the figure.

Mbinary2BCD.v module Mbinary2BCD ( a, h, t, u ); input [6:0] a; output h; output [3:0] t; output [3:0] u; wire [3:0] in1; wire [3:0] out1; assign in1 = {1'b0, a[6:4]}; MAdd3 add1 (.x(in1),.y(out1)); wire [3:0] in2; wire [3:0] out2; assign in2 = {out1[2:0], a[3]}; MAdd3 add2 (.x(in2),.y(out2)); wire [3:0] in3; wire [3:0] out3; assign in3 = {out2[2:0], a[2]}; MAdd3 add3 (.x(in3),.y(out3)); wire [3:0] in4; wire [3:0] out4; assign in4 = {1'b0, out1[3], out2[3], out3[3]}; MAdd3 add4 (.x(in4),.y(out4)); wire [3:0] in5; wire [3:0] out5; assign in5 = {out3[2:0], a[1]}; MAdd3 add5 (.x(in5),.y(out5)); assign u[0] = a[0]; assign u[3:1] = out5[2:0]; assign t[0] = out5[3]; assign t[3:1] = out4[2:0]; assign h = out4[3]; endmodule