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



Similar documents
Lecture 8: Synchronous Digital Systems

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

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

Binary Adders: Half Adders and Full Adders

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

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

Digital Electronics Detailed Outline

Systems I: Computer Organization and Architecture

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

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute. 2nd (Spring) term 2012/2013

CHAPTER IX REGISTER BLOCKS COUNTERS, SHIFT, AND ROTATE REGISTERS

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

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

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

Flip-Flops and Sequential Circuit Design

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

Counters & Shift Registers Chapter 8 of R.P Jain

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

Module 3: Floyd, Digital Fundamental

(Refer Slide Time: 00:01:16 min)

Engr354: Digital Logic Circuits

Asynchronous Counters. Asynchronous Counters

Digital Logic Design Sequential circuits

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

COMBINATIONAL CIRCUITS

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

Counters and Decoders

DESIGN OF GATE NETWORKS

L4: Sequential Building Blocks (Flip-flops, Latches and Registers)

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

ASYNCHRONOUS COUNTERS

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

Cascaded Counters. Page 1 BYU

Sistemas Digitais I LESI - 2º ano

Lesson 12 Sequential Circuits: Flip-Flops

Lecture 7: Clocking of VLSI Systems

Counters. Present State Next State A B A B

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

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

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

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

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

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

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

Digital Controller for Pedestrian Crossing and Traffic Lights

DIGITAL ELECTRONICS. Counters. By: Electrical Engineering Department

Memory Elements. Combinational logic cannot remember

Let s put together a Manual Processor

Understanding Logic Design

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

5 Combinatorial Components. 5.0 Full adder. Full subtractor

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

Sequential Logic: Clocks, Registers, etc.

ECE380 Digital Logic

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

Two-level logic using NAND gates

Today s topics. Digital Computers. More on binary. Binary Digits (Bits)

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

Combinational Logic Design Process

EE360: Digital Design I Course Syllabus

CSE140: Components and Design Techniques for Digital Systems

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

Contents COUNTER. Unit III- Counters

Design Verification & Testing Design for Testability and Scan

Chapter 2 Logic Gates and Introduction to Computer Architecture

Oct: 50 8 = 6 (r = 2) 6 8 = 0 (r = 6) Writing the remainders in reverse order we get: (50) 10 = (62) 8

Sequential Circuit Design

Today. Binary addition Representing negative numbers. Andrew H. Fagg: Embedded Real- Time Systems: Binary Arithmetic

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

State Machines in VHDL

DEPARTMENT OF INFORMATION TECHNLOGY

Two's Complement Adder/Subtractor Lab L03

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

Upon completion of unit 1.1, students will be able to

Binary full adder. 2-bit ripple-carry adder. CSE 370 Spring 2006 Introduction to Digital Design Lecture 12: Adders

2.0 Chapter Overview. 2.1 Boolean Algebra

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

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

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

Mixed Logic A B A B. 1. Ignore all bubbles on logic gates and inverters. This means

LAB #4 Sequential Logic, Latches, Flip-Flops, Shift Registers, and Counters

Design: a mod-8 Counter

Lecture-3 MEMORY: Development of Memory:

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

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

Lecture 10: Sequential Circuits

The components. E3: Digital electronics. Goals:

Gates, Circuits, and Boolean Algebra

Lecture 11: Sequential Circuit Design

Combinational Logic Design

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

Layout of Multiple Cells

Lecture 5: Gate Logic Logic Optimization

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

Sequential Logic Design Principles.Latches and Flip-Flops

ANALOG & DIGITAL ELECTRONICS

Chapter 5. Sequential Logic

CSE140 Homework #7 - Solution

CHAPTER 3 Boolean Algebra and Digital Logic

CSE140: Components and Design Techniques for Digital Systems

Transcription:

Your Name: SI Number: UNIVERSITY OF CALIFORNIA AT BERKELEY BERKELEY AVIS IRVINE LOS ANGELES RIVERSIE SAN IEGO SAN FRANCISCO epartment of Electrical Engineering and Computer Sciences SANTA BARBARA SANTA CRUZ CS 5 - Spring 998 Prof. A. R. Newton Prof. K. Pister uiz Solutions Room Evans Hall, :pm Tuesday April 7 th (Open Katz only, Calculators OK, hr mins) Include all final answers in locations indicated on these pages and in pen. Use space provided for all working. If necessary, attach additional sheets by staple at the end. BE SURE TO WRITE YOUR NAME ON EVERY SHEET.. (pts) (a) A digital system is required to amplify a binary-encoded audio signal. The user should be able to control the signal amplitude from minimum to maximum in increments. What is the minimum number of binary bits required to encode the user-specified amplitude? (b) Excess- code (Katz page 499) is a variation of binary-coded decimal (BC) code. Each decimal digit is represented by a 4-bit code that is three more than the associated BC code. For example, is encoded in excess- as, is encoded in excess- as, etc. esign a single-output combinational logic circuit that outputs a when the input to the circuit in 4-bit excess- code is a prime number. For all other (non-prime) legal 4-bit excess- numbers applied to the inputs, the output is a. Assume complement inputs are available and implement the circuit using: (i) One 6-input, four control-line multiplexer only. (ii) One 8-input, three control-line multiplexer only. (iii) One 4-input, two control-line multiplexer and a minimum number of simple logic gates (INV, NAN, NOR, AN, OR, XOR, XNOR). (a) (5pts) Number of bits = _ 6 =64 and 7 =8 so seven bits are required () / () / () /4 TOTAL /. (b) (i) (5pts) One 6-input MUX ecimal A B C Prime 4 5 6 7 8 9 4 5 6 7 8 9 4 5 A B C (additional space for solutions on reverse) prime uiz Page of 6 CS 5 - Sp. 98

. (b) (ii) (pts) One 8-input MUX 4 5 6 7 A B C prime. (b) (iii) (pts) One 4-input MUX and logic gates C A B prime Additional space for Problem CS 5 - Sp. 98 Page of 6 uiz

Your Name: () ( points) (a) What is the better way to implement arithmetic in a binary computer: one's-complement or two's-complement? Why? Include all of the arguments you can think of for and against your answer. (b) oes the state-machine opposite have any equivalent states? If so, which states are equivalent? Show all working. (c) esign a 4-bit ripple up-counter using positive edgetriggered flip flops and a minimum number of combinational logic gates. Show the schematic diagram. / a / / c d / / b / / / (a) (pts) One's or two's complement? Why? 's complement + easier to do addition and subtraction (sum of -ve #s) (can be done in one byte-serial pass) + single representation for - must add for making -ve #s (continue on reverse if necessary) (b) (pts) Equivalent states: a = b b c d a a c c X a b a c X a b a c X a b c (additional space for solutions on reverse) uiz Page of 6 CS 5 - Sp. 98

.(c) (pts) 4-bit ripple up-counter CLK Additional space for Problem CS 5 - Sp. 98 Page 4 of 6 uiz

Your Name:. (4 pts) esign a Moore machine that detects the number 9 encoded in binary ( ) and in excess- ( ). The machine should reset after each detection (i.e. overlapping sequences are ignored). Sample input (X) and output (Z) sequences are given below: X= Z= (a) raw a state transition diagram for the Moore machine. (b) Use an implication table to determine if any states are equivalent. If so, list the equivalent states and then redraw your (now minimized) state diagram. (c) Using flip-flops and the state-assignment rules discussed in class, indicate all adjacency constraints for an optimal state encoding and determine an optimal encoding, listing the state codes for each state in the machine. (d) Write equations for the next-state logic only (not the output logic) using a minimal NOR-NOR two-level representation.. (a) (pts) State transition graph: Original After reduction (if changed) One answer (framed) S S S S 4 S S 5 S 6 No change. (b) (5pts) Implication table: normal table with no equivalent states (5pts) Equivalent States: None (additional space for solutions on reverse) uiz Page 5 of 6 CS 5 - Sp. 98

. (c) (5pts) Adjacency constraints: Rule : {S, S, S 6 },{S, S 4, S 5 }, {S, S 6 } Rule {S, S },{S, S 4 }, {S, S },{S, S 6 }, {S, S 5 } Rule : {S, S, S, S, S 4, S 5 } (5 pts) Optimal state assignment (show Karnaugh map) B C A 4 S 6 S 5 S 5 7 B S S S S 4 6 C State codes: S =, S =, S =, S =, S 4 =, S 5 =, S 6 =. (d) (pts) Next-state logic in NOR-NOR form (equations only!): A = ( B + C ) + ( C + X) + ( B + C ) + ( A + C ) = + X ) + ( + ) + ( + X ) + ( + + ) B ( A A B A A B C = ( + ) + ( + X ) + ( X ) C A B B C + Additional space for Problem CS 5 - Sp. 98 Page 6 of 6 uiz