Digital Logic Structures MOS transistors logic gates functional units of a computer.

Slides:



Advertisements
Similar presentations
Digital Logical Structures
Advertisements

Chapter 3 Digital Logic Structures. 3-2 Transistor: Building Block of Computers Microprocessors contain millions of transistors Intel Pentium 4 (2000):
Introduction to Digital Systems By Dr. John Abraham UT-Panam.
The Logic Machine We looked at programming at the high level and at the low level. The question now is: How can a physical computer be built to run a program?
Overview Logic Combinational Logic Sequential Logic Storage Devices SR Flip-Flops D Flip Flops JK Flip Flops Registers Addressing Computer Memory.
Chapter 3 Continued Logic Gates Logic Chips Combinational Logic Timing Sequential Logic Flip Flops Registers Memory State Machines.
Major Numeric Data Types Unsigned Integers Signed Integers Alphanumeric Data – ASCII & UNICODE Floating Point Numbers.
Faculty of Computer Science © 2006 CMPUT 229 Digital Logic From Switches to Memories.
Chapter 3 Digital Logic Structures. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 3-2 Transistor: Building.
Computer ArchitectureFall 2008 © August 20 th, Introduction to Computer Architecture Lecture 2 – Digital Logic Design.
TDC 311 Digital Logic. Truth Tables  AND  OR  NOT  NAND  NOR  XOR  XNOR.
16/07/2015CSE1303 Part B lecture notes 1 Hardware Implementation Lecture B17 Lecture notes section B17.
Part 2: DESIGN CIRCUIT. LOGIC CIRCUIT DESIGN x y z F F = x + y’z x y z F Truth Table Boolean Function.
Computer Science 210 s1 Computer Systems Semester 1 Lecture Notes James Goodman (revised by Robert Sheehan) Credits: Slides prepared by Gregory.
Chapter 4 Gates and Circuits.
Chapter 3 Digital Logic Structures. 3-2 Transistor: Building Block of Computers Microprocessors contain millions of transistors Intel Pentium 4 (2000):
1 CHAPTER 4: PART I ARITHMETIC FOR COMPUTERS. 2 The MIPS ALU We’ll be working with the MIPS instruction set architecture –similar to other architectures.
Introduction to Computing Systems from bits & gates to C & beyond Chapter 3 Digital Logic Structures Transistors Logic gates & Boolean logic Combinational.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
Transistors and Logic Circuits. Transistor control voltage in voltage out control high allows current to flow -- switch is closed (on) control low stops.
Introduction to Computing Systems from bits & gates to C & beyond Chapter 3 Digital Logic Structures Transistors Logic gates & Boolean logic Combinational.
Computer Science 210 Computer Organization The von Neumann Architecture.
Digital Logic Structures. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 3-2 Roadmap Problems Algorithms.
Chapter 3 Digital Logic Structures. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 3-2 Basic Logic Gates.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
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.
Apr. 3, 2000Systems Architecture I1 Systems Architecture I (CS ) Lecture 3: Review of Digital Circuits and Logic Design Jeremy R. Johnson Mon. Apr.
Quiz What are the results of the following 4-bit bitwise logical operations? NOT OR NOR AND
Digital Logic Structures: Chapter 3 COMP 2610 Dr. James Money COMP
4. Computer Maths and Logic 4.2 Boolean Logic Logic Circuits.
Logic Design CS 270: Mathematical Foundations of Computer Science Jeremy Johnson.
Chapter 3 Digital Logic Structures. 3-2 Combinational vs. Sequential Combinational Circuit always gives the same output for a given set of inputs  ex:
Chapter 3 Digital Logic Structures
PART 3 Digital Logic 1.Logic Gates 2.Logic Circuits 3.Memory 4.Sequential Circuits 5.LC-3 Data Path.
Computer Science 210 Computer Organization Control Circuits Decoders and Multiplexers.
Introduction to Computer Engineering CS/ECE 252, Spring 2012 Prof. Karu Sankaralingam Computer Sciences Department University of Wisconsin – Madison.
Instructor:Po-Yu Kuo 教師:郭柏佑
Introduction to Computer Engineering CS/ECE 252, Fall 2007 Prof. David A. Wood Computer Sciences Department University of Wisconsin – Madison.
Logic Design / Processor and Control Units Tony Diep.
Chapter 3 Digital Logic Structures. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 3-2 Transistor: Building.
Appendix C Basics of Digital Logic Part I. Florida A & M University - Department of Computer and Information Sciences Modern Computer Digital electronics.
Instructor : Po-Yu Kuo 教師:郭柏佑 Ch. 3 Digital Logic Structures EL 1009 計算機概論 ( 電子一 B) Introduction to Computer Science.
Introduction to Computing Systems and Programming Digital Logic Structures.
Chapter 3 Digital Logic Structures
CMPUT Computer Organization and Architecture I1 CMPUT229 - Fall 2002 Topic 2: Digital Logic Structure José Nelson Amaral.
Gates AND, OR, NOT NAND, NOR Combinational logic No memory A set of inputs uniquely and unambiguously specifies.
1 Lecture 24 Transistors A look ahead Course summary.
Logic Gates Dr.Ahmed Bayoumi Dr.Shady Elmashad. Objectives  Identify the basic gates and describe the behavior of each  Combine basic gates into circuits.
Digital Logic Structures. Transistor: The Digital Building Block Microprocessors contain LOTS of transistors –Intel Pentium 4 (2000): 48 million –IBM.
Chapter 3 Digital Logic Structures. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 3-2 Transistor: Building.
Instructor:Po-Yu Kuo 教師:郭柏佑
Dr.Ahmed Bayoumi Dr.Shady Elmashad
Combinational Circuits
CS 270: Mathematical Foundations of Computer Science
Computer Science 210 Computer Organization
More Devices: Control (Making Choices)
Instructor:Po-Yu Kuo 教師:郭柏佑
Computer Science 210 Computer Organization
Basics of digital systems
CS105 Introduction to Computer Concepts GATES and CIRCUITS
Jeremy R. Johnson Anatole D. Ruslanov William M. Mongan
Digital Logic Structures Logic gates & Boolean logic
Chapter 3 Digital Logic Structures
Week 7: Gates and Circuits: PART II
Instructor:Po-Yu Kuo 教師:郭柏佑
Logic Circuits I Lecture 3.
Digital Logic Circuits
Combinational Circuits
Digital Circuits and Logic
Presentation transcript:

Digital Logic Structures MOS transistors logic gates functional units of a computer

MOS: Metal-oxide Semiconductor Basic electrical circuit: power supply, switch, lamp manipulating the switch makes/breaks the circuit

2 Basic Types of Transistors N-type: acts as a closed circuit when given a logically high voltage P-type: acts as a closed circuit when given a logically low voltage Circuits with both are called CMOS gate

Logic Gates basic logic structures (AND, OR, NOT) are created out of CMOS transistors inverter: recall the truth table for NOT inout inout in out

OR and NOR gates given the circuit, build the truth table how do we get OR?

AND and NAND gates Construct NAND first, just as with NOR NAND and NOR technology very widely used

Inverter AND, NAND OR, NOR a single bubble on an input or output denotes an inverter multiple-input gates Notation for Digital Logic Gates

Expressions to Truth Tables NOT ((NOT A) or B) (A or B)

Expressions to Truth Tables NOT ((NOT A) or B) (A or B) AABORC

DeMorgan’s Laws A AND B = A OR B A OR B = A AND B

Logic Structures we build logic structures out of logic gates logic structures are components of the microarchitecture of a computer 2 kinds of logic structures some store information some do not store information

Combinational Logic Structures output is completely determined by the combination of input values examples: decoder multiplexor (MUX) full adder

Decoder outputs one 1 and the rest 0s where the 1 corresponds to a unique input pattern for n inputs lines, 2 n output lines the output line that has the value 1 is asserted

MUX selects an input and connects it to the output for 2 n inputs lines, n select lines MUX is represented by an upside down trapezoid

4 Input MUX

Single Bit Adder a b c i c o s

4bit Adder

Logical Completeness we can build a circuit for any truth table using AND, OR, and NOT proof by construction: draw vertical lines for all inputs for each 1 in the output value, connect 1s in the input directly to an AND gate (invert 0s); repeat for each row OR all of the AND gates together

Basic Storage Elements R-S latch: simple structure that stores 1 bit of information implemented with NAND gates start with quiescent state (R=S=1) as long as ‘a’ is 1, it stays 1 (same for 0)

Reset/Set the Latch put 0 on S while R=1, causes ‘a’ to become 1 put 0 on R while S=1, causes ‘a’ to become 0 behavior is undefined if both go to 010 1 0  1 1010 quiescent

The Gated D-latch uses the R-S latch, plus some additional logic gates D is the value that is stored, but it is only set/reset when WE (write-enable) is 1 D’s value causes one of R or S to become 0 0101 0 1111 1010 1010 0101

Register every computer offers a number of registers: high speed special memory locations some registers have special meaning (e.g., PC is the program counter) note that outputs in the 4-bit register are labeled by Q(n-1:0)

Memory memory location: collection of bits, has to be uniquely identified identified by an address the number of bits we have to represent addresses determines the maximum number of locations that can be accessed in memory 2 24 = 16,777,216 = 16MB locations

Addressibility the number of bits we have to represent the data gives the addressibility of the memory. E.g. The size of each memory location. byte addressibility: convenient since characters are one byte supercomputers may be 64-bit addressible for 64-bit floating point numbers

2 2 by 3 Memory Address Decoding Logic Gated D-Latches 3-bit Value to be stored 4 Rows 4 memory Locations Trace how data is output and stored

Preview of the LC-2 memory registers Data (R0…R7, MDR, …) Control (PC, MAR, ….) multiplexers (MUXs) Arithmetic Logic Unit (ALU) Arithmetic operations (add, subtract) Bitwise logical operations (or, and,..)