15ECL38 Digital-Electronics LM.Pdf

Total Page:16

File Type:pdf, Size:1020Kb

15ECL38 Digital-Electronics LM.Pdf APPROVED BY AICTE NEW DELHI, AFFILIATED TO VTU BELGAUM DEPARTMENT OF ELECTRONICS & COMMUNICATION ENGINEERING DIGITAL ELECTRONICS LABORATORY LAB MANUAL – 15ECL38 III-SEMESTER 2016-2017 Prepared by: Reviewed by: Approved by: Mrs. A. Deepa Mrs. Kavitha M V Dr. A.A. Powly Thomas Assistant Professor Head of the Department Principal Dept. of ECE Dept. of ECE GCEM GCEM GCEM 81/1, 182/1, Hoodi Village, Sonnenahalli, K.R. Puram, Bengaluru, Karnataka-560048. Contents S.No Title Page No 1. Syllabus 2-2 2. Course objective 2-2 3. Course outcome 3-3 4. Do‟s & Don‟ts 4-4 5. List of experiments 5-46 6. Viva questions 47-48 7. Appendix-1 49-52 1 Syllabus DIGITAL ELECTRONICS LABORATORY [As per Choice Based Credit System (CBCS) scheme] SEMESTER – III (EC/TC) Laboratory Code 15ECL38 IA Marks 20 Number of Lecture 01Hr Tutorial (Instructions) Exam Marks 50 Hours/Week + 02 Hours Laboratory Laboratory Experiments: 1. Verify (a) Demorgan‟s Theorem for 2 variables. (b) The sum-of product and product-of-sum expressions using universal gates. 2. Design and implement (a) Full Adder using basic logic gates. (b) Full subtractor using basic logic gates. 3. Design and implement 4-bit Parallel Adder/ subtractor using IC 7483. 4. Design and Implementation of 4-bit Magnitude Comparator using IC 7485. 5. Realize (a) 4:1 Multiplexer using gates. (b) 3-variable function using IC 74151(8:1MUX). 6. Realize 1:8 Demux and 3:8 Decoder using IC74138. 7. Realize the following flip-flops using NAND Gates. (a) Clocked SR Flip-Flop (b) JK Flip-Flop. 8. Realize the following shift registers using IC7474 (a) SISO (b) SIPO (c) PISO (d)PIPO. 9. Realize the Ring Counter and Johnson Counter using IC7476. 10. Realize the Mod-N Counter using IC7490. 11. Simulate Full- Adder using simulation tool. 12. Simulate Mod-8 Synchronous UP/DOWN Counter using Simulation tool. 2 Course Objectives: This laboratory course enables students to get practical experience in design, realization and verification of Demorgan‟s Theorem, SOP, POS forms Full/Parallel Adders, Subtractors and Magnitude Comparator Multiplexer using logic gates Demultiplexers and Decoders Flip-Flops, Shift registers and Counters. Course Outcomes: On the completion of this laboratory course, the students will be able to: Demonstrate the truth table of various expressions and combinational circuits using logic gates. Design, test and evaluate various combinational circuits such as adders, subtractors, comparators, multiplexers and demultiplexers. Construct flips-flops, counters and shift registers. Simulate full adder and up/down counters. 3 Do’s & Dont’s Do’s Conduct yourself in a responsible manner at all times in the laboratory. Dress properly during a laboratory activity. Long hair, dangling jewelry and loose or baggy clothing are a hazard in the laboratory. Observe good housekeeping practices. Replace the materials in proper place after work to keep the lab area tidy. Dont’s Do not wander around the room, distract other students, startle other students or interfere with the laboratory experiments of others. Do not eat food, drink beverages or chew gum in the laboratory and do not use laboratory glassware as containers for food or beverages. Do not open any irrelevant internet sites on lab computer Do not use a flash drive on lab computers. Do not upload, delete or alter any software on the lab PC. Do not switch on the trainer kit without verifying connection. 4 List of Experiments EXPT. PAGE Name of the Experiment NO. NO. Introduction 7 Study of Logic gates To verify (a) Demorgan‟s Theorem for 2 variables 01 10 (b) The sum-of product and product-of-sum expressions using universal gates To design and implement 02 (a) Full Adder using basic logic gates. 14 (b) Full subtractor using basic logic gates. 03 To design and implement 4-bit Parallel Adder/ subtractor using IC 7483. 18 04 Design and Implementation of 4-bit Magnitude Comparator using IC 7485. 21 To realize (a) 4:1 Multiplexer using gates 05 23 (b) 3-variable function using IC 74151(8:1 MUX) 06 Realize 1:8 Demux and 3:8 Decoder using IC74138. 27 To realise the following flip-flops using NAND Gates. 07 29 (a) Clocked SR Flip-Flop (b) JK Flip-Flop To realize the following shift registers using IC7474 08 32 (a) SISO (b) SIPO (c)PISO 09 To realize the Ring Counter and Johnson Counter using IC7476. 39 10 To realize the Mod-N Counter using IC7490. 42 Simulate Full- Adder using simulation tool. 11 44 12 Simulate Mod-8 Synchronous UP/DOWN Counter using simulation tool. 46 5 INTRODUCTION STUDY OF LOGIC GATES Aim: Truth Table verification of logic gates General Characteristics: a. Pin „Vcc‟ on an I.C is to be connected to a regulated power supply of +5 volts. b. Pin „GND‟ on an I.C is to be connected to the power supply ground. c. = High or „1‟ state implies a voltage between 2.4V and 5.0V in the input state. Procedure: 1. Fix the I.C on the I.C trainer kit. 2. Connections are made as shown, using the pin details of the gates. Toggle switches and LED‟s in the trainer are used as inputs and outputs respectively. 3. Switch on the supply on the trainer and verify the truth table of the gates AND GATE (7408) 1 VCC 14 A Y 13 2 12 B Truth Table 3 11 7408 A B Y=A.B 4 10 5 0 0 0 9 0 1 0 1 0 0 6 7 GND 8 1 1 1 6 OR GATE (7432) A 1 VCC 14 Y 13 2 12 B Truth Table 3 11 7432 A B Y=A+B 4 10 5 0 0 0 9 0 1 1 1 0 1 6 7 GND 8 1 1 1 NOT GATE (7404) Truth Table A Y=Ā 0 1 1 0 7 NAND GATE (7400) A Y B Truth Table A B 0 0 1 0 1 1 1 0 1 1 1 0 NOR GATE (7402) A Y 1 VCC 14 13 B Truth Table 2 3 12 A B 7402 11 4 0 0 1 10 0 1 0 5 6 9 1 0 0 7 GND 8 1 1 0 8 EX-OR GATE (7486) A Y 1 VCC 14 13 2 B 12 Truth Table 3 11 7486 A B Y=AB 4 10 5 0 0 0 9 0 1 1 1 0 1 6 7 GND 8 1 1 0 9 Experiment No: 01 Date: VERIFICATION OF DEMORGAN’S THEOREM & REALIZATION SOP &POS EXPRESSIONS AIM: 1. To verify De-Morgan‟s theorem for two variables 2. To realize sum of product (SOP) and product of sum (POS) expressions using OF SOPuniversal AND gatesPOS. EEEEEEEEXPRESSIONSEXPRESSIONS COMPONENTS REQUIRED: IC Trainer kit, IC 7400, IC 7402 THEORY: 1. De Morgan theorem states that a) AB‟=A‟+B‟ b) (A+B)‟=A‟.B‟ De-Morgan‟s theorem is highly useful to simplify the Boolean expression 2. Gates NAND and NOR are known as universal gates, because any logic gates or Boolean expression can be realized by either NAND or NOR gate alone. Each product term in the SOP expression is called minterm and each sum term in the POS expression is called maxterm. SOP expression can be economically realized using NAND gates and POS expression can be economically realized using NOR gates Realization of SOP expression Using NAND gates i)Use NAND gates for each minterm ii) Use one NAND gate for whole summation Using NOR gates i) Invert all the variables in each minterm ii) Use NOR gates for each minterm having inverted variables iii) Use NOR gate for whole summation iv) Use another NOR gate at the output for inverting. Realization of POS expression Using NOR gates i) Use NOR gates for each maxterm ii) Use one NOR gate for whole multiplication 10 Using NAND gates i) Invert all the variables in each maxterm ii) Use NAND gates for each maxterm having inverted variables iii) Use NAND gate for whole multiplication iv) Use another NAND gate at the output for inverting DEMORGAN’S THEOREM: a) AB‟=A‟+B‟ TRUTH TABLE: A B 0 0 1 1 0 1 1 1 1 0 1 1 1 1 0 0 CIRCUIT DIAGRAM: b) (A+B)‟=A‟.B‟ TRUTH TABLE: A B 0 0 1 1 0 1 0 0 1 0 0 0 1 1 0 0 11 CIRCUIT DIAGRAM: b) Realization SOP & POS Expressions: 12 PROCEDURE: 1) Test all the IC packages using digital IC tester. 2) Set up the circuit one by one and verify their truth table. 3) Observe the output corresponding to input combinations and enter it in truth table. RESULT: De-Morgan‟s theorem and postulate of Boolean algebra were verified. Sum of products and product of sum expressions were realized using universal gates 13 Experiment No: 02 (a) Date: FULL ADDER AIM: To realize the Full Adder circuits using basic logic gates and and to verify their truth tables. COMPONENTS REQUIRED: Digital Trainer Kit 01 AND Gate IC 7408 01 OR Gate IC 7432 01 NOT Gate IC 7404 01 NAND Gate (2 Input) IC 7400 03 XOR Gate IC 7486 01 Patch chords / Connecting wires 35 THEORY: Full Adder is a logical circuit, which performs addition of three bits (i.e. addition of two bits with previous carry) and provides an output with a Sum and Carry. It can be built using 2-half adders and an OR gate. PROCEDURE: 1. Connections are made as shown in the logic diagram using the pin details of the gates 2.
Recommended publications
  • Digital Electronic Circuits
    DIGITAL ELECTRONIC CIRCUITS SUBJECT CODE: PEI4I103 B.Tech, Fourth Semester Prepared By Dr. Kanhu Charan Bhuyan Asst. Professor Instrumentation and Electronics Engineering COLLEGE OF ENGINEERING AND TECHNOLOGY BHUBANESWAR B.Tech (E&IE/AE&I) detail Syllabus for Admission Batch 2015-16 PEI4I103- DIGITAL ELECTRONICS University level 80% MODULE – I (12 Hours)1. Number System: Introduction to various number systems and their Conversion. Arithmetic Operation using 1’s and 2`s Compliments, Signed Binary and Floating Point Number Representation Introduction to Binary codes and their applications. (5 Hours) 2. Boolean Algebra and Logic Gates: Boolean algebra and identities, Complete Logic set, logic gates and truth tables. Universal logic gates, Algebraic Reduction and realization using logic gates (3 Hours) 3. Combinational Logic Design: Specifying the Problem, Canonical Logic Forms, Extracting Canonical Forms, EX-OR Equivalence Operations, Logic Array, K-Maps: Two, Three and Four variable K-maps, NAND and NOR Logic Implementations. (4 Hours) MODULE – II (14 Hours) 4. Logic Components: Concept of Digital Components, Binary Adders, Subtraction and Multiplication, An Equality Detector and comparator, Line Decoder, encoders, Multiplexers and De-multiplexers. (5 Hours) 5. Synchronous Sequential logic Design: sequential circuits, storage elements: Latches (SR,D), Storage elements: Flip-Flops inclusion of Master-Slave, characteristics equation and state diagram of each FFs and Conversion of Flip-Flops. Analysis of Clocked Sequential circuits and Mealy and Moore Models of Finite State Machines (6 Hours) 6. Binary Counters: Introduction, Principle and design of synchronous and asynchronous counters, Design of MOD-N counters, Ring counters. Decade counters, State Diagram of binary counters (4 hours) MODULE – III (12 hours) 7.
    [Show full text]
  • EE 2008 Fall 2008 EE 231 Exam 3 November 19, 2008 Name: Show All Work. Partial Credit Will Be Given. No Credit Will Be Given If
    EE 2008 Fall 2008 EE 231 Exam 3 November 19, 2008 Name: Show all work. Partial credit will be given. No credit will be given if an answer appears with no supporting work. 1. Circle the correct answer to questions (a) through (i); give a numerical answer for (j) and (k): (a) A movement of data from right (least significant bit) to left (most significant bit) is what type of shift: A. Right B. Left C. Parallel D. Finite state machine (b) A serial shift register with non-complemented feedback from the output of the last flip-flop to the input of the first is called a: A. Binary Counter B. Gray Code Counter C. Johnson Counter D. Ring Counter (c) A finite state machine in which the output depends on the present state and the present inputs is called a: A. Mealy machine B. Mannie machine C. Moore machine D. Vending machine (d) A finite state machine in which the output depends only on the present state is called a: A. Mealy machine B. Mannie machine C. Moore machine D. Vending machine VCC Q VCC (e) The circuit shown above is used for what purpose? A. Counter B. Pulser C. Shift register D. Switch debounce (f) The multiplexer is an example of what type of Boolean circuit? A. Sequential B. Combinational C. Moore machine D. Analog (g) Which sequential device has an output that is only dependent on the level of the inputs? A. Latch B. Multiplexer C. Flip-Flop D. Clock Tree 1 EE 2008 Fall 2008 module ex3 (input clock, clear, load, x, output reg y) always @(posedge clock, negedge clear) if (clear == 1’b0) y <= 0; else if (load == 1’b0) y <= x; else y <= y; endmodule (h) For the Verilog code above, what type on input is clear? A.
    [Show full text]
  • Laboratory Sequence Circuits
    Laboratory Sequence Circuits Digital Design IE1204/5 Attention! To access the laboratory experiment you must have: • booked a lab time in the reservation system (Daisy). • completed your personal knowledge control on the Web (Web-quiz). • done all preparation tasks mentioned in the lab booklet. If a preparation task has this "label", you must also be prepared to to present an oral solution for your peers at the lab. During the lab you work in groups of two, but both students are responsible individually for their preparation and implementation. Booth students should bring their lab booklets. This frontpage is used as your receipt that the lab is completed. Save the receipt until you have received the full course registered in the database (Ladok). Since this is your receipt you must fill in the table with ink. 1 Introduction This lab is about sequence circuits in synchronously clocked applications. We continue to use standard CMOS circuits. It's the CMOS technology that has enabled extremely low-power battery-operated portable devices. CMOS gates only consume power at the clock pulse edges! (In the lab equipment it is the LEDs that are the big "power consumers"). On the breadboard you will connect and measure some basic sequence circuits like latches and clocked D flip-flops. With a systematic method you construct a state machine, a controlled counter, which you then test in the laboratory. Other sequence circuits with simple structure, such as feedback shift registers, can often be examined directly. The task will be to "control" such a sequence circuit to run through various cycles.
    [Show full text]
  • Final-Del-Lab-Manual-2018-19
    LAB MANUAL DIGITAL ELECTRONICS LABORATORY Subject Code: 210246 2018 - 19 INDEX Batch : - Page Date of Date of Signature of Sr.No Title No Conduction Submission Staff GROUP - A Realize Full Adder and Subtractor using 1 a) Basic Gates and b) Universal Gates Design and implement Code converters-Binary to Gray and BCD to 2 Excess-3 Design of n-bit Carry Save Adder (CSA) and Carry Propagation Adder (CPA). Design and Realization of BCD 3 Adder using 4-bit Binary Adder (IC 7483). Realization of Boolean Expression for suitable combination logic using MUX 4 74151 / DMUX 74154 Verify the truth table of one bit and two bit comparators using logic gates and 5 comparator IC Design & Implement Parity Generator 6 using EX-OR. GROUP - B Flip Flop Conversion: Design and 7 Realization Design of Ripple Counter using suitable 8 Flip Flops a. Realization of 3 bit Up/Down Counter using MS JK Flip Flop / D-FF 9 b. Realization of Mod -N counter using ( 7490 and 74193 ) Design and Realization of Ring Counter 10 and Johnson Ring counter Design and implement Sequence 11 generator using JK flip-flop INDEX Batch : - Design and implement pseudo random 12 sequence generator. Design and implement Sequence 13 detector using JK flip-flop Design of ASM chart using MUX 14 controller Method. GROUP - C Design and Implementation of 15 Combinational Logic using PLAs. Design and simulation of - Full adder , 16 Flip flop, MUX using VHDL (Any 2) Use different modeling styles. Design & simulate asynchronous 3- bit 17 counter using VHDL. Design and Implementation of 18 Combinational Logic using PALs GROUP - D Study of Shift Registers ( SISO,SIPO, 19 PISO,PIPO ) Study of TTL Logic Family: Feature, 20 Characteristics and Comparison with CMOS Family Study of Microcontroller 8051 : 21 Features, Architecture and Programming Model ` Digital Electronics Lab (Pattern 2015) GROUP - A Digital Electronics Lab (Pattern 2015) Assignment: 1 Title: Adder and Subtractor Objective: 1.
    [Show full text]
  • Draft Chapter on the ENIAC Circuits
    CHAPTER 1 CIRCUITS Section 1. Vacuum Tube Basics 1. Introduction During the 1940s, when the ENIAC was under construction, the basic principles of vacuum tubes and their circuits were familiar to most electrical engineers. Today, however, that knowledge is far less common. For that reason, we begin our discussion of the circuit design of the ENIAC with a brief look at how vacuum tubes work and how they are used as switching elements in circuits. Conversely, the reader is expected to be somewhat familiar with the functions of other circuit components, especially resistors and capacitors. 2. Tube Structure As the name implies a vacuum tube operates in a vacuum. This allows the electrons (e−) to flow freely between the electrodes in the tube without being impeded by gas molocules. That vacuum is usually contained in a glass envelope, though sometimes we find them in metal cans. These devices contain at least two electrodes, and those that are used in logic circuits that we study here all have at least three. a. Cathode. The cathode is the electrode from which the electrons origi- nate. To cause it to give off electrons, its temperature is raised with a heater. In some tubes the heater is the cathode, but for the tubes used in the logic of the ENIAC, the heater is inside a small metal can. This can is coated with a mixture of oxides, such as those of barium and strontium, that efficiently emit electrons at lower temperatures than the heater itself. b. Plate. The plate (or sometimes anode) is physically designed as a metal can surrounding the cathode with some free space between them.
    [Show full text]
  • Design and Implementation of an On-Chip Test Generation Scheme
    Available online at www.sciencedirect.com ScienceDirect Procedia Computer Science 46 ( 2015 ) 1409 – 1416 International Conference on Information and Communication Technologies (ICICT 2014) Design and Implementation of an On-Chip Test Generation Scheme Based on Reconfigurable Run-Time Programmable and Multiple Twisted-Ring Counters Aida S Tharakana*, Binu K Mathewb a,bDept. of Electronics and Communication, Saintgits College of Engineering, Kottayam-686532, India Abstract Built-in-self-test (BIST) has emerged as a very effective solution to VLSI testing problems. Related work based on single fixed- order twisted-ring-counter design requires longer testing time to achieve high fault coverage and large storage space to store the seeds and the control data. By using multiple programmable twisted-ring-counters (PTRC), a considerable reduction in test application cycles were achieved. In this paper, an on-chip test generation scheme based on reconfigurable run-time programmable multiple twisted-ring-counters is proposed to generate more number of different test patterns based on the requirements. The design was modeled in VHDL and simulated and synthesized using Xilinx ISE 14.2. ©© 2015 2014 The The Authors. Authors. Published Published by by Elsevier Elsevier B.V. B.V. This is an open access article under the CC BY-NC-ND license (http://creativecommons.org/licenses/by-nc-nd/4.0/). Peer-review under responsibility of organizing committee of the International Conference on Information and Communication Peer-review under responsibility of organizing committee of the International Conference on Information and Communication Technologies (ICICT 2014). Technologies (ICICT 2014) Keywords: Fault Coverage;Logic BIST;Reconfiguration;Twisted-ring-counters 1.
    [Show full text]
  • An Analysis System for the Remote Determination of Oxygen with Data Transmission Via Pulse Duration Telemetry
    AN ABSTRACT OF THE THESIS OF JOHN SCOTT SPRINGER for the MASTER OF SCIENCE (Name) (Degree) in CHEMISTRY presented on GC //,9" ' (Major) (Date) Title: AN ANALYSIS SYSTEM FOR THE REMOTE DETERMINATION OF OXYGEN WITH DATA TRANSMISSION VIA PULSE DURA- TION TELEMETRY Redacted for Privacy Abstract approved: Harj eund An instrument was developed which performs analysis of the oxygen content of air by means of acommercial polarographic oxygen electrode.The oxygen analyzer is part of a portable instrument which converts the current from the oxygen electrode into a pulse whose width is proportional to the oxygen concentration.This pulse is suitable for transmission by FM telemetry.The instrument is capable of handling up to six additional channels of pulse-width infor- mation.The seven channels, plus a channel of synchronizing infor- mation, are transmitted sequentially over a radio or wired link to demultiplexing circuitry, which separates the pulses into different channels.The pulse width is then converted into a voltage analog suitable for recording. The system shows no detectable drift over long periods of operation other than that due to the temperature coefficient of the oxygen electrode.Linearity of the instrument is excellent except in the pulse-width to analog voltage converter,which exhibits a slightly curved response. As a result, the plot of oxygenconcentra- tion at the electrode versus voltage output to the recorderis not quite a straight line.For changes of less than 5 or 10% oxygen, the nonlinearity is not detectable on a recorder.
    [Show full text]
  • 8-Bit 250-MS/S ADC Based on SAR Architecture with Novel Comparator at 70 Nm Technology Node
    View metadata, citation and similar papers at core.ac.uk brought to you by CORE provided by Elsevier - Publisher Connector Available online at www.sciencedirect.com ScienceDirect Procedia Computer Science 79 ( 2016 ) 589 – 596 7th International Conference on Communication, Computing and Virtualization 2016 8-Bit 250-MS/s ADC Based on SAR Architecture with Novel Comparator at 70 nm Technology Node Shreeniwas Daulatabada, Vaibhav Neemab,*, Ambika Prasad Shahc, Praveen d Singh aElectrical Engineering Department, Indian Institute of Technology, Bombay 400076, India b,c,dElectronics & Telecommunication Engineering Department, IET-Devi Ahilya University, Indore 452017,India Abstract The data converters are prerequisite for digital processing of analog signals. SAR ADC is preferred for their good balance between speed, area and power considerations. In this paper, we proposed a novel comparator design based on double tail architecture for an 8-bit successive approximation register analog-to-digital converter. We implemented 8 bit analog-to-digital converter contains a Successive Approximation register , Ring counter , SR-Latch, R2R Ladder type digital-to-analog convertor and a proposed novel comparator. The circuit is simulated using Predictive Technology model 70nm Technology using Tanner EDA tool. The average INL and DNL are less than 1 LSB and 1 LSB, respectively. At the sample rate of 250 MHz (2GHz clock Freq) and supply voltage of 1.2 V, the ADC consumed about 1.3 mW. The analog-to-digital converter using proposed comparator deign consumes less power and thus can be used in portable device. © 2016 The Authors. Published by Elsevier B.V. This is an open access article under the CC BY-NC-ND license (©http://creativecommons.org/licenses/by-nc-nd/4.0/ 2016 The Authors.
    [Show full text]
  • ELEC 6270 – Low Power Design of Electric Circuits
    ELEC 6270 – Low Power Design of Electric Circuits Four-bit Binary Counters with Binary Code, Gray Code and One-Hot Code Xue Xia Spring 2015 Final Project both connected to the ground. Description 4 bit Binary Code Encoding Considering using binary code, gray code, and one-hot code in digital circuits, binary code Binary and gray code can represent n states with Q3 Q2 Q1 Q0 log(n) bits code, while one-hot code would 0 0 0 0 0 need n bits for the same function. However, 1 0 0 0 1 binary code and gray code need gates circuits 2 0 0 1 0 for decoding, while one-hot code machine just need to find the location of high value bit to 3 0 0 1 1 achieve the state function. 4 0 1 0 0 5 0 1 0 1 D flip flop 6 0 1 1 0 7 0 1 1 1 8 1 0 0 0 9 1 0 0 1 10 1 0 1 0 11 1 0 1 1 12 1 1 0 0 13 1 1 0 1 14 1 1 1 0 15 1 1 1 1 Assume that Q3, Q2, Q1, Q0 represent the Fig.1 D Flip Flop present state, and Q3#, Q2#, Q1#, Q0# are for the next state. True Table Using Karnaugh map, the function equations are showed as below. inputs outputs PR' CLR' CLK D Q Q' ------ ------ ------ 0 1 X X 1 0 Q3# = Q3 Q1 + Q3 Q2 Q1 + Q3 Q2Q1Q0 + 1 0 X X 0 1 ------ Q3Q2Q1Q0 0 0 X X X X ------ ------ ------ 1 1 ↑ 1 1 0 Q2# = Q2Q1 + Q2Q1Q0 + Q2Q1Q0 1 1 ↑ 0 0 1 ------ ------ 1 1 0 X Q0 Q0' Q1# = Q1Q0 +Q1Q0 ------ I choose to use d flip flops to complete Q0# = Q0 counter circuit design.
    [Show full text]
  • Some Computer Prehistory and Early History
    Some Computer Prehistory and Early History Andru Luvisi Sonoma State University ABSTRACT This talk will superficially breeze through a few thou- sand years of computing and calculating history, discuss some ideas and technologies that played key roles in early computing, and describe some features of a few early comput- ing devices. Special emphasis will be given to the ENIAC and some issues in decimal arithmetic. The latest version of this handout can be found at http://www.sonoma.edu/users/l/luvisi/somehist/ 1. Decimal (base ten) Subtraction via Complements Most of the devices discussed in this talk work in base ten. When a device only tracks a finite number of digits (as any real device must), aphenomenon known as rollover occurs at the top of the device’s range. For example, if a device can only work with two decimal digits, then when 01 is added to 99, the result is 00. When 2 is added to 99, the result is 01. With only two digits, it turns out that adding 99 is equivalent to sub- tracting one, adding 98 is equivalent to subtracting 2, and so on. For example, 54 + 98 = (1)52. Iplace the "1" in parenthesis to indicate that it is forgotten by a two digit device. In general, adding 100-n is equivalent to subtracting n. In this case, 100-n is known as the ten’s complement of n, meaning that number which, when added to n, produces a power of ten (100 in the two digit case)[28]. But how do we produce 100-n on a device that can’t subtract? It turns out that 100-n is just one higher than 99-n, and 99-n is extremely easy to calculate.
    [Show full text]
  • Synchronous Counter Synchronous (Parallel) Counters
    Synchronous Counter Synchronous (Parallel) Counters . Synchronous (parallel) counters: the flip-flops are clocked at the same time by a common clock pulse. We can design these counters using the sequential logic design process (covered in Lecture #12). Example: 2-bit synchronous binary counter (using T flip-flops, or JK flip-flops with identical J,K inputs). Present Next Flip-flop state state inputs 00 01 + + A1 A0 A1 A0 TA1 TA0 0 0 0 1 0 1 11 10 0 1 1 0 1 1 1 0 1 1 0 1 1 1 0 0 1 1 Synchronous (Parallel) Counters . Example: 2-bit synchronous binary counter (using T flip-flops, or JK flip-flops with identical J,K inputs). Present Next Flip-flop state state inputs + + A1 A0 A1 A0 TA1 TA0 TA1 = A0 0 0 0 1 0 1 0 1 1 0 1 1 TA0 = 1 1 0 1 1 0 1 1 1 0 0 1 1 1 A0 A1 J Q J Q C C Q' Q' K K CLK Synchronous (Parallel) Counters 3 Synchronous (Parallel) Counters . Example: 3-bit synchronous binary counter (using T flip-flops, or JK flip-flops with identical J, K inputs). Present Next Flip-flop state state inputs + + + A2 A1 A0 A2 A1 A0 TA2 TA1 TA0 0 0 0 0 0 1 0 0 1 0 0 1 0 1 0 0 1 1 0 1 0 0 1 1 0 0 1 0 1 1 1 0 0 1 1 1 1 0 0 1 0 1 0 0 1 1 0 1 1 1 0 0 1 1 1 1 0 1 1 1 0 0 1 1 1 1 0 0 0 1 1 1 A1 A1 A1 1 1 1 1 1 1 1 A2 1 A2 1 1 A2 1 1 1 1 A0 A0 A0 TA2 = A1.A0 TA1 = A0 TA0 = 1 CS1104-13 Synchronous (Parallel) Counters 4 Synchronous (Parallel) Counters .
    [Show full text]
  • Long and Fast Up/Down Counters
    722 IEEE TRANSACTIONS ON COMPUTERS, VOL. 47, NO. 7, JULY 1998 Long and Fast Up/Down Counters Mircea R. Stan, Member, IEEE, Alexandre F. Tenca, and Milos D. Ercegovac, Member, IEEE Computer Society Abstract—This paper presents recent advances in the design of constant-time up/down counters in the general context of fast counter design. An overview of existing techniques for the design of long and fast counters reveals several methods closely related to the design of fast adders, as well as some techniques that are only valid for counter design. The main idea behind the novel up/down counters is to recognize that the only extra difficulty with an up/down (vs. up-only or down-only) counter is when the counter changes direction from counting up to counting down (and vice-versa). For dealing with this difficulty, the new design uses a “shadow” register for storing the previous counter state. When counting only up or only down, the counter functions like a standard up-only or down-only constant time counter, but, when it changes direction instead of trying to compute the new value (which typically requires carry propagation), it simply uses the contents of the shadow register which contains the exact desired previous value. An alternative approach for restoring the previous state in constant time is to store the carry bits in a Carry/Borrow register. Index Terms—Binary counter, constant time counter, serial counter, parallel counter, prescaler, up/down counter. ——————————F—————————— 1INTRODUCTION OUNTING, when viewed as incrementing an integer • reversible—the counter counts “up” (increments) when C number by one, is one of the simplest arithmetic op- the UP/ DOWN input signal is inactive and counts erations, and many design techniques used for speeding up “down” (decrements) when the UP/ DOWN input more complex arithmetic operations, especially addition, signal is active, can be applied to counters and exemplified with their help.
    [Show full text]