A computer based teaching program for the design and analysis of digital counter circuits

Similar documents
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.

ELCT201: DIGITAL LOGIC DESIGN

Sequential Digital Design. Laboratory Manual. Experiment #3. Flip Flop Storage Elements

ELCT201: DIGITAL LOGIC DESIGN

Other Flip-Flops. Lecture 27 1

CPS311 Lecture: Sequential Circuits

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

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

EE292: Fundamentals of ECE

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

ME 515 Mechatronics. Introduction to Digital Electronics

CHAPTER 4: Logic Circuits

Lecture 11: Synchronous Sequential Logic

Lecture 8: Sequential Logic

Chapter. Synchronous Sequential Circuits

North Shore Community College

CPE 200L LABORATORY 3: SEQUENTIAL LOGIC CIRCUITS UNIVERSITY OF NEVADA, LAS VEGAS GOALS: BACKGROUND: SR FLIP-FLOP/LATCH

Rangkaian Sekuensial. Flip-flop

CSE Latches and Flip-flops Dr. Izadi. NOR gate property: A B Z Cross coupled NOR gates: S M S R Q M

ECE 341. Lecture # 2

Asynchronous (Ripple) Counters

Experiment 8 Introduction to Latches and Flip-Flops and registers

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

CS 261 Fall Mike Lam, Professor. Sequential Circuits

Chapter 3. Boolean Algebra and Digital Logic

ELCT201: DIGITAL LOGIC DESIGN

Unit 11. Latches and Flip-Flops

Electrical and Telecommunications Engineering Technology_TCET3122/TC520. NEW YORK CITY COLLEGE OF TECHNOLOGY The City University of New York

Computer Systems Architecture

REPEAT EXAMINATIONS 2002

DIGITAL SYSTEM DESIGN UNIT I (2 MARKS)

Introduction to Sequential Circuits

CHAPTER 4: Logic Circuits

Unit-5 Sequential Circuits - 1

A clock is a free-running signal with a cycle time. A clock may be either high or low, and alternates between the two states.

Chapter 8 Sequential Circuits

To design a sequential logic circuit using D-Flip-flop. To implement the designed circuit.

UNIT IV. Sequential circuit

A Matlab-Based Teaching Tool for Digital Logic

EMT 125 Digital Electronic Principles I CHAPTER 6 : FLIP-FLOP

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

Using minterms, m-notation / decimal notation Sum = Cout = Using maxterms, M-notation Sum = Cout =

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

Sequential Logic Notes

Digital Electronics Course Outline

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

MC9211 Computer Organization

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

Chapter 4. Logic Design

Logic Design ( Part 3) Sequential Logic- Finite State Machines (Chapter 3)

Sequential Logic. Analysis and Synthesis. Joseph Cavahagh Santa Clara University. r & Francis. TaylonSi Francis Group. , Boca.Raton London New York \

Integration of Virtual Instrumentation into a Compressed Electricity and Electronic Curriculum

Find the equivalent decimal value for the given value Other number system to decimal ( Sample)

Synchronous Sequential Logic

Minnesota State College Southeast

Synchronous Sequential Logic

We are here. Assembly Language. Processors Arithmetic Logic Units. Finite State Machines. Circuits Gates. Transistors

Part II. Chapter2: Synchronous Sequential Logic

Chapter 5 Synchronous Sequential Logic

Name Of The Experiment: Sequential circuit design Latch, Flip-flop and Registers

CS61C : Machine Structures

First Name Last Name November 10, 2009 CS-343 Exam 2

PLTW Engineering Digital Electronics Course Outline

DIGITAL SYSTEM FUNDAMENTALS (ECE421) DIGITAL ELECTRONICS FUNDAMENTAL (ECE422) LATCHES and FLIP-FLOPS

Course Plan. Course Articulation Matrix: Mapping of Course Outcomes (COs) with Program Outcomes (POs) PSO-1 PSO-2

D Latch (Transparent Latch)

Combinational / Sequential Logic

PHYSICS 5620 LAB 9 Basic Digital Circuits and Flip-Flops

UNIT 1: DIGITAL LOGICAL CIRCUITS What is Digital Computer? OR Explain the block diagram of digital computers.

(CSC-3501) Lecture 7 (07 Feb 2008) Seung-Jong Park (Jay) CSC S.J. Park. Announcement

Synchronous Sequential Logic

Semester III. Subject Name: Digital Electronics. Subject Code: 09CT0301. Diploma Branches in which this subject is offered: Computer Engineering

CS8803: Advanced Digital Design for Embedded Hardware

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

Combinational vs Sequential

Course Administration

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING

SEMESTER ONE EXAMINATIONS 2002

RS flip-flop using NOR gate

Chapter 5: Synchronous Sequential Logic

COE328 Course Outline. Fall 2007

Altera s Max+plus II Tutorial

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.

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

Logic Design. Flip Flops, Registers and Counters

Department of Electrical and Computer Engineering Mid-Term Examination Winter 2012

IS1500 (not part of IS1200) Logic Design Lab (LD-Lab)

Introduction to Digital Logic Missouri S&T University CPE 2210 Exam 2 Logistics

An Introduction to Digital Logic

cs281: Introduction to Computer Systems Lab07 - Sequential Circuits II: Ant Brain

INTRODUCTION TO SEQUENTIAL CIRCUITS

RS flip-flop using NOR gate

DIGITAL CIRCUIT COMBINATORIAL LOGIC

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


AM AM AM AM PM PM PM

UNIVERSITY OF MASSACHUSSETS LOWELL Department of Electrical & Computer Engineering Course Syllabus for Logic Design Fall 2013

Today 3/8/11 Lecture 8 Sequential Logic, Clocks, and Displays

Flip-Flops. Because of this the state of the latch may keep changing in circuits with feedback as long as the clock pulse remains active.

Contents Circuits... 1

Transcription:

A computer based teaching program for the design and analysis of digital counter circuits Author Hacker, Charles, Sitte, Renate Published 2000 Conference Title 3rd Annual UNESCO International Conference on Engineering Education Copyright Statement 2000 UNESCO International Centre for Engineering Education (UICEE). Use hypertext link to access the publisher's webpage. The attached file is reproduced here in accordance with the copyright policy of the publisher. Downloaded from http://hdl.handle.net/10072/1198 Link to published version http://en.unesco.org/ Griffith Research Online https://research-repository.griffith.edu.au

3 rd UICEE Annual Conference on Engineering Education 2000 UICEE Hobart, Australia, 9-12 February, 2000 A computer based teaching program for the design and analysis of digital counter circuits Charles Hacker * & Renate Sitte *School of Engineering, C.Hacker@mailbox.gu.edu.au School of Information Technology, R.Sitte@mailbox.gu.edu.au Griffith University, Gold Coast Campus, Qld, Australia. ABSTRACT: Digital Flip-Flop counters are widely used for control logic applications, such as timers, clocks, remote controls, and process controllers. Flip-flop circuits are standard memory elements, and form the basis of sequential digital circuits. The teaching of sequential digital logic is core in the curriculum of many university digital electronic subjects. Students in first year digital electronic subjects often have difficulties grasping the theoretical concepts in the design and analysis of Flip-Flop counter circuits. This has prompted the author to developed a Microsoft Windows TM compatible software, WinCounter, that provides a tutorial style teaching aid for undergraduate students in understanding the mechanisms of digital counter design. The animated computer screen of the MS-Windows environment is ideal for visually conveying the required design and analysis procedures, allowing students to better visualise the techniques. The software was developed for both lecture demonstration and for students educational use, allowing students to study privately at their own pace. The software has been utilised in a digital electronic subject lectured by the author, and student feedback has indicated the software was educationally useful and INTRODUCTION Flip-Flop counter circuits form the fundamental digital electronic components of most logic control applications. Examples of the types of systems that use digital counter circuits are: electronic timers, electronic clocks, remote controls, and industrial process controllers. Flip-flop circuits are digital electronic components that are standard memory elements. They are utilised in computer RAM circuits, and other data storage circuits. Counter circuits also require memory elements, to store the current counter state. Counter circuits thus use flip-flop circuits for this task. The study of digital electronics covers the two broad areas of combinatorial logic (circuits with no memory) and sequential logic (circuits with memory). Teaching combinatorial and sequential digital logic circuits are part of the core in the curriculum of many university digital electronic subjects. Students in first year digital electronic subjects often have difficulties grasping the theoretical concepts in the design and analysis of sequential Flip-Flop counter circuits. This has prompted the author to developed a Microsoft Windows TM compatible software, WinCounter, that provides a tutorial style teaching aid for undergraduate students in understanding the mechanisms of digital counter design. The animated computer screen of Microsoft Windows provides an easy to use, user friendly, environment that is ideal for visually conveying the required design and analysis procedures, allowing students to better visualise the techniques. The software was developed for both lecture demonstration and for students personal use. During lecture demonstrations detailed intricate explanations are necessary to sufficiently convey the design and analysis strategies. During the explanation, it is easy for students to become confused and bewildered in the barrage of new information and technical terms. The designed software s animated output is ideal for anticipating possible confusion in the explanation, allowing students to observe the strategies during the explanation. The software was also intend for students personal use, providing the ability for a student to design and analyse their own counter circuit. This allows students to study the design and analysis procedures privately, at their own pace. The Flip-Flop counter software complements other software previously developed by the author, for the design and analysis of combinatorial digital logic circuits. The existing software provides a tutorial that covers the design and analysis of Boolean Algebra (Hacker & Sitte, 1997; Hacker & Sitte, 1998), and the logic minimisation (Hacker & Sitte, 1999). The Flip-flop counter software enhances the educational use of the existing combinatorial logic teaching package, by extending the existing software to include memory sequential circuits. DIGITAL CIRCUITS A digital counter utilises Flip-Flop circuits to store the current state of the counter. Digital counters therefore usually form the functional hardware of a Finite State Machine. A finite state machine are abstract models of machines with a primitive internal memory. Each state of the finite state machine is a specific set of values stored in the memory elements, and represents the condition or state the machine current resides.

A finite state machine can be represented in tabular form, which is referred to as a State Transition Table. This table lists the Present State, Control Logic inputs, and the Next State. (An example of which is shown in Figure 2). The finite state machine can also be represented as a directed inter-connected diagram, referred to as a State Transition Diagram. The diagram consists of nodes, which in this case are the counter states, which are linked with arrows to the next counter state. An example of a State Transition Diagram, that have hexadecimal (0 to F) values for the states, is shown in Figure 8. When designing the flip-flop counter, the user is prompted to input the desired counter sequence, and the modes for the flipflop elements, (for example Data or Toggle mode). This determines the present and next state values for the State Transition Table. The control functions required to transition the counter from the present state to the desired next state is then determined by the program. An example of this State Transition Table screen is shown in Figure 2. The digital counter (finite state machine) transitions to a new state depending on the current state and the next state function. This provides for an orderly reproducible path through the counter states. The next state function is provided by digital logic decoding of the current state values. Thus standard logic gates, (AND, OR, NAND, NOR, etc.) are used for the decoding. Boolean Algebra and gate minimisation techniques are utilised in the determining the required logic gates to achieve the Next State decoding. The Flip-Flop memory circuits can be wired in a number of modes. These modes are; Data mode, Toggle mode, and JK mode. The Data mode is more commonly used in data storage applications, such as RAM circuits. The Toggle mode is commonly used in counter applications, where transitions are frequent. The JK mode can be switched between the Data and Toggle modes. A counter circuit can utilise a Flip-Flop that is wired in any of these modes, and hence the software allows for this. DESIGNED SOFTWARE The software provides an interactive tutorial for both the design of a flip-flop digital counter, and for the analysis of a flip-flop digital counter. The design is achieved by the user input of a count sequence, while the analysis is performed on a user input counter circuit. The flow diagram of the software structure is shown in Figure 1. The remaining figures in this paper are presented in the order of the WinCounter software flow diagram sequence. MAIN SCREEN Figure 2: State Transition Table Input The digital logic required to implement the control functions is then determined by Boolean logic simplification. The software performs the simplification by the Karnaugh Map technique, which results in the final digital logic functions to implement the next state functions. This simplification technique is shown in Figure 3. A student may be requested to analyse an existing counter circuits operation, in addition to designing a counter circuit. In this case a student may actually be presented with a counter circuit, and be requested to determine the count sequence that results from this circuit. The software is thus designed to perform this analysis, from an initial user input counter circuit. INPUT CIRCUIT INPUT SEQUENCE BOOLEAN FUNCTION STATE TABLE DESIGN VIA K-MAPS CIRCUIT STATE DIAGRAM Figure 1: Flow diagram of the Counter Software Figure 3: K-Map Simplification of the Next Sate Function

The Boolean functions determined by the K-Map simplification represent the logic gates required to implement the Next State decoder functions. The Next State decoder logic has inputs of the Present State, which is derived from the flip-flop memory outputs. The final counter circuit diagram is then produced. An example of this is shown in Figure 4. The software will then use the Next State Decoder Boolean functions, to determine the control functions that directly controls the Next State value from the Present State value. The software displays this output in the State Transition table, which is shown in Figure 7. Figure 4: Final designed circuit to implement the counter Figure 6: The Next State Decoder Boolean Functions The user enters a counter circuit in the analysis screen. To achieve this the top menu toolbar offers logic gate types for selection, that can be placed in the circuit at any desired user location. A wire toolbar button can then be selected, to wire the logic gates in any user desired arrangement. An example of a user input counter circuit diagram is shown in Figure 5. Figure 7: The State Transition Table of the input Circuit Figure 5: User input Counter circuit for Analysis Once the circuit is input, the user can request the software to determine the Boolean logic of the Next State decoder function. An example of the software output of the Next State decoder Boolean functions are shown in Figure 6. To complete the analysis of the input counter circuit, the final count sequence is determined. The software extracts the Present State values, and the associated Next State values from the State Transition Table, and uses this information to derive the State Transition Diagram. This State Transition Diagram succinctly displays the count sequence that will be performed by the input counter circuit. An example State Transition Diagram output is shown in Figure 8. PROGRAM EVALUATION Investigations into the educational use of the software was undertaken by incorporating the software as part of the digital electronics curriculum in a second year subject. The software enabled the students to quickly obtain digital counter circuits for laboratory testing, and provided the answers to tutorial

problems by supplying the full design steps. CONCLUSION This paper outlined the development of a computer based tutorial for design and analysis of flip-flop digital counters. The software s graphical interface performs the design of a flip-flop counter, to achieve some user defined count/logic sequence. The software also allows the direct input of a flipflop counter circuit, which is then fully analysed to determine the counters operation. The graphical screen of MS-Windows allows input and output of data that closely match the students initial understanding of digital counter circuits. The software has been utilised in a digital electronic subject lectured by the author, and student feedback has indicated the software was educationally useful and conveyed the desired information. Figure 8: Final State Transition Diagram Continuous feedback was given by the students throughout the subject, and a final evaluation questionnaire was administered. The evaluation revealed; that the students agreed the program was educationally useful for tutorial, laboratories, and examinations. The students were either neutral or in agreement that the software was easy to use, and user friendly. The best features of the software were stated by the students as; the software allowed for easy design of digital counter circuits, it was a good study aid, and that results/outputs could be easily copied to other applications (such as word processing documents). The students suggested improvements were to allow an option for the circuits to snap to a grid, to extend the current copy-toclipboard menu option to allow for coping all displayed outputs and pasting into other files (such as student assignments), and to improve the general user friendliness of the program. REFERENCES 1. Hacker, C. and Sitte, R., A Computer Based Tutorial, for demonstrating the Solving of Digital Electronic Circuits, Proceedings of the 10th Annual Australasian Association for Engineering Education (AaeE98), Waves of Change, September 1998, pp. 509-519, 1998 2. Hacker, C. and Sitte, R., Development of a computer program, to electronically design Digital Logic Circuits using Boolean Algebra, Proceedings of the 9th Annual Australasian Association for Engineering Education (AaeE97), December 1997, pp. 353-357, 1997 3. Hacker, C. and Sitte, R., Implementing the Espresso - two level logic minimiser algorithm in the MS-Windows environment, 2 nd Asia-Pacific Forum on Engineering & Technology Education, UNESCO International Conference in Engineering Education (UICEE99), July 1999, pp. 124-127, 1999