CSEE 3827: Fundamentals of Computer Systems SOLUTIONS

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

Lesson 12 Sequential Circuits: Flip-Flops

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

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

(1) /30 (2) /30 (3) /40 TOTAL /100

Sequential Logic. (Materials taken from: Principles of Computer Hardware by Alan Clements )

WEEK 8.1 Registers and Counters. ECE124 Digital Circuits and Systems Page 1

Module 3: Floyd, Digital Fundamental

EE 42/100 Lecture 24: Latches and Flip Flops. Rev B 4/21/2010 (2:04 PM) Prof. Ali M. Niknejad

Engr354: Digital Logic Circuits

Binary Adders: Half Adders and Full Adders

Sequential Logic: Clocks, Registers, etc.

BINARY CODED DECIMAL: B.C.D.

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

ASYNCHRONOUS COUNTERS

CHAPTER IX REGISTER BLOCKS COUNTERS, SHIFT, AND ROTATE REGISTERS

Operating Manual Ver.1.1

DIGITAL COUNTERS. Q B Q A = 00 initially. Q B Q A = 01 after the first clock pulse.

Let s put together a Manual Processor

Understanding Logic Design

CSE140: Components and Design Techniques for Digital Systems

Digital Systems Based on Principles and Applications of Electrical Engineering/Rizzoni (McGraw Hill

Introduction to CMOS VLSI Design (E158) Lecture 8: Clocking of VLSI Systems

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

Flip-Flops, Registers, Counters, and a Simple Processor

Combinational Logic Design Process

DEPARTMENT OF INFORMATION TECHNLOGY

Counters and Decoders

ECE380 Digital Logic

Lecture 7: Clocking of VLSI Systems

Lecture 10 Sequential Circuit Design Zhuo Feng. Z. Feng MTU EE4800 CMOS Digital IC Design & Analysis 2010

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

Chapter 5. Sequential Logic

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

Experiment # 9. Clock generator circuits & Counters. Eng. Waleed Y. Mousa

Decimal Number (base 10) Binary Number (base 2)

CHAPTER 3 Boolean Algebra and Digital Logic

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

CHAPTER 11 LATCHES AND FLIP-FLOPS

Lecture 8: Synchronous Digital Systems

CS 61C: Great Ideas in Computer Architecture Finite State Machines. Machine Interpreta4on

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

Digital Electronics Detailed Outline

SEQUENTIAL CIRCUITS. Block diagram. Flip Flop. S-R Flip Flop. Block Diagram. Circuit Diagram

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

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

Gates, Circuits, and Boolean Algebra

Set-Reset (SR) Latch

COMBINATIONAL CIRCUITS

MICROPROCESSOR. Exclusive for IACE Students iacehyd.blogspot.in Ph: /422 Page 1

DIGITAL ELECTRONICS. Counters. By: Electrical Engineering Department

To design digital counter circuits using JK-Flip-Flop. To implement counter using 74LS193 IC.

Memory Elements. Combinational logic cannot remember

EE360: Digital Design I Course Syllabus

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

Layout of Multiple Cells

Having read this workbook you should be able to: recognise the arrangement of NAND gates used to form an S-R flip-flop.

Sequential Circuits. Combinational Circuits Outputs depend on the current inputs

Chapter 7. Registers & Register Transfers. J.J. Shann. J. J. Shann

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

Lecture 11: Sequential Circuit Design

CSE140 Homework #7 - Solution

Lecture 10: Sequential Circuits

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

Topics of Chapter 5 Sequential Machines. Memory elements. Memory element terminology. Clock terminology

Digital Logic Design Sequential circuits

5 Combinatorial Components. 5.0 Full adder. Full subtractor

Digital Systems. Syllabus 8/18/2010 1

ANALOG & DIGITAL ELECTRONICS

2011, The McGraw-Hill Companies, Inc. Chapter 3

CHAPTER 11: Flip Flops

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

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

VENDING MACHINE. ECE261 Project Proposal Presentaion. Members: ZHANG,Yulin CHEN, Zhe ZHANG,Yanni ZHANG,Yayuan

Systems I: Computer Organization and Architecture

Sistemas Digitais I LESI - 2º ano

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute 5. LECTURE: REGISTERS AND RELATED

Modeling Sequential Elements with Verilog. Prof. Chien-Nan Liu TEL: ext: Sequential Circuit

Flip-Flops and Sequential Circuit Design. ECE 152A Winter 2012

Flip-Flops and Sequential Circuit Design

Academic year: 2015/2016 Code: IES s ECTS credits: 6. Field of study: Electronics and Telecommunications Specialty: -

Lecture-3 MEMORY: Development of Memory:

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

ENEE 244 (01**). Spring Homework 5. Due back in class on Friday, April 28.

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

CS311 Lecture: Sequential Circuits

Chapter 8. Sequential Circuits for Registers and Counters

Sequential Circuit Design

Asynchronous Counters. Asynchronous Counters

Register File, Finite State Machines & Hardware Control Language

Gates, Plexers, Decoders, Registers, Addition and Comparison

Combinational circuits

University of St. Thomas ENGR Digital Design 4 Credit Course Monday, Wednesday, Friday from 1:35 p.m. to 2:40 p.m. Lecture: Room OWS LL54

EXPERIMENT 8. Flip-Flops and Sequential Circuits

Chapter 2 Logic Gates and Introduction to Computer Architecture

A New Paradigm for Synchronous State Machine Design in Verilog

Modeling Registers and Counters

Systems I: Computer Organization and Architecture

Aims and Objectives. E 3.05 Digital System Design. Course Syllabus. Course Syllabus (1) Programmable Logic

Transcription:

CSEE 3827: Fundamentals of Computer Systems Midterm Eam March 9, 2 SOLUTIONS Read all of the following information before starting the eam: Be sure to write your name on each page of the eam. Use the eam itself for your solutions (no blue books or spare sheets of paper). You may use the backside of pages if you need more space. Show your work in order to earn partial credit. You may use your tetbook and class notes, but absolutely no electronic devices (laptops, cell phones, etc.) Good luck! Problem Point Value Points Earned 2 2 3 8 4 5 Total 5

. (2 points) Salt and pepper. (a) (2 points) Prove algebraically that BC + AB + AB = B. BC + AB + AB B(C + A + A) B(C + ) B() B (b) (4 points) raw a schematic for a minimal circuit that uses only and, or, and not gates that performs the two s complement operation on a four bit input value. Let the input be X 3: and the output be Y 3:. X 3 X 2 X X Y 3 Y 2 Y Y Y 3 = X 3 X 2 + X 3 X + X 3 X + X 3 X 2 X X Y 2 = X 2 X X + X X 2 + X X 2 Y = X X + X X Y = X Y3: X X Y2: X X Y: X X X3 X2 X3 X2 X3 X2 CSEE 3827 - Midterm Eam Page 2 of 8

(c) (2 points) Eamine the sequential circuit below. First, give a complete truth table, then describe conceptually what the circuit does. X Z Y X Y Z Z prev (hold) (reset) (set) (set) This is an RS latch, but instead of instability when both inputs are, this latch sets. (d) (4 points) esign a Moore machine robot controller which causes a robot to wave (output W = ) in 4% of the time (I.e,, in 4% of its states, any 4% will do) Implement this controller using flip-flops. W CSEE 3827 - Midterm Eam Page 3 of 8

2. ( points) esign a 32-bit ALU (arithmetic logic unit) which computes either +,,, of two 32-bit values A and B putting the result on 32-bit output C. You may assume the presence of eisting a 32-bit adder, subtractor, multiplier, and divider, and you may incorporate them in your design as black boes. The particular operation is controlled by an additional two bit input S, where NB: In addition to the arithmetic modules, you may incorporate mues, decoders, and other standard components as you find helpful. if S =, C = A + B if S =, C = A B if S =, C = A B if S =, C = A B (a) raw a schematic for your ALU design. (b) Give an epression for the propagation delay (T P ALU ) and contamination delay (T C ALU ) of your ALU, in terms of the propagation and contamination delays of the sub-modules. For eample, T P + is the propagation delay of the adder, and T C MUX is the contamination delay of a mu. A 32 B 32 + - * / S 2 32 C T P ALU = ma(t P +, T P, T P, T P ) + T P MUX T C ALU = min(t C +, T C, T C, T C ) + T C MUX CSEE 3827 - Midterm Eam Page 4 of 8

3. (8 points) Eamine the circuit below. Note that these flip-flops are negative, or falling, edge triggered. C X Y Z (a) Complete the following timing diagram. You may assume wires and gates have zero delay (i.e., all transitions are instantaneous), and that at the start X = Y = Z =. C X Y Z (b) escribe conceptually what this circuit does. This is a 3-bit up-counter. CSEE 3827 - Midterm Eam Page 5 of 8

4. ( points) Use flip-flops and basic combinational gates (AN, OR, NOT) to design the following counter/pseudorandom number generator. The circuit has a CLK and and one control input. It provides a three bit output indicating the numeric output N 2:. When =, the circuit should operate a binary up-counter. Otherwise, it should operate as a pseudorandom number generator according to the following function table. NB: While your design must use only the primitive elements listed above, it need not be minimal. Pre State Net State Binary Pseudorandom Up-Counter No. Gen. ( = ) ( = ) 5 2 6 2 3 4 3 4 4 5 3 5 6 6 7 7 7 2 7 6 5 2 4 3 (unlabeled edges transition on ) Use 8 flipflops, with a one hot state encoding (i.e., state i i ) Net state logic = 7 + 3 + = + 5 2 = + 7 3 = 2 + 4 4 = 3 + 2 5 = 4 + 6 = 5 + 7 = 6 + 6 Output logic N 2 = 4 + 5 + 6 + 7 N = 2 + 3 + 6 + 7 N = + 3 + 5 + 7 CSEE 3827 - Midterm Eam Page 6 of 8

5. ( points) Give a state transition diagram for a Message Transmission Controller Mealy Machine. Messages are broken into four packets for transmission, so sending a message amounts to sending packet, packet, packet 2, and packet 3. The sender must receive an acknowlegement of packet i before transmitting packet i +. NB: You need only provide the state transition diagram, no implementation necessary. The Message Transmission controller has the following interface: Inputs: MSG SEN: bit signal that initiates the transmission of the four packets that comprise the message PKT ACK: bit signal acknowledging receipt of the previous packet Outputs: PKT SEN: bit signal that initiates the transmission of a packet PKT I: 2 bits indicating which packet is to be MSG_SEN /, ACK /, ACK /, ACK /, ACK /, MSG_SEN /, 2 3 ACK /, ACK /, ACK /, 4 ACK /, (output code: PKT_SEN, PKT_I) CSEE 3827 - Midterm Eam Page 7 of 8

(Scratch space.) CSEE 3827 - Midterm Eam Page 8 of 8