1 Neutron Monitor Workshop 2(A): Principles of Digital Logic Mahidol University June 25, 2009 Paul Evenson University of Delaware Bartol Research Institute.

Slides:



Advertisements
Similar presentations
Logical Design.
Advertisements

COE 202: Digital Logic Design Sequential Circuits Part 1 Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office: Ahmad Almulhem, KFUPM.
ECE C03 Lecture 81 Lecture 8 Memory Elements and Clocking Hai Zhou ECE 303 Advanced Digital Design Spring 2002.
Digital Design - Sequential Logic Design Chapter 3 - Sequential Logic Design.
Storey: Electrical & Electronic Systems © Pearson Education Limited 2004 OHT 10.1 Sequential Logic  Introduction  Bistables  Memory Registers  Shift.
CHAPTER 3 Sequential Logic/ Circuits.  Concept of Sequential Logic  Latch and Flip-flops (FFs)  Shift Registers and Application  Counters (Types,
Digital Logic Chapter 5 Presented by Prof Tim Johnson
Flip-Flops and Related Devices Wen-Hung Liao, Ph.D.
EKT 124 / 3 DIGITAL ELEKTRONIC 1
LOGIC GATES ADDERS FLIP-FLOPS REGISTERS Digital Electronics Mark Neil - Microprocessor Course 1.
The Map Method Boolean expressions may be simplified by algebraic means as discussed in Previous lecture However, this procedure of minimization is awkward.
Chapter 4 Gates and Circuits.
9/19/06 Hofstra University – Overview of Computer Science, CSC005 1 Chapter 4 Gates and Circuits.
Comparators A comparator compares two input words.
DIGITAL CIRCUITS Dr. L M Head Sophomore Clinic Fall 2004.
Contemporary Logic Design Sequential Logic © R.H. Katz Transparency No Chapter #6: Sequential Logic Design Sequential Switching Networks.
ENGIN112 L26: Shift Registers November 3, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 26 Shift Registers.
Comparators  A comparator compares two input words.  The following slide shows a simple comparator which takes two inputs, A, and B, each of length 4.
Fall 2007 L16: Memory Elements LECTURE 16: Clocks Sequential circuit design The basic memory element: a latch Flip Flops.
Sequential Circuit  It is a type of logic circuit whose output depends not only on the present value of its input signals but on the past history of its.
A presentation on Counters
Chapter 1_4 Part II Counters
1 Sequential Circuits Registers and Counters. 2 Master Slave Flip Flops.
EE345: Introduction to Microcontrollers Register and Counters Prof. Ahmad Abu-El-Haija.
Sequential Circuits Chapter 4 S. Dandamudi To be used with S. Dandamudi, “Fundamentals of Computer Organization and Design,” Springer,  S.
Chapter 4 Gates and Circuits. 4–2 Chapter Goals Identify the basic gates and describe the behavior of each Describe how gates are implemented using transistors.
Chapter 4 Gates and Circuits.
Engineering Lecture 3 Digital Electronics by Jaroslaw Karcz.
COE 202: Digital Logic Design Sequential Circuits Part 1
Flip Flop
ECE 101 An Introduction to Information Technology Digital Logic.
Rabie A. Ramadan Lecture 3
School of Computer Science G51CSA 1 Computer Systems Architecture Fundamentals Of Digital Logic.
1 Neutron Monitor Workshop 3(B): Next Generation Readout Board Mahidol University January 6, 2010 Paul Evenson University of Delaware Bartol Research Institute.
CS1Q Computer Systems Lecture 11 Simon Gay. Lecture 11CS1Q Computer Systems - Simon Gay2 The D FlipFlop A 1-bit register is called a D flipflop. When.
1 DIGITAL ELECTRONICS. 2 OVERVIEW –electronic circuits capable of carrying out logical (boolean) and arithmetic operations on information stored as binary.
1 Boolean Algebra & Logic Gates. 2 Objectives Understand the relationship between Boolean logic and digital computer circuits. Learn how to design simple.
1 Workshop 4 (A): Telemetry and Data Acquisition Mahidol University June 13, 2008 Paul Evenson University of Delaware Bartol Research Institute.
Chap 4. Sequential Circuits
 Counters are sequential circuits which "count" through a specific state sequence. They can count up, count down, or count through other fixed sequences.
4. Computer Maths and Logic 4.2 Boolean Logic Logic Circuits.
Abdullah Said Alkalbani University of Buraimi
Sequential logic circuits
MicroComputer Engineering DigitalCircuits slide 1 Combinational circuits Changes at inputs propagate at logic speed to outputs Not clocked No internal.
Logic Design / Processor and Control Units Tony Diep.
Chapter 3 Digital Logic Structures. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 3-2 Transistor: Building.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
Chap 5. Registers and Counters
CS151 Introduction to Digital Design Chapter 5: Sequential Circuits 5-1 : Sequential Circuit Definition 5-2: Latches 1Created by: Ms.Amany AlSaleh.
ECE DIGITAL LOGIC LECTURE 15: COMBINATIONAL CIRCUITS Assistant Prof. Fareena Saqib Florida Institute of Technology Fall 2015, 10/20/2015.
1 Neutron Monitor Workshop 2(B): Neutron Monitor Digital Electronics Mahidol University June 26, 2009 Paul Evenson University of Delaware Cosray at McMurdo.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Dr. Shi Dept. of Electrical and Computer Engineering.
LOGIC CIRCUITLOGIC CIRCUIT. Goal To understand how digital a computer can work, at the lowest level. To understand what is possible and the limitations.
COMBINATIONAL AND SEQUENTIAL CIRCUITS Guided By: Prof. P. B. Swadas Prepared By: BIRLA VISHVAKARMA MAHAVDYALAYA.
Chapter 3 Boolean Algebra and Digital Logic T103: Computer architecture, logic and information processing.
Counters In digital logic and computing, a counter is a device which stores (and sometimes displays) the number of times a particular event or process.
1 Neutron Monitor Workshop 2(A): Principles of Digital Logic Mahidol University July 22, 2011 Presentation developed by: Paul Evenson University of Delaware.
Logic Gates Unit 16.
FLIP FLOPS Binary unit capable of storing one bit – 0 or 1
Introduction Molecules: made up of atoms of individual elements.
Reading: Hambley Chapters
ECE Digital logic Lecture 16: Synchronous Sequential Logic
Registers and Counters Register : A Group of Flip-Flops. N-Bit Register has N flip-flops. Each flip-flop stores 1-Bit Information. So N-Bit Register Stores.
LECTURE 15 – DIGITAL ELECTRONICS
CS Fall 2005 – Lec. #5 – Sequential Logic - 1
Fundamentals of Computer Science Part i2
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN
CSE 370 – Winter Sequential Logic - 1
FLIP-FLOPS.
Week 11 Flip flop & Latches.
Presentation transcript:

1 Neutron Monitor Workshop 2(A): Principles of Digital Logic Mahidol University June 25, 2009 Paul Evenson University of Delaware Bartol Research Institute

2 Workshop Series Idea Introduce students to technical aspects of neutron monitor operation Rotating workshop series that will repeat every two years at a two per year rate Independent enough so students can join at any point Accommodate wide skill range with an emphasis on “hands on” experience and individual discussion

3 Workshop Series Plan 1.Detector operation A.Detector Physics and Analog Electronics B.Art and Science of Soldering 2.Digital Circuits A.Principles of Digital Logic B.Neutron Monitor Digital Electronics 3.Microcontrollers (including data transfer methods within the electronics system) 4.Real time data acquisition A.Principles of Telemetry and Data Acquisition B.Data Conversion and Manipulation with Visual Basic

4 Plan For Today Lecture with Demonstrations –Questions and answers Describe Design Problems –Questions and answers Individual work on design problems –Only one prototype system here –Limited number of parts –Testing your design will be left for later

5 Digital Circuits Ultimately composed of the same type of electronic components as analog electronics Digital signals are expressed as analog levels Typically there are only two logic levels –Called “0” and “1”; “Low” and “High” –Low is usually near ground –High is usually near supply voltage (often +5 volts) –(Bad practice to use supply itself for “High”) One could define a range of discrete levels but typically this is not done

6 Simplest Logic Elements InOut Buffer: Really doesn’t do anything except isolate the input signal and condition the output Inverter: The circle on an input or output indicates inversion InOut 01 10

7 AND and NAND Note that you can make any logic function out of NAND gates ABOut AB

8 OR and NOR You can also make any logic function out of NOR gates OR, NOR, AND, NAND all have natural multi- input extensions ABOut AB

9 XOR (Exclusive OR) This is the “even parity” operation Multi input operation is not well defined –One and only one? –Odd number? –All but one? ABOut

10 Simple Implementations Note that these work, but they are poorly buffered on inputs and outputs, and cannot be combined easily into more complex circuits

11 Device Properties

12 Key DC Design Parameters These tell you: –Voltage ranges for valid 1 and 0 on input –Guaranteed output voltages as a function of load –How much load the gate input puts on the output of anything it is connected to

13 Key AC Characteristics Since this is ultimately an analog device it is essential to consider propagation delays in any array of gates The delays are compounded Parallel tracks in the logic equation give rise to races and glitches if you are not careful Often a clock function is used to allow a “settling time” and then to record (or “register” the output before proceeding to the next step in the device operation

14 Digital Signal Requirements Signals must never remain in “never-never land”. At a minimum this increases power draw and may damage the chip Transitions must be monotonic and “fast” Slow or sloppy transitions must be conditioned by triggers or discriminators If the signals are only slow, most logic families include devices with Schmidt trigger inputs Mechanical contacts must be de-bounced

15 Simple Memory – Set/Reset Flip-Flop Pushing a button sets (A) or resets (B) the device This state remains until the other button is pushed “Set” and “Reset” describe the device state – one output is always the complement of each other

16 The Clocked “D” Flip-Flop On the leading edge of the clock, the state of D is remembered in the outputs The state is remembered before the outputs change Therefore the outputs may be fed back into the logic that determines the input without ambiguity

17 One-Shots A “one-shot” produces a pulse in response to a “leading edge” on the input The opposite transition produces no response If a precise (or very long) pulse duration is needed, use a device where this is controlled by analog components

18 Simple One-Shot for Edge Triggering Produces a short pulse on positive edge No reaction to the following negative edge Duration is a function of temperature, supply voltage, and device variation If implemented with devices in the same logic family the pulse is usually long enough with one inverter More buffers or inverters will lengthen it (to a point) Add buffers or inverters (in pairs) here to lengthen the pulse

19 Ripple Counter from D Flip-Flops When clocked, each D changes state because Qbar is fed back into D When and only when Qbar rises the next flipflop is clocked Each thus operates at half the rate of the previous stage forming a counter Because of the ripple, not all stages change state at the same time so the count is actually only well defined after a settling time Synchronous counters also exist, where all outputs change simultaneously Even there, the finite time of the transition can cause glitches

20 Shift Registers The ripple counter becomes a “shift register” if Q of one stage is connected to D of the following, and all the clocks are connected together

21 Johnson Counter – Multiphase Clock A shift register loaded with a single “1” becomes what is known as a Johnson Counter The “1” moves from stage to stage, and is often the simplest way to sequence logic and allow for setup time Fed back on itself this becomes a “multiphase clock” Typically only the “even” phases are used to sequence logic, ensuring that there is no overlap and good settling time

22 Problem 1: Implement the following using only NAND gates Buffer Inverter AND OR XOR (Exclusive Or)

23 Problem 2: Explain How This Circuit “Debounces” the Contacts

24 Problem 3: How a D Flipflop Works Figure out how gate delays implement the edge triggered feature of the D flipflop Using the chips on the prototype board build this circuit and use it to add one more stage to the counter Note that this is just our old friend, the set-reset flipflop

25 Problem 4: Design a Full Adder

26 Problem 5: Design an 8 Bit “Accumulator” to Add 4 Bit Numbers An accumulator is an array of memory cells to which successive numbers can be added Use four of the switches for input Use one of the push buttons as a clock Display the results in the lights

27 Problem 6: Design a Circuit to Multiply Two 4 Bit Numbers Multiplying two, four bit numbers yields an eight bit product This actually could be implemented with a lot of gates, since there is an 8 bit  8 bit truth table that uniquely specifies the answer, but here you should do it with clocked logic Use two groups of four switches for the inputs Display the product in the lights Use a push button to initiate the clock sequence

28 Problem 4: Answer