Section CS or IT (circle one)

Similar documents
Module 3: Floyd, Digital Fundamental

Asynchronous Counters. Asynchronous Counters

DIGITAL ELECTRONICS. Counters. By: Electrical Engineering Department

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

RAM & ROM Based Digital Design. ECE 152A Winter 2012

Lecture 8: Synchronous Digital Systems

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

Digital Logic Design Sequential circuits

Chapter 9 Latches, Flip-Flops, and Timers

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

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

Counters and Decoders

Contents COUNTER. Unit III- Counters

Memory Elements. Combinational logic cannot remember

CHAPTER 11 LATCHES AND FLIP-FLOPS

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

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

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

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

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

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

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

Fig1-1 2-bit asynchronous counter

Engr354: Digital Logic Circuits

BINARY CODED DECIMAL: B.C.D.

Counters. Present State Next State A B A B

Counters & Shift Registers Chapter 8 of R.P Jain

ECE380 Digital Logic

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

Flip-Flops and Sequential Circuit Design

Sequential Logic Design Principles.Latches and Flip-Flops

Chapter 8. Sequential Circuits for Registers and Counters

Upon completion of unit 1.1, students will be able to

Modeling Latches and Flip-flops

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

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

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

Asynchronous counters, except for the first block, work independently from a system clock.

ASYNCHRONOUS COUNTERS

Theory of Logic Circuits. Laboratory manual. Exercise 3

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

Copyright Peter R. Rony All rights reserved.

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

Sequential Circuit Design

CHAPTER IX REGISTER BLOCKS COUNTERS, SHIFT, AND ROTATE REGISTERS

Homework # 2. Solutions. 4.1 What are the differences among sequential access, direct access, and random access?

Lecture-3 MEMORY: Development of Memory:

Microprocessor & Assembly Language

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

Digital Fundamentals. Lab 8 Asynchronous Counter Applications

Cascaded Counters. Page 1 BYU

Registers & Counters

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

Lesson 12 Sequential Circuits: Flip-Flops

Napier University. School of Engineering. Electronic Engineering A Module: SE42205 Digital Design

Chapter 5 :: Memory and Logic Arrays

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

Chapter 7 Memory and Programmable Logic

The components. E3: Digital electronics. Goals:

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

Digital Electronics Detailed Outline

Interfacing To Alphanumeric Displays

7. Latches and Flip-Flops

DEPARTMENT OF INFORMATION TECHNLOGY

CS311 Lecture: Sequential Circuits

Memory Basics. SRAM/DRAM Basics

2 : BISTABLES. In this Chapter, you will find out about bistables which are the fundamental building blocks of electronic counting circuits.

Computers. Hardware. The Central Processing Unit (CPU) CMPT 125: Lecture 1: Understanding the Computer

NOT COPY DO NOT COPY DO NOT COPY DO NOT COPY DO NOT COPY DO NOT COPY

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

CHAPTER 3 Boolean Algebra and Digital Logic

CHAPTER 11: Flip Flops

NOTE: The Flatpak version has the same pinouts (Connection Diagram) as the Dual In-Line Package.

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

SN54/74LS192 SN54/74LS193

Digital Fundamentals

Sequential Logic: Clocks, Registers, etc.

We r e going to play Final (exam) Jeopardy! "Answers:" "Questions:" - 1 -

EC313 - VHDL State Machine Example

8254 PROGRAMMABLE INTERVAL TIMER

Counters. Resources and methods for learning about these subjects (list a few here, in preparation for your research):

Technical Note. Micron NAND Flash Controller via Xilinx Spartan -3 FPGA. Overview. TN-29-06: NAND Flash Controller on Spartan-3 Overview

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

Module 2. Embedded Processors and Memory. Version 2 EE IIT, Kharagpur 1

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

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

Lab 1: Study of Gates & Flip-flops

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

CpE358/CS381. Switching Theory and Logical Design. Class 10

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

EXPERIMENT 8. Flip-Flops and Sequential Circuits

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

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

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

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

GETTING STARTED WITH PROGRAMMABLE LOGIC DEVICES, THE 16V8 AND 20V8

DATA SHEETS DE COMPONENTES DA FAMÍLIA LÓGICA TTL GATES AND INVERTERS POSITIVES NAND GATES AND INVERTERS DESCRIÇÃO

Lecture 12: More on Registers, Multiplexers, Decoders, Comparators and Wot- Nots

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

Transcription:

Sirindhorn International Institute of Technology Thammasat University at Rangsit School of Information, Computer and Communication Technology ECS37: Practice Problems for the Final Examination COURSE : ECS37 (Digital Circuits) DATE : October, 2009 SEMESTER : /2009 INSTRUCTOR : Dr. Prapun Suksompong TIME : 3:30-6:30 PLACE : BKD 32XX Name Section CS or IT (circle one) ID Seat Instructions:. Including this cover page, this exam has 2 pages. 2. Read the questions carefully. 3. Write your first name and ID on each page of your examination paper. 4. Write all your work in the space provided. You may not get full credit even when your answer is right without all of your work written down. 5. Closed book. Closed notes. No calculator. 6. Allocate your time wisely. 7. Do not cheat. The use of communication devices including mobile phones is prohibited in the examination room. 8. Your scores will depend strongly on the clarity and completeness of your solutions. 9. Do not panic. 0. Dr. Prapun will visit each exam room regularly. In general, there is no need to ask the proctor to call for Dr. Prapun.

The full score for this exam is XXX. Part A: TRUE/FALSE. Write 'T' if the statement is true and 'F' if the statement is false. If the statement is false, explain why. Put your answers/explanations in the table given below. (x pt). A latch has two stable states. 2. A latch is considered to be in the SET state when the Q output is LOW. 3. A gated D latch must be enabled in order to change state. 4. An edge-triggered D flip-flop changes state whenever the D input changes. 5. A clock input is necessary for an edge-triggered flip-flop. 6. When both the J and K inputs are HIGH, an edge-triggered J-K flip-flop changes state on each clock pulse. 7. In an asynchronous counter, all flip-flops change state at the same time. 8. In a synchronous counter, all flip-flops are clocked simultaneously. 9. An asynchronous counter is also known as a ripple counter. 0. A decade counter has sixteen states.. Two cascaded decade counters divide the clock frequency by 20. 2. A counter with a truncated sequence has less than its maximum number of states. 3. To achieve a modulus of 00, ten decade counters are required. 4. Shift registers consist of an arrangement of flip-flops. 5. Two functions of a shift register are data storage and data movement. 6. In a serial shift register, several data bits are entered at the same time. 7. All shift registers are defined by specified sequences. 8. A shift register can have both parallel and serial outputs. 9. A data byte consists of eight bits. 20. A memory cell can store a byte of data. 2. The write operation stores data in memory. 22. The read operation always erases the data byte. 23. RAM is a random address memory. 24. Stored data is lost if power is removed from a static RAM. 25. Dynamic RAMs must be-periodically refreshed to retain data. 26. ROM is a random output memory. 27. The Nyquist frequency is twice the sampling frequency 28. A higher sampling rate is more accurate than a lower sampling rate for a given analog signal Question T/F Explanation Page 2 of 2

Part B: MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question. Put your answers in the table given below. (X pt) 29. If an S-R latch has a on the S input and a 0 on the R input and then the S input goes to 0, the latch will be (a) set (b) reset (c) invalid (d) clear 30. The invalid state of an S-R latch occurs when (a) S =, R = 0 (b) S = 0, R = (c) S =, R = (d) S = 0, R = 0 3. The purpose of the clock input to a flip-flop is to (a) clear the device (b) set the device (c) always cause the output to change states (d) cause the output to assume a state dependent on the controlling (S-R, J-K, or D) inputs. 32. For an edge-triggered D flip-flop, (a) a change in the state of the flip-flop can occur only at a clock pulse edge (b) the state that the flip-flop goes to depends on the D input (c) the output follows the input at each clock pulse (d) all of these answers 33. A feature that distinguishes the J-K flip-flop from the S-R flip-flop is the (a) toggle condition (b) preset input (c) type of clock (d) clear input 34. A J-K flip-flop with J = and K = has a 0 khz clock input. The Q output is (a) constantly HIGH (b) constantly LOW (c) a 0 khz square wave (d) a 5 khz square wave 35. Asynchronous counters are known as (a) ripple counters (b) multiple clock counters (c) decade counters (d) modulus counters 36. An asynchronous counter differs from a synchronous counter in (a) the number of states in its sequence (b) the method of clocking (c) the type of flip-flops used (d) the value of the modulus 37. The modulus of a counter is (a) the number of flip-flops (b) the actual number of states in its sequence (c) the number of times it recycles in a second (d) the maximum possible number of states 38. A 3-bit binary counter has a maximum modulus of (a) 3 (b) 6 (c) 8 (d) 6 39. A 4-bit binary counter has a maximum modulus of (a) 6 (b) 32 (c) 8 (d) 4 40. A modulus-2 counter must have (a) 2 flip-flops (b) 3 flip-flops (c) 4 flip-flops (d) synchronous clocking Page 3 of 2

4. Which one of the following is an example of a counter with a truncated modulus? (a) Modulus 8 (b) Modulus 4 (c) Modulus 6 (d) Modulus 32 42. A BCD counter is an example of (a) a full-modulus counter (b) a decade counter (c) a truncated-modulus counter (d) answers (b) and (c) 43. Three cascaded modulus-0 counters have an overall modulus of (a) 30 (c) 000 (b) 00 (d) 0,000 44. The group of bits 000 is serially shifted (right-most bit first) into an 8-bit parallel output shift register with an initial state of J 0000. After two clock pulses, the register contains (a) 000 (e) 000 (b) 000 (d) 0000 45. The bit capacity of a memory that has 024 addresses and can store 8 bits at each address is (a) 024 (b) 892 (c) 8 (d) 4096 46. Data are stored in a random-access memory (RAM) during the (a) read operation (b) enable operation (c) write operation (d) addressing operation 47. Data that are stored at a given address in a random-access memory (RAM) is lost when (a) power goes off (b) the data are read from the address (c) new data are written at the address (d) answers (a) and (c) 48. A ROM is a (a) nonvolatile memory (b) volatile memory (c) read/write memory (d) byte-organized memory 49. A memory with 256 addresses has (a) 256 address lines (b) 6 address lines (c) address line (d) 8 address lines 50. A byte-organized memory has (a) I data output line (b) 4 data output lines (c) 8 data output lines (d) 6 data output lines 5. A DRAM must be (a) replaced periodically (b) refreshed periodically (c) always enabled (d) programmed before each use 52. VHDL is a type of (a) programmable logic (c) programmable array (b) hardware description language (d) logical mathematics Page 4 of 2

53. In VHDL, a port is (a) a type of entity (b) an input or output (c) a type of architecture (d) a type of variable 54. A VHDL component (a) can be used once in each program (b) is a predefined description of a logic function (c) can be used multiple times in a program (d) is part of a data flow description (e) answers (b) and (c) 55. A VHDL component is called for use in a program by using a (a) signal (b) variable (c) component instantiation (d) architecture declaration Question Answer 29 Page 5 of 2

Part C 56. If the following waveforms are applied to an active-low S-R latch, draw the resulting Q output waveform in relation to the inputs. Assume the Q starts LOW. 57. For a gated S-R latch, draw the resulting Q output waveform in relation to the inputs. Assume the Q starts LOW. 58. How can a latch be used as a contact-bounce eliminator? 59. Draw the Q output relative to the clock for a D flip-flop with the inputs as shown in the following figure. Assume positive edge-triggering and Q initially LOW. 60. Determine the Q waveform relative to the clock of the signals shown below are applied to the inputs of the J-K flip-flop. Assume the Q is initially LOW. 6. What are the differences between synchronous and asynchronous counters? 62. Determine the output wave form of the following counter. Page 6 of 2

Assume that the Q start with LOW vale. Will there be any glitches on the output? Why and where would them be? Explain. 63. Show how to connect a 74LS93 4-bit asynchronous counter for each of the following moduli. a. 9 b. c. 3 d. 4 e. 5 64. Determine the state diagram of the following counter 65. Determine the state diagram of the following counter Page 7 of 2

HIGH Q 0 J 0 Q 0 Q Q 0 Q J Q J 2 2 C C C K 0 K K 2 CLK 66. Determine the state diagram of the following counter. Q is the MSB. D 0 Q 0 CLK C Q 0 D Q C 67. Determine the state diagram of the following counter. Q is the MSB. Q J 0 Q 0 CLK C K 0 Q 0 J Q C K Q 68. Excitation Table: a. Write down the excitation table for J-K flip-flop. b. Explain how this table is constructed. c. Explain how this table can be used to simplify your logic design. 69. Construct a D flip-flop from a J-K flip-flop. You may use additional AND, OR, NOT gates. 70. Design a counter to produce the following sequence. Use J-K flip-flops. 00, 0, 0,, 00, 7. What will this counter do? Page 8 of 2

72. What will this counter do? (Difficult) Q2 Q3 7 CLK NOT OR2 3 9 INPUT VCC 7463 LDN A B C D ENT ENP CLRN CLK COUNTER QA QB QC QD RCO Q0 Q Q2 Q3 NAND2 NAND3 7 NOT 8 OUTPUT 4 LD OUTPUT 0 Q[3..0] 8 VCC 2 GND 73. Counter Design: a. Construct a counter whose counting sequence satisfies the state transition diagram below. Use D FFs. 0 3 b. Find the complete state transition diagram (which includes all states) for the counter you constructed in part (a). c. Draw the waveforms of the outputs from the counter you constructed in part (a). Assume 0 is the initial state. Provide at least 6 clock periods. d. Repeat part (a) but use J-K FFs. e. Construct the counter as in part (a). There should be a count enable (CTEN) input as well. f. Construct the counter as in part (d). There should be a count enable (CTEN) input as well. 74. Design a state machine which simultaneously satisfies all of the following requirements: a) Have one-bit input signal called W. b) Have one-bit output signal called Y. c) The counting sequence agrees with the following state diagram: Page 9 of 2

0 0 0 The numbers on the arrows indicate the values of W. d) Use exactly one D flip-flop. e) Additional AND, OR, NOT gates are allowed. 75. Design a state machine which simultaneously satisfies all of the following requirements: a) Have one-bit input signal called W. b) Have four-bit output signals called Y 3 Y 2 Y and Y 0. Y 3 is the MSB. c) The counting sequence agrees with the following state diagram: 3 The numbers on the arrows indicate the values of W. d) The output is simply the unsigned binary representation of the state in the state transition diagram. e) Use exactly one D flip-flop. f) Additional AND, OR, NOT gates are allowed. 76. Design a counter which simultaneously satisfies all of the following requirements: a) Have no input signal. b) Have two-bit output signals called Y and Y 0. Y is the MSB. c) The counting sequence agrees with the following state diagram: 0 0 0 2 3 d) Use exactly one D flip-flop and one J-K flip-flop. e) The counter output Y 0 is the output of the J-K flip-flop. f) The counter output Y is the output of the D flip-flop. g) No additional gate allowed. 77. Compare and contrast SRAM and DRAM. 78. What is address multiplexing in DRAM? Why is it useful? 79. Compare and contrast RAM and ROM. Page 0 of 2

80. Compare and contrast word-length memory expansion and word-capacity memory expansion. 8. Show how to construct one 65536 x 8 ROM from two 65536 x 4 ROMs. 82. The starting point for the CD s data spiral is towards the center of the disc, extending outward. What are the advantages of this format? 83. To convert analog signals to digital ones, there are two important steps. They are ) and 2). 84. Analog signals (sound, image, etc) usually contain a spectrum of component frequencies. Periodic signal can be expressed in terms of its components via. In general, signal can be expressed in terms of its components via. 85. If you've ever watched a film and seen the wheel of a rolling wagon appear to be going backwards, you've witnessed. 86. The Nyquist frequency is defined as. 87. Sampling: sin 200 t? a. What is the frequency of the signal b. To avoid aliasing, the sampling theorem says that the sampling rate should be c. Which one(s) of the following sampling rate will experience problem with aliasing for the signal in part (a)? i. 0 Hz ii. 20 Hz iii. 00 Hz iv. 000 Hz v. 0000 Hz 88. Given the following VHDL program, create the truth table that describes the logic circuit. Page of 2

89. Check the VHDL code below. It is a VHDL program for the following circuit. Fix the missing parts. Page 2 of 2