CS/COE 0447 Jarrett Billingsley

Slides:



Advertisements
Similar presentations
DAT2343 Basic Logic Gates © Alan T. Pinck / Algonquin College; 2003.
Advertisements

Computer Science 210 Computer Organization Introduction to Logic Circuits.
Logic Gates.
Static Electricity. Electrostatics is the study of electrical charges at rest. What makes electrical charges? Protons and electrons.
3. DIGITAL ELECTRONICS..
Chapter 4 Gates and Circuits. 4–2 Chapter Goals Identify the basic gates and describe the behavior of each Describe how gates are implemented using transistors.
Chapter 4 Gates and Circuits.
Boolean math is the cornerstone of digital communications, whether you are talking computers, PLC, or Cisco Routers on the Internet. ©Emil Decker, 2009.
Boolean Logic By: Arthur Brooks February 25, 2003 Think, Speak, and Write Computer Science.
Logic Gates How Boolean logic is implemented. Transistors used as switches to implement Boolean logic: ANDOR Logic with Transistors.
What holds an atom together?. Fundamental Forces in Nature Gravity- universal attraction of all objects to one another Gravity- universal attraction of.
Digital Logic. 4 Why is 32-bit or 64-bit significant in terms of speed, efficiency? 4 Difference between OR and XOR 4 What is a mux for? PLA 4 Two kinds.
Complementary CMOS Logic Style Construction (cont.)
Electricity The shocking introduction. Electrical charges Everything in the universe is made up of atoms Those atoms are made up of subatomic particles.
Chapter 4: Gates and Circuits Chapter 4 Gates and Circuits Page 30 The AND Operation (i.e., are both operands “true”?) 1 AND 1 11 AND 0 00 AND 1 00 AND.
LOGIC GATES “ Logic, like whiskey, loses its beneficial effect when taken in too large quantities “
IT253: Computer Organization Lecture 7: Logic and Gates: Digital Design Tonga Institute of Higher Education.
Some basic electronics and truth tables Some material on truth tables can be found in Chapter 3 of Digital Principles (Tokheim)
COMPUTER ARCHITECTURE TRUTH TABLES AND LOGIC GATES.
Digital Logic Circuits (Part 1) Computer Architecture (Fall 2006)
LOGIC GATES. INTRODUCTION TO LOGIC GATES Boolean functions may be practically implemented by using electronic gates. The following points are important.
Draw a sketch of how YOU think electricity is made and how it gets to your house. Label as many things as you can. Write a short paragraph explaining.
Logic Gates Unit 16.
Logic gates.
Combinational circuits
Dr.Ahmed Bayoumi Dr.Shady Elmashad
Introductory Lecture on Digital Electronics
Combinational Logic Logic gates. and, or, not Derived gates.
What holds an atom together?
Clocks A clock is a free-running signal with a cycle time.
Introduction Molecules: made up of atoms of individual elements.
Lecture 6 Topics Combinational Logic Circuits
Bitfields and Logic Basics
What holds an atom together?
Minimization and Sequential Logic
Binary Addition and Subtraction
Computer Fundamentals
Digital Signals Digital Signals have two basic states:
Basic Digital Logic Basic Gates
L 24 Electricity & Magnetism [1]
Chapter 4 Gates and Circuits.
CS140 Lecture 02a: The Machinery of Computation: Circuits and Gates
How Boolean logic is implemented
CS105 Introduction to Computer Concepts GATES and CIRCUITS
Computer Science 210 Computer Organization
Some basic electronics and truth tables
L 24 Electricity & Magnetism [1]
Circuits, Truth Tables & Boolean Algebra
Bitwise Operations and Bitfields
Computers in the real world Objectives
What is going on here?. What is going on here?
Boolean Logic Boolean Logic is considered to be the basic of digital electronics. We know that a computer’s most basic operation is based on digital electronics.
Logic Gates.
Circuits Lecture 3.
ELECTRONIC SYSTEMS Note: There is no compulsory question set on Section 25 of the syllabus. Questions set on topics within Section 25 are always set as.
FSMs, Multiplication, and Division
Arithmetic and Decisions
L 24 Electricity & Magnetism [1]
Circuits, Truth Tables & Boolean Algebra
ECE 352 Digital System Fundamentals
Some basic electronics and truth tables
What is Digital Information?
What holds an atom together?
Principles of Electricity: Electric Charge and Force
Logic Gates AIM: To know the different types of logic gate
Further binary, Logic diagrams and truth tables
How Do Charges Flow Through the Components of a Circuit?
ECE 352 Digital System Fundamentals
Warm-up What is a closed circuit? What is an open circuit?
L 24 Electricity & Magnetism [1]
Presentation transcript:

CS/COE 0447 Jarrett Billingsley Gates and Wires CS/COE 0447 Jarrett Billingsley

Class announcements well hello again CS447

What's electricity? (this section is just for fun) CS447

p+ In your orbit here's an electron. it has a negative charge. here's a proton. it has a positive charge. here's an electron. it has a negative charge. p+ e- it kinda goes around the proton in an orbit* protons sit still while electrons can move around. CS447 *narrator: that was not true.

p+ e- p+ e- Opposites attract… two of the same charge repel. here's electricity. here it is. opposite charges attract. p+ e- but protons are kinda stuck, so… - the repulsion of electrons is a powerful force - it's like a little spring - and when you have quintillions of these little springs in one place… you can do some fun stuff CS447

Lots of fish electrons in the sea here's a solid piece of metal. the atoms are in a fixed structure… but some of the electrons are free to move around. right now, the charges are balanced: same number of positive and negative. let's knock it out of whack. CS447

Two moles is company, three's a crowd let's shove more electrons in… packing more electrons in leads to two things: 1. this metal is now negatively charged 2. the electrons are now closer together meaning they're less happy noo - negative charge: e > p - positive charge: e < p aaa CS447

Carousel of unhappiness wire Carousel of unhappiness wire if we shove some down a wire… and then give them a (difficult) way out… we'd like to get off mister bones wild ride and then have something which will squeeze them back together again… well now you have electricity. - a battery uses an electrochemical reaction to squeeze electrons together - but there are many ways to do that. CS447

voltage measures electron unhappiness. Watch em go voltage measures electron unhappiness. current measures how many electrons per second are moving past a point. low low high high and that's electricity. CS447

Gates CS447

Transistors input control output a transistor is like a little valve, or switch the input, output, and control are all single bits the bits are represented as voltages (maybe 3.3V = 1, 0V = 0) it connects its input to its output if control is a 1. input output control now just put 3 billion of them together! who said EE was hard? - ;)))))))))))))))))))) - I mean, everything is just some combination of protons, neutrons, and electrons… just put them together right. GOSH. CS447

Gates we can combine transistors in interesting ways to make gates a gate implements one of the basic boolean logic functions let's start with the simplest: the NOT gate Y is the output A is the input A Y this little bubble means "NOT" A Q - why do we use Y?? Y, indeed…. ;)))))))))))))))) - ok it's really called a "buffer" but it's used for Real World reasons (amplifying and delaying signals). without the bubble you get a nothing-gate. CS447

AND, OR, and… XOR? A B Y 1 A B Y 1 A B Y 1 A Y B A Y B A Y B we know about AND and OR, but what's XOR? A Y B AND gate A Y B OR gate A Y B XOR gate A B Y 1 A B Y 1 A B Y 1 eXclusive OR means "one or the other, but NOT BOTH." CS447

Simplifying gates with constant inputs you should never have a gate with a constant input. these cases always give 0 or 1. A 1 A 1 A A these cases do nothing. A A ¬A 1 and this case is just doing NOT. CS447

If you give an electrical engineer a NAND gate… if you stick a NOT gate after an AND gate, you get a NAND gate this kind of gate has a cool property: it's universal you can do any boolean logic operation with NAND gates that means you can build an entire computer with NANDs but this isn't how real circuits are designed, at least anymore digital logic courses use them cause NAND gate chips are cheap but in Logisim, we have infinite gates for free :D use the kind of gate you need for the situation at hand - ok there are some low-level reasons why NAND is preferred in some cases but all the literature I can find seems to say that modern circuit design just uses "whatever is needed" in most cases - there are also NOR gates and XNOR gates which you can guess what they are CS447

Bubbles and more very often you want to NOT one (or more) inputs to a gate but drawing the NOT gate gets tiring so we can use this as shorthand. you can also have more than 2 inputs to a gate. this does "A & B & C" or, more tersely, ABC - logisim lets you do these things too. CS447

Wires CS447

and then hook them together. What's a wire? A wire connects things together. say you wanna do AB + C so we need an AND gate… A B and then hook them together. C and an OR gate… CS447

you have… a different bug. Logisim's wire colors Logisim colors wires according to their kind and state. green wires are 1-bit. blue wires are carrying X. red wires mean "error." orange wires mean a size mismatch. 1 8 1 X is weird. it's neither 1 nor 0. maybe avoid these. you have a bug. you have… a different bug. - grey wires are unconnected to anything… just delete em. CS447

It's getting chilly… bundle up if we want to, say, NOT a 32-bit value, we can draw it like: 32 it's a lot nicer than drawing 32 wires with 32 NOT gates Logisim calls these wire bundles and colors them black it doesn't draw the slashes and numbers though… orange wires happen when you have two things of different bit widths connected together. it's like a type error. CS447

Pull n peel splitters are how we convert between bundles and individual wires. a splitter lets us split up wire bundles… …or bundle wires back together. 4 4 we could do weird stuff in the middle. CS447

What causes errors? usually, it's this. you cannot connect two outputs together with a wire. what if one gate outputs 1 and the other outputs 0? IRL this would cause the value to be "indeterminate" - unfortunately, Logisim doesn't simulate the release of Magic Smoke or your gates would blow up. that's more exciting. CS447

the little circle means these wires are connected together. But this is totally OK you can connect one wire to as many inputs as you want. the little circle means these wires are connected together. CS447

Tunnel time a tunnel lets you connect wires across distances. one one the name of the tunnel is what's important. any tunnels of the same name are "virtually" connected. one and you can have as many copies as you like. CS447