The Storage or Data Register
|
|
- Lesley Ray
- 7 years ago
- Views:
Transcription
1 The Storage or Data Register All sequential logic circuits in the computer CPU are based on the latch or flip-flop. A significant part of the ALU is the register complement. In the MIPS R-2000 computer which we will study shortly, there are thirty-two 32-bit registers, generally called storage registers. A storage register is a set of D FF s (generally master-slave D FF s) which work in unison to store the number of bits in a computer data word. In the case of the R-2000, each register has 32 D FF s to store 32 bits of data simultaneously. To more fully understand the concept of the data storage register, we first need to discuss and understand the data bus. 1
2 The Data Bus A data bus is a collection of wires (or copper lines on a printed circuit board or metal conductors on a semiconductor chip) which carry data (bits) in parallel from one part of a computer to another. The MIPS R-2000 has 32-bit data words, so that 32 data bits are transferred in parallel in data transfers. That is, the MIPS R-2000 has 32-bit data buses. There are various buses in the CPU of most computers, but those that carry data are called data buses. Data on the buses are 1 s and 0 s (two voltage levels). 2
3 Data Bus Illustration Clock Input Data Bus (8 Lines) D7 D6 D5 D4 D3 D2 D1 D0 CLK bit Storage Register Output Data Bus (8 Lines) CLK D7 D6 Etc. 7 6 Etc. The storage register shown above is connected to two 8-bit buses. The 8 data lines are connected to the 8 inputs of the storage register. Similarly, register outputs are connected to the 8 output bus lines. Data is input to the register in parallel. That is, 8 bits (0 or 1) are placed on the lines and stored in the register on one clock pulse. 3
4 The Concept of Data Gating The data bus is a conduit which links registers to the ALU. Generally, an ALU has two input buses, to which all register outputs are electrically connected. A second bus from the ALU returns results of ALU operation to all the register inputs. Register addressing, choosing which register transmits to or receives data from to the ALU, allows data transfer from/to the ALU. Addressing, sometimes called gating, uses decoders and multiplexers, circuits with which we are familiar. 4
5 Gating Data Into a Storage Register 5 Register Address Bus Input Data Bus Clock CLK An address bus carries the identification of the receiving register. The register address is decoded and ANDed with CLOCK to provide a strobe to the buffer above, causing the 8 bits on the bus to be stored in the 8 D flip-flops. The register address and data buses go to all registers in a computer (32 in the case of MIPS), but only the register addressed will be loaded with data. D7 D6 D5 D4 D3 D2 D1 D bit Storage Register Output Data Bus
6 Typical Input Configuration for Register Block Data is transmitted on the bus to all register inputs. An address is also transmitted to the decoder. Simultaneously, a strobe signal is transmitted to all register enable* inputs. The register that accepts data is determined by the address. 5/32 Decoder Bit Address Bus * Note: the register inputs are the data (32 bits ) and the clock (C) line. This clock input is called, variously, clock, enable, or strobe. It corresponds to the clock input on a D FF. Clock ( Strobe ) Signal Bit Data Bus C D C D C D C D C D C D C D CPU Register Block Reg. 0 Reg. 1 Reg. 2 R. 30 R. 31 6
7 Typical Output Configuration for Register Block The 32 register output bits (the output of each of the 32 register ff s), are directed to each of two 32:1 multiplexers. A 5-bit address plus the strobe pulse goes to each multiplexer. This signal (strobe plus address) selects which of the registers is connected to each of the two busses. In the MIPS computer that we will study, there are two ALU input buses, since the ALU often uses two operands. 5-Bit Address Plus Strobe 5-Bit Address Plus Strobe C D C D C D C D C D C D C D Reg. 0 Reg. 1 Reg. 2 R. 30 R. 31 CPU Register Block 32-Bit Data Bus 32:1 MUX 32-Bit Data Bus 32:1 MUX 7
8 Exercise 1 The 4-bit register shown has data inputs a, b, c, and d. Data In a D Data a Data is stored in the register by decoding the register address on the address lines (w-z) and then AND-ing this decoded address with Clock. The register has address 0x b. Wire up the decoder so that data will be stored in register b whenever the correct address is put on the address lines. (You may not need all the inverters.) Address w (MSB) x y z Clock b c d Reset D D D Data b Data c Data d 8
9 Shift Registers Shift registers are particularly important in modern computers and computing systems. Not only do they perform the shifting or rearrangement of numbers in some cases (although modern computers usually employ shifters much faster than the old-fashioned shift register), but they are also very valuable in communication systems. They can be employed to convert serial data streams to parallel and vice-versa (as in internet communications). Although technically there are a number of variations of shift registers (see Tokheim, page 260), we are really only concerned with two practical registers: the serial-to-parallel shift register, and the parallel-to-serial shift register. 10
10 The Serial-to-Parallel Shift Register Data In Clock MSB Parallel Data Out LSB In the shift register shown, data is shifted into the first masterslave D FF on the left when the clock goes high. After the first clock pulse goes low, the output of the first ff is available as an input to the second. On the second clock pulse, MSB is shifted into the second ff, and a new bit goes into the left ff. On the third clock pulse, the bits shift again, and are now available at the parallel output. 11
11 Serial/Parallel Register Timing Data In Clock MSB Parallel Data Out LSB FF #3 FF #2 FF #1 MSB LSB Serial Data Clock
12 Parallel/Serial Shift Register Conversely, in the parallel-to-serial shift register, data is loaded into the register just as it would be strobed or clocked into any storage register. However, in the parallel/serial shift register, the data can then be clocked out bit-by-bit in serial form. In general, the MSB is clocked out first, but, depending on the design, LSB out first is also possible. This shift register is very similar to the serial-to-parallel register, with the exception of having the ability to load data into the register in parallel. 13
13 Parallel-to-Serial Shift Register Parallel Data In Reset Load Parallel Data Serial Data Clock D L D S Ld C R D L D S Ld C R D L D S Ld C R Serial Data Out 14 The parallel-to-serial shift register above has data loaded using the parallel data inputs and the Load Parallel Data strobe. After data is loaded, it is shifted out using the serial data clock.
14 Parallel/Serial Shift Register Timing Parallel Data In DL Load+ S D Reset Load Parallel Data Serial Data Clock D L D S Ld C R D L D S Ld C R D L D S Ld C R Serial Data Out Serial Clock Out Reset- Serial Data Out Serial Data Clock Load Parallel Data Clear 15
15 Exercise 2 The 5-stage shift register is clocked as shown. Assume it is set/reset at startup. On the timing diagram, plot the logic levels at Out for the number of clock pulses shown. S D S D S D S D S D Out Clock Set/Reset Out Clock
16 A Simple Binary Counting Circuit Computer events are timed and synchronized by a clock, so keeping track of timing becomes important. Computers do not execute an instruction per clock cycle. Most computer instructions take several clock periods All instructions do not take the same number of clock periods Thus counting clock periods as events is important. Counting pulses can be done by binary counters, all of which are made from master-slave T FF s. A ripple counter is based on the T FF frequency divider seen earlier (next slide). 17
17 T FF Frequency Divider 1 Clock Reset T FF as a frequency divider, with decoded f/8 state. f/2 f/4 Pulse Out T FF #3 T FF #2 T FF #1 Clock Clock frequency = f
18 Frequency Divider as Ripple Counter 1 Clock (at frequency f) Reset f/2 f/4 f/8 Count MSB LSB Consider a variation of the T FF frequency divider. The three outputs become counter digits. The f/8 ff is the most significant bit (MSB), f/2 the least significant bit (LSB). The outputs of the ff s represent the binary value of the number of clock pulses up to 7. Every eight pulses, the counter starts over. This is a ripple counter, since each stage of the counter must first change to its new state (which takes a small amount of time) before it can be the clock for the next stage. It counts modulo-8 since it counts eight counts, 0-7, over and over again. 19
19 1 Clock (at frequency f) Reset T FF Counter f/2 f/4 f/8 Count MSB LSB T FF # MSB T FF #2 T FF #1 Clock LSB 20
20 Problems with the Binary Ripple Counter While the so-called ripple counter works well and dependably in many situations, it has some problems associated with its name. The chief problem is that the output of each T FF acts as the clock for the next stage of the counter. This means that there is some delay due to the circuit parameters after the clock has set and reset the LSB before the output will change and clock the next stage. Each stage adds another set of delays to the process. For a very large counter (with many stages), the delays could get so serious that the final stage was not clocked until after the clock to the LSB had started the next clock cycle. 21
21 Actual Counting Cycle with Ripple Counter T FF # MSB T FF #2 T FF #1 LSB Clock The real-time cycle of a ripple counter is shown above. Each succeeding stage is further delayed from the input clock. By the time the counting pulses get to the third T FF, the delay may be 1/2 of the original clock cycle! We will see a solution to this ripple problem in the next lecture. 22
22 Counter Circuits The ripple counter has problems, as we have seen. The parallel or synchronous binary counter synchronizes all stages (flip-flops) so that they change, or toggle, in parallel. The parallel counter assures that the counter output will always be correct, and that the wrong count will not be accidentally decoded or recognized. 23
23 Synchronous Binary Counter Counter stage 0 Counter stage 1 Counter stage 2 T T T 24 Clock Synchronous or parallel counter characteristics: Uses T flip-flops All stages (outputs) change in unison Unlike the ripple counter, each stage is not triggered by the previous stage. All stages are triggered by the clock T input is activated (=1) when a stage should toggle. In the 3-bit binary counter prototype above: The clock is connected to all three counter inputs How do we determine when a T input should 1?
24 Synchronous Binary Counter (2) Counter stage 0 Counter stage 1 Counter stage 2 T T T Clock Consider stage 0. This stage counts 1 s (or it performs counts for the 2 0 column in this three-bit number being counted, hence the name stage 0 ). This stage toggles every time the clock ticks. Its input should always be a 1, since the ff only toggles on a 1 input to T, and we want it to always toggle on a clock pulse (similar to the exercise in Lecture 7). Then tie T 0 (i.e., stage 0 T-input ) to 1 (as before, we recognize that 1 would be a plus voltage such as +5 V. in a real digital circuit). 25
25 Synchronous Binary Counter (3) We now have T 0 accounted for. What about T 1? Stage 1 counts the 2 1 (or the two s ) column. It should toggle on every second count, i.e., counts 2, 4, 6, and 8/0. We could reason this stage out as in the Lecture 7 problem, but stage 2 will be even more complex, so let s go ahead and look at a truth table for the T 1 input in terms of count and next count. 26
26 Synchronous Binary Counter (4) The first two columns at right are the T 1 truth table (the right two columns clarify the conditions that determine T 1 on each count). The center column is 1. It alternates 0, 0, 1, 1, etc. Clearly, T 1 must be 1 after counts 1, 3, 5, 7, since 1 will toggle on the NEXT count. Count T NEXT stage Etc Counter starts over 27
27 Synchronous Binary Counter (5) 28 We now need the Boolean expression for T 1. From the truth table, then: T = This is a fairly complicated relation, and it looks as though many gates and connections will be required to create the T input that we desire. However, let s first plot the Booleans terms on a Karnaugh map: We see that the expression for T 1 can be simplified to: T = 1 0 Count T
28 Synchronous Binary Counter (6) Since input T 1 is fulfilled by simply the output from stage 0, we simply connect 0 to T 1 input, thus completing two stages of our counter. What about stage 2? This third stage will only toggle on every fourth count, so it is a little harder figuring out input T 2 simply by reasoning it out. Again, the truth table and Karnaugh map easily allow defining input T 2. 29
29 Synchronous Binary Counter (7) Stage 2 only toggles on counts 4 (to 1) and 8 (to 0). The Boolean expression for T 2 is: T2 = The expression is plotted on the K-map below the truth table. From the K-map, we can simplify the stage 2 T input to: T = Count T NEXT stage Counter starts over
30 Synchronous Binary Counter (8) The synchronous (parallel) binary counter is now complete. Bringing output signals to the right as shown, these values will cycle through counts 0-7 as the counter counts, so it is a modulo 8 counter. Since all stages count in parallel, and since the delays through the AND gate are small, the stages all toggle instantaneously in parallel. This technique can be applied not only to a modulo 2 n counter, but to any other modulo-m counter, m not a power of 2 (example shortly). 31
31 Less Significant Digit Clock Reset Exercise 3 Bit y Bit x More Significant Digit We have seen that there is a fairly straightforward method to construct a parallel or synchronous counter using combinational logic to modify the T-input of each FF in the counter. Wire up this counter so that it counts modulo-4 in parallel. Use the T inputs as shown on the preceding slides to accomplish the toggling of the two flip-flops as the counter counts. Assume Reset is only invoked at startup. 32
32 Generalized Mod-2 n Counter Noting the schematic on the previous page, the following relationship has probably occurred to some students. Nevertheless, it is stated here as a ground-rule to illustrate that mod- 2 n parallel counters are very simple to build. For ANY mod-2 n counter (2, 4, 8, 16, 32, etc.): Use n toggle flip-flops. Connect the clock to the clock inputs of all stages (i.e., to all T FFs). Connect LSB T-input to 1 (where we know that 1 is a voltage). Connect LSB -output to the T input of 2 nd LSB. For subsequent counter stages, AND all previous outputs and input to T of the next stage. This makes use of the principle that in a mod-2 n counter, a stage only toggles when all previous stages = 1. 34
33 Exercise 4 Wire the 5 T FF s below according to the general rules given to build a 5-bit, modulo-32 counter. Assume that the clock is slow enough that a few gate delays are trivial. 35
34 Counting When the Cycle is Not a Power of Two The 3-bit ripple and parallel counters we have seen previously go through a cycle of 8 (that is, 0-7) and then automatically reset to 0 and begin the count over. Suppose we want to count in some other cycle than 8. For instance, suppose we want to count on a cycle of 6? In this case, we would want the counter to count 0-5, and then reset to 0 on the sixth count. Using the synchronous counter and the properties of the decoder circuit, we can devise a circuit such as this, based on the cycle-8 synchronous counter shown on the previous slide. 38
35 A Modulo-6 Counter Counter stage 0 Counter stage 1 Counter stage 2 "1" MSB T T T Clock LSB Consider the parallel counter above (which we just designed): To count mod-6, we want it to count to 5 and then go to 0 on count 6. At count 5, the counter will read (MSB-to-LSB): 101. We want the next count to be zero (000) and not six (110). Now consider what we want each individual stage to do after 5: We want LSB to go from 1 to 0, i.e., reset. We want the middle bit to stay zero (it is zero on count 5: 101). We want MSB to go from 1 to 0 also. 39
36 Modulo-6 Counter (2) Counter stage 0 Counter stage 1 Counter stage 2 "1" MSB T T T Clock LSB 40 Since the stage 0 bit always toggles, after count 5 (101) it will go to zero (the next count would be 110, for which that bit goes to 0). Stage 0 behaves correctly; we do not have to modify this stage. The middle bit will toggle to 1 if we do not stop it because 0 is 1. We have to negate this input -- but only for the 5 condition. The MSB does not toggle either the T 2 input is 0 1 (= 0, since 1 = 0), so the T 2 input is 0. Thus we must force stage 2 to 0. How do we fix these last two conditions?
37 Modulo-6 Counter (3) Consider the truth table for the output of the middle counter bit ( 1 ): Each clock tick, 1 will change if T 1 =1; 1 will remain the same if T 1 =0. What we require is that when T 1 ( 0 )=1, 1 will change states, except when T 1 =1, and count = 5 (binary 101). If T 1 (= 0 ) = 1, and the counter output is exactly 5, we want the output of the middle counter bit to stay 0. Then the truth table for T 1 is: Count T 1 1 1NEXT & 111 Don t care s. Will never happen! 41
38 Modulo-6 Counter (4) Proceeding as before for T 1 : Count T NEXT Etc Then the Boolean expression for T 1 is: T. 1 = Plotting this on a 3-variable K-map above gives T. 1 = 2 0 Therefore the signal created by inverted MSB (stage 2) ANDed with LSB (stage 0) will, when input into the counter stage 1 T-input, cause that middle bit to count correctly ALWAYS for a modulo-6 counter. 42
39 Now consider the 2 of the counter. Modulo-6 Counter (5) The truth table for T 2 is: Count T NEXT X X Thus, T = +. At first glance, this cannot be simplified However, note the X s in the K-map. These are the don t care counts. Since counts 6 and 7 never occur (the X s on the K-map), we can make them 1 s as we learned for combinational logic. We can then simplify the expression for T 2 to get: T = Etc. 43
40 Modulo-6 Counter (6) Counter stage 0 Counter stage 1 Counter stage 2 "1" MSB T T T Clock LSB T = Our resulting modulo-6 counter is shown above. T2 = Note that when the MSB ( 2 ) becomes 1 (for count 100), the T input to the middle stage is disabled until the count is reset, fulfilling the truth table requirement for the middle bit T input being 0 for count 5 (101). For the MSB, T 2 would only be 1 for count 011 ( 3 ) (count 111 [ 7 ] does not occur). Now the T input will also be 1 after count 5 (101) as well, due to the OR gate, so that 2 will return to 0 after count 5. 44
41 Mod-6 Counter Cycle and Timing Counter stage 0 Counter stage 1 Counter stage 2 "1" MSB T T T Clock LSB MSB 0 Clock LSB 45
42 Simplified Method to Build Non-2 n Counter The method just described for building a counter will always produce the correct results with the minimum circuitry. The method will also produce the correct results, but will not always use the minimal number of gates: To count any number m, m not a power of 2, determine the smallest mod 2n counter such that 2n >m. Build the parallel 2n counter (use the short cut if you wish). Determine stages that must toggle to 0 on count m but do not, and those that toggle to 1 but should not. Some stages may not need any help they may behave properly without any modification. Using an n-input AND gate, decode clock count (m-1). For a counter stage that needs to go to 0, but has a 0 T-input on count (m-1), OR the current T-input with decoded (m-1). For each stage that should not toggle to 1, AND inverted (m-1) with that current T-input. The resulting counter will count mod-m. 46
43 Example of Simpler Method Mod-6 Counter Counter stage 0 Counter stage 1 Counter stage 2 "1" T T T MSB Clock LSB Inverted (m-1) Decoded "5" (m-1) Note that this version of the circuit uses slightly more logic, but that the counter is equally valid. Also, it is conceptually easier (and yes, it would be an acceptable answer on a test)! 47
44 Summary Like their simple combinational-logic relatives, the D, J-K, and T flip-flops find many uses in modern computing. These include storage registers, counters, and shift registers. In our next lecture, we will design additional sequential circuits. In future lectures on computer architecture and design, we will see just how sequential logic is employed in a modern computer CPU. 48
45 Take-Home Exercise We now understand how to make any mod-2 n or mod-m counter (m not a power of 2) that counts forward. What about a counter that counts backward? Assume you want the counter below to count mod-6 backward. That is, it would count , etc. Assume it is reset on start-up, and design the wiring to make the counter count properly. Hint: Remember the K-map method will work for ANY counter. Note: in the arrangement below for the counter bits, x is the most significant bit, z the least significant. First 10 answers to my office during office hours gets +3 on next test! z y x 49
Take-Home Exercise. z y x. Erik Jonsson School of Engineering and Computer Science. The University of Texas at Dallas
Take-Home Exercise Assume you want the counter below to count mod-6 backward. That is, it would count 0-5-4-3-2-1-0, etc. Assume it is reset on startup, and design the wiring to make the counter count
More informationModule 3: Floyd, Digital Fundamental
Module 3: Lecturer : Yongsheng Gao Room : Tech - 3.25 Email : yongsheng.gao@griffith.edu.au Structure : 6 lectures 1 Tutorial Assessment: 1 Laboratory (5%) 1 Test (20%) Textbook : Floyd, Digital Fundamental
More informationCounters and Decoders
Physics 3330 Experiment #10 Fall 1999 Purpose Counters and Decoders In this experiment, you will design and construct a 4-bit ripple-through decade counter with a decimal read-out display. Such a counter
More informationDIGITAL ELECTRONICS. Counters. By: Electrical Engineering Department
Counters By: Electrical Engineering Department 1 Counters Upon completion of the chapter, students should be able to:.1 Understand the basic concepts of asynchronous counter and synchronous counters, and
More informationWEEK 8.1 Registers and Counters. ECE124 Digital Circuits and Systems Page 1
WEEK 8.1 egisters and Counters ECE124 igital Circuits and Systems Page 1 Additional schematic FF symbols Active low set and reset signals. S Active high set and reset signals. S ECE124 igital Circuits
More informationDIGITAL COUNTERS. Q B Q A = 00 initially. Q B Q A = 01 after the first clock pulse.
DIGITAL COUNTERS http://www.tutorialspoint.com/computer_logical_organization/digital_counters.htm Copyright tutorialspoint.com Counter is a sequential circuit. A digital circuit which is used for a counting
More informationFlip-Flops, Registers, Counters, and a Simple Processor
June 8, 22 5:56 vra235_ch7 Sheet number Page number 349 black chapter 7 Flip-Flops, Registers, Counters, and a Simple Processor 7. Ng f3, h7 h6 349 June 8, 22 5:56 vra235_ch7 Sheet number 2 Page number
More informationDigital Logic Design. Basics Combinational Circuits Sequential Circuits. Pu-Jen Cheng
Digital Logic Design Basics Combinational Circuits Sequential Circuits Pu-Jen Cheng Adapted from the slides prepared by S. Dandamudi for the book, Fundamentals of Computer Organization and Design. Introduction
More informationBINARY CODED DECIMAL: B.C.D.
BINARY CODED DECIMAL: B.C.D. ANOTHER METHOD TO REPRESENT DECIMAL NUMBERS USEFUL BECAUSE MANY DIGITAL DEVICES PROCESS + DISPLAY NUMBERS IN TENS IN BCD EACH NUMBER IS DEFINED BY A BINARY CODE OF 4 BITS.
More informationETEC 2301 Programmable Logic Devices. Chapter 10 Counters. Shawnee State University Department of Industrial and Engineering Technologies
ETEC 2301 Programmable Logic Devices Chapter 10 Counters Shawnee State University Department of Industrial and Engineering Technologies Copyright 2007 by Janna B. Gallaher Asynchronous Counter Operation
More informationCounters & Shift Registers Chapter 8 of R.P Jain
Chapter 3 Counters & Shift Registers Chapter 8 of R.P Jain Counters & Shift Registers Counters, Syllabus Design of Modulo-N ripple counter, Up-Down counter, design of synchronous counters with and without
More information(Refer Slide Time: 00:01:16 min)
Digital Computer Organization Prof. P. K. Biswas Department of Electronic & Electrical Communication Engineering Indian Institute of Technology, Kharagpur Lecture No. # 04 CPU Design: Tirning & Control
More informationContents COUNTER. Unit III- Counters
COUNTER Contents COUNTER...1 Frequency Division...2 Divide-by-2 Counter... 3 Toggle Flip-Flop...3 Frequency Division using Toggle Flip-flops...5 Truth Table for a 3-bit Asynchronous Up Counter...6 Modulo
More informationLecture 8: Synchronous Digital Systems
Lecture 8: Synchronous Digital Systems The distinguishing feature of a synchronous digital system is that the circuit only changes in response to a system clock. For example, consider the edge triggered
More informationTo design digital counter circuits using JK-Flip-Flop. To implement counter using 74LS193 IC.
8.1 Objectives To design digital counter circuits using JK-Flip-Flop. To implement counter using 74LS193 IC. 8.2 Introduction Circuits for counting events are frequently used in computers and other digital
More informationExperiment # 9. Clock generator circuits & Counters. Eng. Waleed Y. Mousa
Experiment # 9 Clock generator circuits & Counters Eng. Waleed Y. Mousa 1. Objectives: 1. Understanding the principles and construction of Clock generator. 2. To be familiar with clock pulse generation
More informationCS311 Lecture: Sequential Circuits
CS311 Lecture: Sequential Circuits Last revised 8/15/2007 Objectives: 1. To introduce asynchronous and synchronous flip-flops (latches and pulsetriggered, plus asynchronous preset/clear) 2. To introduce
More informationDecimal Number (base 10) Binary Number (base 2)
LECTURE 5. BINARY COUNTER Before starting with counters there is some vital information that needs to be understood. The most important is the fact that since the outputs of a digital chip can only be
More informationLet s put together a Manual Processor
Lecture 14 Let s put together a Manual Processor Hardware Lecture 14 Slide 1 The processor Inside every computer there is at least one processor which can take an instruction, some operands and produce
More informationSequential Logic. (Materials taken from: Principles of Computer Hardware by Alan Clements )
Sequential Logic (Materials taken from: Principles of Computer Hardware by Alan Clements ) Sequential vs. Combinational Circuits Combinatorial circuits: their outputs are computed entirely from their present
More informationCHAPTER IX REGISTER BLOCKS COUNTERS, SHIFT, AND ROTATE REGISTERS
CHAPTER IX-1 CHAPTER IX CHAPTER IX COUNTERS, SHIFT, AN ROTATE REGISTERS REA PAGES 249-275 FROM MANO AN KIME CHAPTER IX-2 INTROUCTION -INTROUCTION Like combinational building blocks, we can also develop
More informationLecture 12: More on Registers, Multiplexers, Decoders, Comparators and Wot- Nots
Lecture 12: More on Registers, Multiplexers, Decoders, Comparators and Wot- Nots Registers As you probably know (if you don t then you should consider changing your course), data processing is usually
More informationCHAPTER 3 Boolean Algebra and Digital Logic
CHAPTER 3 Boolean Algebra and Digital Logic 3.1 Introduction 121 3.2 Boolean Algebra 122 3.2.1 Boolean Expressions 123 3.2.2 Boolean Identities 124 3.2.3 Simplification of Boolean Expressions 126 3.2.4
More informationLatches, the D Flip-Flop & Counter Design. ECE 152A Winter 2012
Latches, the D Flip-Flop & Counter Design ECE 52A Winter 22 Reading Assignment Brown and Vranesic 7 Flip-Flops, Registers, Counters and a Simple Processor 7. Basic Latch 7.2 Gated SR Latch 7.2. Gated SR
More informationDigital Systems Based on Principles and Applications of Electrical Engineering/Rizzoni (McGraw Hill
Digital Systems Based on Principles and Applications of Electrical Engineering/Rizzoni (McGraw Hill Objectives: Analyze the operation of sequential logic circuits. Understand the operation of digital counters.
More informationDIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute. 2nd (Spring) term 2012/2013
DIGITAL TECHNICS II Dr. Bálint Pődör Óbuda University, Microelectronics and Technology Institute 4. LECTURE: COUNTERS AND RELATED 2nd (Spring) term 2012/2013 1 4. LECTURE: COUNTERS AND RELATED 1. Counters,
More informationBinary Adders: Half Adders and Full Adders
Binary Adders: Half Adders and Full Adders In this set of slides, we present the two basic types of adders: 1. Half adders, and 2. Full adders. Each type of adder functions to add two binary bits. In order
More informationAsynchronous Counters. Asynchronous Counters
Counters and State Machine Design November 25 Asynchronous Counters ENGI 25 ELEC 24 Asynchronous Counters The term Asynchronous refers to events that do not occur at the same time With respect to counter
More informationMemory Elements. Combinational logic cannot remember
Memory Elements Combinational logic cannot remember Output logic values are function of inputs only Feedback is needed to be able to remember a logic value Memory elements are needed in most digital logic
More informationDigital Logic Design Sequential circuits
Digital Logic Design Sequential circuits Dr. Eng. Ahmed H. Madian E-mail: ahmed.madian@guc.edu.eg Dr. Eng. Rania.Swief E-mail: rania.swief@guc.edu.eg Dr. Eng. Ahmed H. Madian Registers An n-bit register
More informationDEPARTMENT OF INFORMATION TECHNLOGY
DRONACHARYA GROUP OF INSTITUTIONS, GREATER NOIDA Affiliated to Mahamaya Technical University, Noida Approved by AICTE DEPARTMENT OF INFORMATION TECHNLOGY Lab Manual for Computer Organization Lab ECS-453
More informationDigital Electronics Detailed Outline
Digital Electronics Detailed Outline Unit 1: Fundamentals of Analog and Digital Electronics (32 Total Days) Lesson 1.1: Foundations and the Board Game Counter (9 days) 1. Safety is an important concept
More informationChapter 8. Sequential Circuits for Registers and Counters
Chapter 8 Sequential Circuits for Registers and Counters Lesson 3 COUNTERS Ch16L3- "Digital Principles and Design", Raj Kamal, Pearson Education, 2006 2 Outline Counters T-FF Basic Counting element State
More informationASYNCHRONOUS COUNTERS
LB no.. SYNCHONOUS COUNTES. Introduction Counters are sequential logic circuits that counts the pulses applied at their clock input. They usually have 4 bits, delivering at the outputs the corresponding
More informationModeling Sequential Elements with Verilog. Prof. Chien-Nan Liu TEL: 03-4227151 ext:34534 Email: jimmy@ee.ncu.edu.tw. Sequential Circuit
Modeling Sequential Elements with Verilog Prof. Chien-Nan Liu TEL: 03-4227151 ext:34534 Email: jimmy@ee.ncu.edu.tw 4-1 Sequential Circuit Outputs are functions of inputs and present states of storage elements
More information3.Basic Gate Combinations
3.Basic Gate Combinations 3.1 TTL NAND Gate In logic circuits transistors play the role of switches. For those in the TTL gate the conducting state (on) occurs when the baseemmiter signal is high, and
More informationLesson 12 Sequential Circuits: Flip-Flops
Lesson 12 Sequential Circuits: Flip-Flops 1. Overview of a Synchronous Sequential Circuit We saw from last lesson that the level sensitive latches could cause instability in a sequential system. This instability
More information7. Latches and Flip-Flops
Chapter 7 Latches and Flip-Flops Page 1 of 18 7. Latches and Flip-Flops Latches and flip-flops are the basic elements for storing information. One latch or flip-flop can store one bit of information. The
More informationENEE 244 (01**). Spring 2006. Homework 5. Due back in class on Friday, April 28.
ENEE 244 (01**). Spring 2006 Homework 5 Due back in class on Friday, April 28. 1. Fill up the function table (truth table) for the following latch. How is this latch related to those described in the lectures
More informationDesign Example: Counters. Design Example: Counters. 3-Bit Binary Counter. 3-Bit Binary Counter. Other useful counters:
Design Eample: ers er: a sequential circuit that repeats a specified sequence of output upon clock pulses. A,B,C,, Z. G, O, T, E, R, P, S,!.,,,,,,,7. 7,,,,,,,.,,,,,,,,,,,. Binary counter: follows the binary
More informationCHAPTER 11: Flip Flops
CHAPTER 11: Flip Flops In this chapter, you will be building the part of the circuit that controls the command sequencing. The required circuit must operate the counter and the memory chip. When the teach
More informationHaving read this workbook you should be able to: recognise the arrangement of NAND gates used to form an S-R flip-flop.
Objectives Having read this workbook you should be able to: recognise the arrangement of NAND gates used to form an S-R flip-flop. describe how such a flip-flop can be SET and RESET. describe the disadvantage
More informationChapter 2 Logic Gates and Introduction to Computer Architecture
Chapter 2 Logic Gates and Introduction to Computer Architecture 2.1 Introduction The basic components of an Integrated Circuit (IC) is logic gates which made of transistors, in digital system there are
More informationCOMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design
PH-315 COMINATIONAL and SEUENTIAL LOGIC CIRCUITS Hardware implementation and software design A La Rosa I PURPOSE: To familiarize with combinational and sequential logic circuits Combinational circuits
More informationDesign: a mod-8 Counter
Design: a mod-8 Counter A mod-8 counter stores a integer value, and increments that value (say) on each clock tick, and wraps around to 0 if the previous stored value was 7. So, the stored value follows
More informationUpon completion of unit 1.1, students will be able to
Upon completion of unit 1.1, students will be able to 1. Demonstrate safety of the individual, class, and overall environment of the classroom/laboratory, and understand that electricity, even at the nominal
More informationEE 42/100 Lecture 24: Latches and Flip Flops. Rev B 4/21/2010 (2:04 PM) Prof. Ali M. Niknejad
A. M. Niknejad University of California, Berkeley EE 100 / 42 Lecture 24 p. 1/20 EE 42/100 Lecture 24: Latches and Flip Flops ELECTRONICS Rev B 4/21/2010 (2:04 PM) Prof. Ali M. Niknejad University of California,
More informationA New Paradigm for Synchronous State Machine Design in Verilog
A New Paradigm for Synchronous State Machine Design in Verilog Randy Nuss Copyright 1999 Idea Consulting Introduction Synchronous State Machines are one of the most common building blocks in modern digital
More informationFlip-Flops and Sequential Circuit Design. ECE 152A Winter 2012
Flip-Flops and Sequential Circuit Design ECE 52 Winter 22 Reading ssignment Brown and Vranesic 7 Flip-Flops, Registers, Counters and a Simple Processor 7.5 T Flip-Flop 7.5. Configurable Flip-Flops 7.6
More informationFlip-Flops and Sequential Circuit Design
Flip-Flops and Sequential Circuit Design ECE 52 Winter 22 Reading ssignment Brown and Vranesic 7 Flip-Flops, Registers, Counters and a Simple Processor 7.5 T Flip-Flop 7.5. Configurable Flip-Flops 7.6
More informationCHAPTER 11 LATCHES AND FLIP-FLOPS
CHAPTER 11 LATCHES AND FLIP-FLOPS This chapter in the book includes: Objectives Study Guide 11.1 Introduction 11.2 Set-Reset Latch 11.3 Gated D Latch 11.4 Edge-Triggered D Flip-Flop 11.5 S-R Flip-Flop
More informationLecture-3 MEMORY: Development of Memory:
Lecture-3 MEMORY: It is a storage device. It stores program data and the results. There are two kind of memories; semiconductor memories & magnetic memories. Semiconductor memories are faster, smaller,
More informationNapier University. School of Engineering. Electronic Engineering A Module: SE42205 Digital Design
Napier University School of Engineering Digital Design Clock + U1 out 5V "1" "2" "4" JK-FF D JK-FF C JK-FF B U8 SN7408 signal U4 SN74107 U5 SN74107 U6 SN74107 U3 SN7408 U2 J Q J Q & J Q & K CQ K CQ K CQ
More informationTheory of Logic Circuits. Laboratory manual. Exercise 3
Zakład Mikroinformatyki i Teorii Automatów yfrowych Theory of Logic ircuits Laboratory manual Exercise 3 Bistable devices 2008 Krzysztof yran, Piotr zekalski (edt.) 1. lassification of bistable devices
More informationGates, Circuits, and Boolean Algebra
Gates, Circuits, and Boolean Algebra Computers and Electricity A gate is a device that performs a basic operation on electrical signals Gates are combined into circuits to perform more complicated tasks
More informationCounters are sequential circuits which "count" through a specific state sequence.
Counters Counters are sequential circuits which "count" through a specific state sequence. They can count up, count down, or count through other fixed sequences. Two distinct types are in common usage:
More informationNTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter
NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter Description: The NTE2053 is a CMOS 8 bit successive approximation Analog to Digital converter in a 20 Lead DIP type package which uses a differential
More informationECE380 Digital Logic
ECE38 igital Logic Flip-Flops, Registers and Counters: Flip-Flops r.. J. Jackson Lecture 25- Flip-flops The gated latch circuits presented are level sensitive and can change states more than once during
More informationChapter 7. Registers & Register Transfers. J.J. Shann. J. J. Shann
Chapter 7 Registers & Register Transfers J. J. Shann J.J. Shann Chapter Overview 7- Registers and Load Enable 7-2 Register Transfers 7-3 Register Transfer Operations 7-4 A Note for VHDL and Verilog Users
More informationChapter 4 Register Transfer and Microoperations. Section 4.1 Register Transfer Language
Chapter 4 Register Transfer and Microoperations Section 4.1 Register Transfer Language Digital systems are composed of modules that are constructed from digital components, such as registers, decoders,
More informationAsynchronous counters, except for the first block, work independently from a system clock.
Counters Some digital circuits are designed for the purpose of counting and this is when counters become useful. Counters are made with flip-flops, they can be asynchronous or synchronous and they can
More informationSo far we have investigated combinational logic for which the output of the logic devices/circuits depends only on the present state of the inputs.
equential Logic o far we have investigated combinational logic for which the output of the logic devices/circuits depends only on the present state of the inputs. In sequential logic the output of the
More informationDIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute
DIGITAL TECHNICS II Dr. Bálint Pődör Óbuda University, Microelectronics and Technology Institute 2. LECTURE: ELEMENTARY SEUENTIAL CIRCUITS: FLIP-FLOPS 1st year BSc course 2nd (Spring) term 2012/2013 1
More informationThe components. E3: Digital electronics. Goals:
E3: Digital electronics Goals: Basic understanding of logic circuits. Become familiar with the most common digital components and their use. Equipment: 1 st. LED bridge 1 st. 7-segment display. 2 st. IC
More informationCounters. Present State Next State A B A B 0 0 0 1 0 1 1 0 1 0 1 1 1 1 0 0
ounter ounters ounters are a specific type of sequential circuit. Like registers, the state, or the flip-flop values themselves, serves as the output. The output value increases by one on each clock cycle.
More informationDigital Electronics Part I Combinational and Sequential Logic. Dr. I. J. Wassell
Digital Electronics Part I Combinational and Sequential Logic Dr. I. J. Wassell Introduction Aims To familiarise students with Combinational logic circuits Sequential logic circuits How digital logic gates
More information1. True or False? A voltage level in the range 0 to 2 volts is interpreted as a binary 1.
File: chap04, Chapter 04 1. True or False? A voltage level in the range 0 to 2 volts is interpreted as a binary 1. 2. True or False? A gate is a device that accepts a single input signal and produces one
More informationSequential Logic: Clocks, Registers, etc.
ENEE 245: igital Circuits & Systems Lab Lab 2 : Clocks, Registers, etc. ENEE 245: igital Circuits and Systems Laboratory Lab 2 Objectives The objectives of this laboratory are the following: To design
More informationLab 1: Study of Gates & Flip-flops
1.1 Aim Lab 1: Study of Gates & Flip-flops To familiarize with circuit implementations using ICs and test the behavior of different logic gates and Flip-flops. 1.2 Hardware Requirement a. Equipments -
More informationSequential Logic Design Principles.Latches and Flip-Flops
Sequential Logic Design Principles.Latches and Flip-Flops Doru Todinca Department of Computers Politehnica University of Timisoara Outline Introduction Bistable Elements Latches and Flip-Flops S-R Latch
More informationSystems I: Computer Organization and Architecture
Systems I: omputer Organization and Architecture Lecture 8: Registers and ounters Registers A register is a group of flip-flops. Each flip-flop stores one bit of data; n flip-flops are required to store
More information6-BIT UNIVERSAL UP/DOWN COUNTER
6-BIT UNIVERSAL UP/DOWN COUNTER FEATURES DESCRIPTION 550MHz count frequency Extended 100E VEE range of 4.2V to 5.5V Look-ahead-carry input and output Fully synchronous up and down counting Asynchronous
More informationFig1-1 2-bit asynchronous counter
Digital electronics 1-Sequential circuit counters Such a group of flip- flops is a counter. The number of flip-flops used and the way in which they are connected determine the number of states and also
More informationSystems I: Computer Organization and Architecture
Systems I: Computer Organization and Architecture Lecture 9 - Register Transfer and Microoperations Microoperations Digital systems are modular in nature, with modules containing registers, decoders, arithmetic
More information150127-Microprocessor & Assembly Language
Chapter 3 Z80 Microprocessor Architecture The Z 80 is one of the most talented 8 bit microprocessors, and many microprocessor-based systems are designed around the Z80. The Z80 microprocessor needs an
More informationThe 104 Duke_ACC Machine
The 104 Duke_ACC Machine The goal of the next two lessons is to design and simulate a simple accumulator-based processor. The specifications for this processor and some of the QuartusII design components
More informationSEQUENTIAL CIRCUITS. Block diagram. Flip Flop. S-R Flip Flop. Block Diagram. Circuit Diagram
SEQUENTIAL CIRCUITS http://www.tutorialspoint.com/computer_logical_organization/sequential_circuits.htm Copyright tutorialspoint.com The combinational circuit does not use any memory. Hence the previous
More informationDigital Fundamentals. Lab 8 Asynchronous Counter Applications
Richland College Engineering Technology Rev. 0 B. Donham Rev. 1 (7/2003). Horne Rev. 2 (1/2008). Bradbury Digital Fundamentals CETT 1425 Lab 8 Asynchronous Counter Applications Name: Date: Objectives:
More informationRegisters & Counters
Objectives This section deals with some simple and useful sequential circuits. Its objectives are to: Introduce registers as multi-bit storage devices. Introduce counters by adding logic to registers implementing
More informationList of Experiment. 8. To study and verify the BCD to Seven Segments DECODER.(IC-7447).
G. H. RAISONI COLLEGE OF ENGINEERING, NAGPUR Department of Electronics & Communication Engineering Branch:-4 th Semester[Electronics] Subject: - Digital Circuits List of Experiment Sr. Name Of Experiment
More informationChapter 9 Latches, Flip-Flops, and Timers
ETEC 23 Programmable Logic Devices Chapter 9 Latches, Flip-Flops, and Timers Shawnee State University Department of Industrial and Engineering Technologies Copyright 27 by Janna B. Gallaher Latches A temporary
More informationEngr354: Digital Logic Circuits
Engr354: igital Circuits Chapter 7 Sequential Elements r. Curtis Nelson Sequential Elements In this chapter you will learn about: circuits that can store information; Basic cells, latches, and flip-flops;
More informationCSE140: Components and Design Techniques for Digital Systems
CE4: Components and esign Techniques for igital ystems Tajana imunic osing ources: Where we are now What we ve covered so far (Chap -5, App. A& B) Number representations Boolean algebra OP and PO Logic
More informationCDA 3200 Digital Systems. Instructor: Dr. Janusz Zalewski Developed by: Dr. Dahai Guo Spring 2012
CDA 3200 Digital Systems Instructor: Dr. Janusz Zalewski Developed by: Dr. Dahai Guo Spring 2012 Outline SR Latch D Latch Edge-Triggered D Flip-Flop (FF) S-R Flip-Flop (FF) J-K Flip-Flop (FF) T Flip-Flop
More informationGray Code Generator and Decoder by Carsten Kristiansen Napier University. November 2004
Gray Code Generator and Decoder by Carsten Kristiansen Napier University November 2004 Title page Author: Carsten Kristiansen. Napier No: 04007712. Assignment title: Design of a Gray Code Generator and
More informationComputer organization
Computer organization Computer design an application of digital logic design procedures Computer = processing unit + memory system Processing unit = control + datapath Control = finite state machine inputs
More informationA s we saw in Chapter 4, a CPU contains three main sections: the register section,
6 CPU Design A s we saw in Chapter 4, a CPU contains three main sections: the register section, the arithmetic/logic unit (ALU), and the control unit. These sections work together to perform the sequences
More informationManchester Encoder-Decoder for Xilinx CPLDs
Application Note: CoolRunner CPLDs R XAPP339 (v.3) October, 22 Manchester Encoder-Decoder for Xilinx CPLDs Summary This application note provides a functional description of VHDL and Verilog source code
More informationCOMBINATIONAL CIRCUITS
COMBINATIONAL CIRCUITS http://www.tutorialspoint.com/computer_logical_organization/combinational_circuits.htm Copyright tutorialspoint.com Combinational circuit is a circuit in which we combine the different
More information2 : BISTABLES. In this Chapter, you will find out about bistables which are the fundamental building blocks of electronic counting circuits.
2 : BITABLE In this Chapter, you will find out about bistables which are the fundamental building blos of electronic counting circuits. et-reset bistable A bistable circuit, also called a latch, or flip-flop,
More informationCascaded Counters. Page 1 BYU
Cascaded Counters Page 1 Mod-N Counters Generally we are interested in counters that count up to specific count values Not just powers of 2 A mod-n counter has N states Counts from 0 to N-1 then rolls
More informationFundamentals of Digital Electronics
Fundamentals of Digital Electronics by Professor Barry Paton Dalhousie University March 998 Edition Part Number 32948A- Fundamentals of Digital Electronics Copyright Copyright 998 by National Instruments
More informationDIGITAL-TO-ANALOGUE AND ANALOGUE-TO-DIGITAL CONVERSION
DIGITAL-TO-ANALOGUE AND ANALOGUE-TO-DIGITAL CONVERSION Introduction The outputs from sensors and communications receivers are analogue signals that have continuously varying amplitudes. In many systems
More informationDigital Controller for Pedestrian Crossing and Traffic Lights
Project Objective: - To design and simulate, a digital controller for traffic and pedestrian lights at a pedestrian crossing using Microsim Pspice The controller must be based on next-state techniques
More informationDesign Verification & Testing Design for Testability and Scan
Overview esign for testability (FT) makes it possible to: Assure the detection of all faults in a circuit Reduce the cost and time associated with test development Reduce the execution time of performing
More information1.1 The 7493 consists of 4 flip-flops with J-K inputs unconnected. In a TTL chip, unconnected inputs
CALIFORNIA STATE UNIVERSITY LOS ANGELES Department of Electrical and Computer Engineering EE-246 Digital Logic Lab EXPERIMENT 1 COUNTERS AND WAVEFORMS Text: Mano, Digital Design, 3rd & 4th Editions, Sec.
More informationMICROPROCESSOR AND MICROCOMPUTER BASICS
Introduction MICROPROCESSOR AND MICROCOMPUTER BASICS At present there are many types and sizes of computers available. These computers are designed and constructed based on digital and Integrated Circuit
More information2.0 Chapter Overview. 2.1 Boolean Algebra
Thi d t t d ith F M k 4 0 2 Boolean Algebra Chapter Two Logic circuits are the basis for modern digital computer systems. To appreciate how computer systems operate you will need to understand digital
More informationMICROPROCESSOR. Exclusive for IACE Students www.iace.co.in iacehyd.blogspot.in Ph: 9700077455/422 Page 1
MICROPROCESSOR A microprocessor incorporates the functions of a computer s central processing unit (CPU) on a single Integrated (IC), or at most a few integrated circuit. It is a multipurpose, programmable
More information