Realization of All Logic Gates with Nand Gate Using Optispice

Total Page:16

File Type:pdf, Size:1020Kb

Realization of All Logic Gates with Nand Gate Using Optispice International Journal of Industrial Electronics and Electrical Engineering, ISSN(p): 2347-6982, ISSN(e): 2349-204X Volume-6, Issue-3, Mar.-2018, http://ijieee.org.in REALIZATION OF ALL LOGIC GATES WITH NAND GATE USING OPTISPICE 1SONALI DASH, 2ABHIJEET SINGH, 3ANKIT MISHRA, 4DHEERAJ ANAND 1,2,3,4Department of Electronics and Telecommunication Engineering, Bharati Vidyapeeth (Deemed To Be) University, College of Engineering, Pune, Maharashtra Abstract - This study implements NAND gate as universal gate to realize other gates (XOR, OR, AND, NOT) using Hierarchical model in OptiSpice Software. Keywords - Logical gate, Universal gate, Hierarchical model, Sub-circuits I. INTRODUCTION multiplexers, ALUs(Arithmetic Logic Units). They may use memory or can be memory-less. Currently Logic gates are the fundamental block of any digital logic gates are also being realized using Field Effect circuit. They are used to implement any Boolean Transistors(FETs), in general, and Metal Oxide function. They have one or more binary input and Semiconductor Field Effect Transistor(MOSFETs), in produce a single output. It represents a value using a particular. binary low(0) or binary high(1). Charles Sanders Peirce can be regarded as the father of The output of a gate can be used to drive the input of Universal gates as he was the one who first realised any other gate. But, there is a limit to it, which is their implementation (during 1880)[3]. called ‘fan-out’ limit. Hence, output of any gate can drive only finite number of gates. Initially, relays were used to realize logic gates which later got replaced by vacuum tubes. Later, transistors Similarly, there is also a component of delay in the replaced vaccum tubes to implement logic gates. Now, circuits. In cascasded circuits, it is equal to the sum of programmable logic gates are also available which can individual circuits. This leads to delay in high speed be programmed using FPGA(Field Programmable circuits which employ multiple gates. Also, if there are Gate Array).The advantage of programmable logic multiple inputs in the circuit, it can lead to more delay. gates is that a large number of gates can be integrated Universal gates are used to implement any of the other into a single package. Logic gates can also be gate type [1]. They do not need any other gate to simulated using softwares such as OptiSpice. implement the circuit. There are two universal gates. NAND and NOR. NAND gate is the complement of Semi-conductor logic gates are used widely as they output of an AND gate whereas NOR gate is the also act as high voltage amplifier, hence, limiting the output of the complement of a NOR gate. The losses in propagation. universal gates are economical and their fabrication is also easier to implement than other gates, Currently. Nano-technology is also being used to implement logic gates. Active research is going on in The NAND gate exhibits the property of functional the field of molecular logic gates. completeness [2].It can be used to get the truth table of any other gate, i.e. ,implementation of any gate and it’s III. THEORY relative truth table can be achieved. A logic gate is an elementary building block of a It is also called Sheffer stroke. It yields true if any digital circuit. Most logic gates have 2 inputs and one condition is false, and false if all conditions are true. output. At any given moment, each terminal is in one The term ‘alternate denial’ is also used to represent a among the 2 binary conditions low (0) or high NAND gate. (1), delineated by totally different voltage levels. The logic state of a terminal can, and usually will, II. LITERATURE SURVEY change often, because the circuit processes data. In most logic gates, the low state is close to zero volts (0 The logic gates are the physical implementation V), whereas the high state is close to 5 volts positive Binary logic. Traditionally, they are being (+5 V). There are seven basic logic gates: AND, OR, implemented using diodes or transistors as their XOR, NOT, NAND, NOR, and XNOR. primary device which act as electronic switch. All mathematical operations and algorithms can be The and gate is so named because, if zero is implemented using Boolean logic and hence logic named "false" and one is named "true," the gate gates. The logic gates may include multiplexers, de- acts within the same manner as the logical "and" Realization of all Logic Gates with NAND Gate using OptiSpice 9 International Journal of Industrial Electronics and Electrical Engineering, ISSN(p): 2347-6982, ISSN(e): 2349-204X Volume-6, Issue-3, Mar.-2018, http://ijieee.org.in operator. The subsequent illustration and table show A logical inverter, also called as NOT gate to the circuit image and logic combinations for an AND differentiate it from other types of electronic inverter gate. (In the image, the input terminals are at left and devices, has only one input. It reverses the logic state. the output terminal is at right.) The output is “true” when each inputs are "true." Otherwise, the output is "false." Inverter or NOT gate Input Output AND gate 1 0 Input 1 Input 2 Output 0 1 0 0 0 The NAND gate operates as an AND gate followed by 0 1 0 a NOT gate. It acts in the manner of the logical 1 0 0 operation "and" followed by negation. The output is "false" if both inputs are "true." Otherwise, the output 1 1 1 is "true." The OR gate gets its name from the very fact that it behaves like the fashion of the logical inclusive "or". The output is "true" if either or each of the input is "true". If each input is "false," then the output NAND gate is "false." Input 1 Input 2 Output 0 0 1 0 1 1 OR gate 1 0 1 1 1 0 Input 1 Input 2 Output 0 0 0 CMOS (complementary metal-oxide semiconductor) is 0 1 1 the semiconductor technology employed in the 1 0 1 transistors that are manufactured into most of today’s computer microchips. 1 1 1 Semiconductors are manufactured from Si and Ge, The XOR (exclusive- OR) gate acts within the same materials that "sort of" conduct manner as the logical "either/or". The output is "true" electricity, however not enthusiastically. Areas of if either, but not each, of the inputs are "true". The these materials that are "doped" by adding impurities output is "false" if each input is "false" or become complete conductors of if each input are "true". A different way of viewing either additional electrons with a negative charge (N- this circuit is to watch that the output is one if the type transistors) or of positive charge carriers (P-type inputs are different, however zero if the transistors). In CMOS technology, each sort inputs are identical. of transistors are employed in a complementary way to form a current gate that forms an efficient means of electrical management. CMOS transistors use nearly no power when not needed because the current direction changes faster, however, the XOR gate transistors become hot. This characteristic tends to limit the speed at which microprocessors can operate. Input 1 Input 2 Output 0 0 0 IV. RESULTS AND ANALYSIS 0 1 1 NAND is used as Universal gate to form all the gates 1 0 1 using Hierarchy in OptiSpice . While NAND itself is 1 1 0 simulated using CMOS as follows: Realization of all Logic Gates with NAND Gate using OptiSpice 10 International Journal of Industrial Electronics and Electrical Engineering, ISSN(p): 2347-6982, ISSN(e): 2349-204X Volume-6, Issue-3, Mar.-2018, http://ijieee.org.in After launching the Waveform Viewer, we get the following output waveform: NAND implementation using CMOS OUTPUT for XOR The two V input values are given as follows: pulse Similarly, AND gate is taken as Parent of the heirarchy Two Pulse Voltages are given as inputsas well as a DC which is followed by sub-circuits : bias is provied with 15V.The values of Pulse Voltages are as follows: Vpulse 1 is given with initial volage of 0.0 V with Pulse value of 5V.Time delay is of 5ns. Pulse width is of 4ns and period is of 8ns. Vpulse 2 has initial value of 0.0V and Pulse voltage of 5V with 0 time delay. Pulse width is of 2ns and period is of 4ns. XOR implementation as parent cicuit of heirarchy: Parent circuit of AND While sub-cicuit of AND gate is formed by NAND in the second level of heirarchy: XOR parent cicuit Furthermore, Sub-cicuit of XOR from NAND is formed: Output waverform after running simulation of NAND: Realization of all Logic Gates with NAND Gate using OptiSpice 11 International Journal of Industrial Electronics and Electrical Engineering, ISSN(p): 2347-6982, ISSN(e): 2349-204X Volume-6, Issue-3, Mar.-2018, http://ijieee.org.in NAND output Now, NOT gate is taken as parent cicuit of heirarchy. NOT gate has an important role in optical circuits as it is used as switch. Now, OR gate is taken as parent of the heirarchy which is to be implemented using sub-circuits: Parent circuit of OR Parent circuit of NOT In the sub-circuit layer,OR is implemented using universal NAND gate: NAND gate is used in the sub-circuit to form a NOT gate. Finally ,Output waveform is noted down: Output waveform of OR gate is noted down: Realization of all Logic Gates with NAND Gate using OptiSpice 12 International Journal of Industrial Electronics and Electrical Engineering, ISSN(p): 2347-6982, ISSN(e): 2349-204X Volume-6, Issue-3, Mar.-2018, http://ijieee.org.in CONCLUSION By implementing Heirarchical logic to form all logic gates in OptiSpice, we encounter NOT gate formed through universal NAND gate.This NOT gate is to be further implemented as SWITCH in Optical Laser circuits.
Recommended publications
  • Application: Digital Logic Circuits
    SECTION 2.4 Application: Digital Logic Circuits Copyright © Cengage Learning. All rights reserved. Application: Digital Logic Circuits Switches “in series” Switches “in parallel” Change closed and on are replaced by T, open and off are replaced by F? Application: Digital Logic Circuits • More complicated circuits correspond to more complicated logical expressions. • This correspondence has been used extensively in design and study of circuits. • Electrical engineers use language of logic when refer to values of signals produced by an electronic switch as being “true” or “false.” • Only that symbols 1 and 0 are used • symbols 0 and 1 are called bits, short for binary digits. • This terminology was introduced in 1946 by the statistician John Tukey. Black Boxes and Gates Black Boxes and Gates • Circuits: transform combinations of signal bits (1’s and 0’s) into other combinations of signal bits (1’s and 0’s). • Computer engineers and digital system designers treat basic circuits as black boxes. • Ignore inside of a black box (detailed implementation of circuit) • focused on the relation between the input and the output signals. • Operation of a black box is completely specified by constructing an input/output table that lists all its possible input signals together with their corresponding output signals. Black Boxes and Gates One possible correspondence of input to output signals is as follows: An Input/Output Table Black Boxes and Gates An efficient method for designing more complicated circuits is to build them by connecting less complicated black box circuits. Gates can be combined into circuits in a variety of ways. If the rules shown on the next page are obeyed, the result is a combinational circuit, one whose output at any time is determined entirely by its input at that time without regard to previous inputs.
    [Show full text]
  • Shalack V.I. Semiotic Foundations of Logic
    Semiotic foundations of logic Vladimir I. Shalack abstract. The article offers a look at the combinatorial logic as the logic of signs operating in the most general sense. For this it is proposed slightly reformulate it in terms of introducing and replacement of the definitions. Keywords: combinatory logic, semiotics, definition, logic founda- tions 1 Language selection Let’s imagine for a moment what would be like the classical logic, if we had not studied it in the language of negation, conjunction, dis- junction and implication, but in the language of the Sheffer stroke. I recall that it can be defined with help of negation and conjunction as follows A j B =Df :(A ^ B): In turn, all connectives can be defined with help of the Sheffer stroke in following manner :A =Df (A j A) A ^ B =Df (A j B) j (A j B) A _ B =Df (A j A) j (B j B) A ⊃ B =Df A j (B j B): Modus ponens rule takes the following form A; A j (B j B) . B 226 Vladimir I. Shalack We can go further and following the ideas of M. Sch¨onfinkel to define two-argument infix quantifier ‘jx’ x A j B =Df 8x(A j B): Now we can use it to define Sheffer stroke and quantifiers. x A j B =Df A j B where the variable x is not free in the formulas A and B; y x y 8xA =Df (A j A) j (A j A) where the variable y is not free in the formula A; x y x 9xA =Df (A j A) j (A j A) where the variable y is not free in the formula A.
    [Show full text]
  • CS 173: Discrete Structures, Spring 2012 Homework 1 Solutions
    CS 173: Discrete Structures, Spring 2012 Homework 1 Solutions This homework contains 3 problems worth a total of 25 points. 1. [1 point] Finding information on Piazza How many pet rats does Margaret’s family have? (Hint: see Piazza.) Solution: Margaret’s family has six pet rats. 2. [4 points] Demographic Survey 3. [20 points] Logic operators The late 19th century philosopher Charles Peirce (rhymes with ‘hearse,’ not ‘fierce’) wrote about a set of logically dual operators and, in his writings, coined the term ‘Ampheck’ to describe them. The two most common Ampheck operators, the Peirce arrow (written ↓ or ⊥ or ∨ by different people) and the Sheffer stroke (written ↑ or | or ∧ by different people), are defined by the following truth table: p q p ↑ q p ↓ q T T F F T F T F F T T F F F T T (a) (4 points) The set of operators {∧, ∨, ¬} is functionally complete, which means that every logical statement can be expressed using only these three operators. Is the smaller set of operators {∨, ¬} also functionally complete? Explain why or why not. Solution: By De Morgan’s laws, ¬(¬p∨¬q) ≡ ¬¬p∧¬¬q ≡ p∧q So every logical statement using the ∧ operator can be rewritten in terms of the ∨ and ¬ operators. Since every logical statement can be expressed in terms of the ∧, ∨, and ¬ operators, this implies that every logical statement can be expressed in terms of the ∨ and ¬ operators, and so {∨, ¬} is functionally complete. (b) (4 points) Express ¬p using only the Sheffer stroke operation ↑. Solution: Note that ¬p is true if and only if p is false.
    [Show full text]
  • Boolean Logic
    Boolean logic Lecture 12 Contents . Propositions . Logical connectives and truth tables . Compound propositions . Disjunctive normal form (DNF) . Logical equivalence . Laws of logic . Predicate logic . Post's Functional Completeness Theorem Propositions . A proposition is a statement that is either true or false. Whichever of these (true or false) is the case is called the truth value of the proposition. ‘Canberra is the capital of Australia’ ‘There are 8 day in a week.’ . The first and third of these propositions are true, and the second and fourth are false. The following sentences are not propositions: ‘Where are you going?’ ‘Come here.’ ‘This sentence is false.’ Propositions . Propositions are conventionally symbolized using the letters Any of these may be used to symbolize specific propositions, e.g. :, Manchester, , … . is in Scotland, : Mammoths are extinct. The previous propositions are simple propositions since they make only a single statement. Logical connectives and truth tables . Simple propositions can be combined to form more complicated propositions called compound propositions. .The devices which are used to link pairs of propositions are called logical connectives and the truth value of any compound proposition is completely determined by the truth values of its component simple propositions, and the particular connective, or connectives, used to link them. ‘If Brian and Angela are not both happy, then either Brian is not happy or Angela is not happy.’ .The sentence about Brian and Angela is an example of a compound proposition. It is built up from the atomic propositions ‘Brian is happy’ and ‘Angela is happy’ using the words and, or, not and if-then.
    [Show full text]
  • Propositional Logic
    Mathematical Logic (Based on lecture slides by Stan Burris) George Voutsadakis1 1Mathematics and Computer Science Lake Superior State University LSSU Math 300 George Voutsadakis (LSSU) Logic January 2013 1 / 86 Outline 1 Propositional Logic Connectives, Formulas and Truth Tables Equivalences, Tautologies and Contradictions Substitution Replacement Adequate Sets of Connectives Disjunctive and Conjunctive Forms Valid Arguments, Tautologies and Satisfiability Compactness Epilogue: Other Propositional Logics George Voutsadakis (LSSU) Logic January 2013 2 / 86 Propositional Logic Connectives, Formulas and Truth Tables Subsection 1 Connectives, Formulas and Truth Tables George Voutsadakis (LSSU) Logic January 2013 3 / 86 Propositional Logic Connectives, Formulas and Truth Tables The Alphabet: Connectives and Variables The following are the basic logical connectives that we use to connect logical statements: Symbol Name Symbol Name 1 true ∧ and 0 false ∨ or ¬ not → implies ↔ iff In the same way that in algebra we use x, y, z,... to stand for unknown or varying numbers, in logic we use the propositional variables P, Q, R,... to stand for unknown or varying propositions or statements; Using the connectives and variables we can construct propositional formulas like ((P → (Q ∨ R)) ∧ ((¬Q) ↔ (1 ∨ P))). George Voutsadakis (LSSU) Logic January 2013 4 / 86 Propositional Logic Connectives, Formulas and Truth Tables Inductive (Recursive) Definition of Propositional Formulas Propositional formulas are formally built as follows: Every propositional variable P is a propositional formula; the constants 0 and 1 are propositional formulas; if F is a propositional formula, then (¬F ) is a propositional formula; if F and G are propositional formulas, then (F ∧ G), (F ∨ G), (F → G) and (F ↔ G) are propositional formulas.
    [Show full text]
  • Combinational Circuits
    Combinational Circuits Jason Filippou CMSC250 @ UMCP 06-02-2016 Jason Filippou (CMSC250 @ UMCP) Circuits 06-02-2016 1 / 1 Outline Jason Filippou (CMSC250 @ UMCP) Circuits 06-02-2016 2 / 1 Hardware design levels Hardware design levels Jason Filippou (CMSC250 @ UMCP) Circuits 06-02-2016 3 / 1 Hardware design levels Levels of abstraction for ICs Small Scale Integration: ≈ 10 boolean gates Medium Scale Integration: > 10; ≤ 100 Large Scale Integration: Anywhere between 100 and 30; 000. Very Large Scale Integration: Up to 150; 000. Very Very Large Scale Integration: > 150; 000. Jason Filippou (CMSC250 @ UMCP) Circuits 06-02-2016 4 / 1 Hardware design levels Example schematic Figure 1: VLSI schematic for a professional USB interface for Macintosh PCs. Jason Filippou (CMSC250 @ UMCP) Circuits 06-02-2016 5 / 1 Hardware design levels SSI Consists of circuits that contain about 10 gates. 16-bit adders. Encoders / Decoders. MUX/DEMUX. ::: All our examples will be at an SSI level. Logic Design is the branch of Computer Science that essentially analyzes the kinds of circuits and optimizations done at an SSI/MSI level. We do not have such a course in the curriculum, but you can expect to be exposed to it if you ever take 411. Jason Filippou (CMSC250 @ UMCP) Circuits 06-02-2016 6 / 1 Combinational Circuit Design Combinational Circuit Design Jason Filippou (CMSC250 @ UMCP) Circuits 06-02-2016 7 / 1 A sequential circuit is one where this constraint can be violated. Example: Flip-flops (yes, seriously). In this course, we will only touch upon combinational circuits. Combinational Circuit Design Combinational vs Sequential circuits A combinational circuit is one where the output of a gate is never used as an input into it.
    [Show full text]
  • Logic and Bit Operations
    Logic and bit operations • Computers represent information by bits. • A bit has two possible values, namely zero and one. This meaning of the word comes from binary digit, since zeroes and ones are the digits used in binary representations of numbers. The well-known statistician John Tuley introduced this terminology in 1946. (There were several other suggested words for a binary digit, including binit and bigit, that never were widely accepted.) • A bit can be used to represent a truth value, since there are two truth values, true and false. • A variable is called a Boolean variable if its values are either true or false. • Computer bit operations correspond to the logical connectives. We will also use the notation OR, AND and XOR for _ , ^ and exclusive _. • A bit string is a sequence of zero or more bits. The length of the string is the number of bits in the string. 1 • We can extend bit operations to bit strings. We define bitwise OR, bitwise AND and bitwise XOR of two strings of the same length to be the strings that have as their bits the OR, AND and XOR of the corresponding bits in the two strings. • Example: Find the bitwise OR, bitwise AND and bitwise XOR of the bit strings 01101 10110 11000 11101 Solution: The bitwise OR is 11101 11111 The bitwise AND is 01000 10100 and the bitwise XOR is 10101 01011 2 Boolean algebra • The circuits in computers and other electronic devices have inputs, each of which is either a 0 or a 1, and produce outputs that are also 0s and 1s.
    [Show full text]
  • Form and Content: an Introduction to Formal Logic
    Connecticut College Digital Commons @ Connecticut College Open Educational Resources 2020 Form and Content: An Introduction to Formal Logic Derek D. Turner Connecticut College, [email protected] Follow this and additional works at: https://digitalcommons.conncoll.edu/oer Recommended Citation Turner, Derek D., "Form and Content: An Introduction to Formal Logic" (2020). Open Educational Resources. 1. https://digitalcommons.conncoll.edu/oer/1 This Book is brought to you for free and open access by Digital Commons @ Connecticut College. It has been accepted for inclusion in Open Educational Resources by an authorized administrator of Digital Commons @ Connecticut College. For more information, please contact [email protected]. The views expressed in this paper are solely those of the author. Form & Content Form and Content An Introduction to Formal Logic Derek Turner Connecticut College 2020 Susanne K. Langer. This bust is in Shain Library at Connecticut College, New London, CT. Photo by the author. 1 Form & Content ©2020 Derek D. Turner This work is published in 2020 under a Creative Commons Attribution- NonCommercial-NoDerivatives 4.0 International License. You may share this text in any format or medium. You may not use it for commercial purposes. If you share it, you must give appropriate credit. If you remix, transform, add to, or modify the text in any way, you may not then redistribute the modified text. 2 Form & Content A Note to Students For many years, I had relied on one of the standard popular logic textbooks for my introductory formal logic course at Connecticut College. It is a perfectly good book, used in countless logic classes across the country.
    [Show full text]
  • On a New Construction Method of Fuzzy Sheffer Stroke Operation
    On a New Construction Method of Fuzzy Sheffer Stroke Operation P. Berruezo P. Helbin W. Niemyska S. Massanet D. Ruiz-Aguilera M. Baczynski´ SCOPIA research group Dept. Maths and Computer Science University of the Balearic Islands Palma, Mallorca University of Silesia in Katowice http://scopia.uib.eu Outline 1 Motivation 2 Fuzzy Sheffer stroke 3 Relation of other Fuzzy Connectives from Fuzzy Sheffer Stroke 4 Fuzzy Sheffer strokes constructions 5 Construction of Fuzzy Sheffer Stroke from univalued functions 6 Conclusions and future work Motivation Refrigerator Alarm Let us consider a refrigerator with an alarm and two sensors. The sensors measure: The opening degree of the door. The internal temperature. Refrigerator Alarm Let us consider a refrigerator with an alarm with different intensities and two sensors. The sensors measure: The opening degree of the door. The internal temperature. Let B : Y ! [0; 1] be the fuzzy set where Y is the set of the possible internal temperatures. (Coldness) Refrigerator Alarm Let A: X ! [0; 1] be the fuzzy set where X is the set of possible opening angles of the door. (Closedness) Refrigerator Alarm Let A: X ! [0; 1] be the fuzzy set where X is the set of possible opening angles of the door. (Closedness) Let B : Y ! [0; 1] be the fuzzy set where Y is the set of the possible internal temperatures. (Coldness) Refrigerator Alarm Let A: X ! [0; 1] be the fuzzy set that represents Closedness. Let B : Y ! [0; 1] be the fuzzy set that represents Coldness. We can model the alarm with the operator F :[0; 1] × [0; 1] ! [0; 1] If F(a; b) = 0 the alarm does not sound.
    [Show full text]
  • A Note on Error Detection in Noisy Logical Computers
    INFORMATION AND CONTROL 9., 310-313 (1959) A Note on Error Detection in Noisy Logical Computers ~/[URRAY EDEN* Center for Communication Sciences, Massachusetts Institute of Technology, Cambridge, Massachusetts A method of error detection is proposed for noisy logical computer elements. The proposal extends the range of the propositional vari- ables so that residue class check symbols may be used in error detec- tion. The principal consequence is that individual logical elements may be designed to process binary inputs with arbitrary reliability and nonzero channel capacity. Programs for the construction of finite state automata assembled out of components that are liable to some errors in their output have been considered in some detail by yon Neumann (1956) and by Moore and Shannon (1956). Although these two theories are quite different in de- tail and, indeed, consider errors at different places in the automaton, both derive a comparable principal theorem, namely, that if components with a reliability less than 1 (and greater than ~/g in the yon Neumann model or different from ~ in the Moore and Shannon model) are com- posed in some suitable way into a redundant net of components, then the over-all reliability can be made arbitrarily close to 1 by a sufficient redundancy. Elias (1958) has pointed out a weakness in these constructions, in that the coding theorem for noisy channels does not hold for such auto- mata; that is, even though "the receiver has only a small amount of equivocation, and it would take only a small additional amount of in- formation to correct the occasional errors which are present in the com- puter output, it is not possible to provide this extra information by cod- ing the different blocks of k digits independently of one another before the computation begins." * Permanent address : Laboratory of Technical Development, National Heart Institute, National Institutes of Health, Bethesda 14, Maryland.
    [Show full text]
  • The Logic of Compound Statements
    CHAPTER 2 THE LOGIC OF COMPOUND STATEMENTS Copyright © Cengage Learning. All rights reserved. SECTION 2.4 Application: Digital Logic Circuits Copyright © Cengage Learning. All rights reserved. Application: Digital Logic Circuits The drawing in Figure 2.4.1(a) shows the appearance of the two positions of a simple switch. When the switch is closed, current can flow from one terminal to the other; when it is open, current cannot flow. ! Imagine that such a switch is part of the circuit shown in figure 2.4.1(b). The light bulb turns on if, and only if, current flows through it. And this happens if, and only if, the switch is closed. (a) (b) Figure 2.4.1 Application: Digital Logic Circuits Now consider the more complicated circuits of Figures 2.4.2(a) and 2.4.2(b). ! ! ! ! ! ! (a) Switches “in series” (b) Switches “in parallel” In the circuit of Figure 2.4.2(a)Figure 2.4.2 current flows and the light bulb turns on if, and only if, both switches P and Q are closed. The switches in this circuit are said to be in series. Application: Digital Logic Circuits In the circuit of Figure 2.4.2(b) current flows and the light bulb turns on if, and only if, at least one of the switches P or Q is closed. The switches in this circuit are said to be in parallel. All possible behaviors of these circuits are described by Table 2.4.1. (a) Switches in Series (b) Switches in Parallel Table 2.4.1 Application: Digital Logic Circuits Observe that if the words closed and on are replaced by T and open and off are replaced by F, Table 2.4.1(a) becomes the truth table for and and Table 2.4.1(b) becomes the truth table for or.
    [Show full text]
  • Appendix B-1
    Appendix B-1 Alternative Notations and Connectives The logical language we have studied in this chapter is the best known classical system oflogic of statements. There are various alternative symbolic notations for the connectives we introduced, the most common of which are listed below. Alternative notation for connectives our symbol alternative( s) negation '" ---',-,p conjunction & 1\, • conditional -+ :::) (called 'horseshoe') Table B.I-l Furthermore, there are two connectives which we have not introduced, as they are not part of the system most commonly used. One, called "Quine's dagger", L is sufficiently powerful to be the only connective in a system equivalent to the one given. Its truth table is shown in (B.II.-2). 237 238 ApPENDIX B-1 P Q PlQ 1 1 0 1 0 0 0 1 0 0 0 1 Table B.I-2 Its nearest English correspondent is neither ... nor. As an interesting ex­ ercise one can show that negation can be defined in terms of this connec­ tive, and then that disjunction can be defined in terms of negation and this connective. We have already proven (Chapter, Exercise 7) that the five­ connective system can be reduced to one containing just V and "'. Therefore 1 suffices alone for the five connectives. Similarly, there is another connective, written as I, which is called the "Sheffer stroke", whose interpretation by the truth table is as follows: P Q PIQ 1 1 0 0 1 1 1 0 1 0 0 1 Table BJ-3 There is no simple English connective which has this meaning, but it can be expressed as 'not both p and q' or the neologism 'nand'.
    [Show full text]