COM181 Computer Hardware Ian McCrumRoom 5B18, 02890366364 Lecture 2: Circuits.

Slides:



Advertisements
Similar presentations
Tutorial 2 Sequential Logic. Registers A register is basically a D Flip-Flop A D Flip Flop has 3 basic ports. D, Q, and Clock.
Advertisements

CS 151 Digital Systems Design Lecture 19 Sequential Circuits: Latches.
Digital Logic Chapter 5 Presented by Prof Tim Johnson
1 Lecture 20 Sequential Circuits: Latches. 2 Overview °Circuits require memory to store intermediate data °Sequential circuits use a periodic signal to.
1 © 2014 B. Wilkinson Modification date: Dec Sequential Logic Circuits – I Flip-Flops A sequential circuit is a logic components whose outputs.
Cosc 2150: Computer Organization Chapter 3: Boolean Algebra and Digital Logic.
CS 300 – Lecture 3 Intro to Computer Architecture / Assembly Language Sequential Circuits.
Homework Reading Machine Projects Labs Tokheim Chapter 9.1 – 9.6
1 Digital Logic
Chapter 4 Gates and Circuits.
9/19/06 Hofstra University – Overview of Computer Science, CSC005 1 Chapter 4 Gates and Circuits.
Computer ArchitectureFall 2008 © August 20 th, Introduction to Computer Architecture Lecture 2 – Digital Logic Design.
ENGIN112 L26: Shift Registers November 3, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 26 Shift Registers.
16/07/2015CSE1303 Part B lecture notes 1 Hardware Implementation Lecture B17 Lecture notes section B17.
So far, all of the logic circuits we have studied were basically based on the analysis and design of combinational digital circuits. The other major aspect.
COM181 Computer Hardware Ian McCrumRoom 5B18,
Registers and Counters
CS3350B Computer Architecture Winter 2015 Lecture 5.2: State Circuits: Circuits that Remember Marc Moreno Maza [Adapted.
ENGSCI 232 Computer Systems Lecture 5: Synchronous Circuits.
Some Useful Circuits Lecture for CPSC 5155 Edward Bosworth, Ph.D. Computer Science Department Columbus State University.
Chapter 4 Gates and Circuits.
Engineering Lecture 3 Digital Electronics by Jaroslaw Karcz.
COE 202: Digital Logic Design Sequential Circuits Part 1
CS 352 : Computer Organization and Design University of Wisconsin-Eau Claire Dan Ernst Elementary Digital Logic Apps O/S Arch  Arch Logic Digital Analog.
CSCI-235 Micro-Computers in Science Hardware Design Part I.
+ CS 325: CS Hardware and Software Organization and Architecture Combinational Circuits 1.
Unit 9 Multiplexers, Decoders, and Programmable Logic Devices
Rabie A. Ramadan Lecture 3
CS1Q Computer Systems Lecture 9 Simon Gay. Lecture 9CS1Q Computer Systems - Simon Gay2 Addition We want to be able to do arithmetic on computers and therefore.
CPS120: Introduction to Computer Science
School of Computer Science G51CSA 1 Computer Systems Architecture Fundamentals Of Digital Logic.
P. 4.1 Digital Technology and Computer Fundamentals Chapter 4 Digital Components.
1 DIGITAL ELECTRONICS. 2 OVERVIEW –electronic circuits capable of carrying out logical (boolean) and arithmetic operations on information stored as binary.
Fall 2012: FCM 708 Foundation I Lecture 2 Prof. Shamik Sengupta
1 Boolean Algebra & Logic Gates. 2 Objectives Understand the relationship between Boolean logic and digital computer circuits. Learn how to design simple.
HCL and ALU תרגול 10. Overview of Logic Design Fundamental Hardware Requirements – Communication: How to get values from one place to another – Computation.
Flip-Flops and Registers
Basic Sequential Components CT101 – Computing Systems Organization.
 Counters are sequential circuits which "count" through a specific state sequence. They can count up, count down, or count through other fixed sequences.
CSCI-100 Introduction to Computing Hardware Design Part I.
4. Computer Maths and Logic 4.2 Boolean Logic Logic Circuits.
Chapter 7 Logic Circuits 1.State the advantages of digital technology compared to analog technology. 2. Understand the terminology of digital circuits.
Logic Design CS 270: Mathematical Foundations of Computer Science Jeremy Johnson.
Abdullah Said Alkalbani University of Buraimi
Digital Logic Design.
Outline Binary Addition 2’s complement Binary Subtraction Half Adder
1 Lecture #11 EGR 277 – Digital Logic Ch. 5 - Synchronous Sequential Logic There are two primary classifications of logic circuits: 1.Combinational logic.
Logic Design / Processor and Control Units Tony Diep.
Boolean and Sequential Logic Last week – Basic Gates AND OR NOT NOR XOR NAND.
Concepts of Engineering and Technology Copyright © Texas Education Agency, All rights reserved.
CO5023 Latches, Flip-Flops and Decoders. Sequential Circuit What does this do? The OUTPUT of a sequential circuit is determined by the current output.
Sequential Logic Flip-Flop Circuits By Dylan Smeder.
REGISTER TRANSFER LANGUAGE (RTL) INTRODUCTION TO REGISTER Registers1.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Dr. Shi Dept. of Electrical and Computer Engineering.
CS 110 Computer Architecture Lecture 9: Finite State Machines, Functional Units Instructor: Sören Schwertfeger School of.
LOGIC CIRCUITLOGIC CIRCUIT. Goal To understand how digital a computer can work, at the lowest level. To understand what is possible and the limitations.
Chapter 3 Boolean Algebra and Digital Logic T103: Computer architecture, logic and information processing.
1 Homework Reading –Tokheim Chapter 9.1 – 9.6 Machine Projects –Continue on mp3 Labs –Continue in labs with your assigned section.
Sequential Logic Design
CSCI-100 Introduction to Computing
Basics of digital systems
Jeremy R. Johnson Wed. Sept. 29, 1999
ECE Digital logic Lecture 16: Synchronous Sequential Logic
Programmable Logic Devices: CPLDs and FPGAs with VHDL Design
CS105 Introduction to Computer Concepts GATES and CIRCUITS
Fundamentals of Computer Science Part i2
触发器 Flip-Flops 刘鹏 浙江大学信息与电子工程学院 March 27, 2018
Logic Gates.
Digital Circuits and Logic
Instructor: Michael Greenbaum
Presentation transcript:

COM181 Computer Hardware Ian McCrumRoom 5B18, Lecture 2: Circuits

Simple Digital Logic There is a free software tool from the Altera corporation that allows experimenting with logic circuitry – to manipulate ‘1’s and ‘0’s The package is called Quartus – it is a large download. Designed to convert schematic or hardware descriptions into circuits that can be “downloaded” into special chips it also has a useful circuit simulator. Go to and download the free web edition of Quartus. 2COM181 Computer Hardware:IMcC

Digital circuits To create a design you can use a text editor or a schematic drawing tool. It is easier to begin with the scematic tool. When we design CPUs we will use groups of parallel binary bits (bytes in our first simple CPU – the SHC-01) Here we will use single bits to get the concepts across. COM181 Computer Hardware:IMcC3

4 Digital circuits NOT gateAND gateOR gateEX-OR gate NAND gateNOR gateEX-NOR gate Taken from MUX (2 to 1)MUX (4 to 1)

Truth Tables COM181 Computer Hardware:IMcC5 The NOT gate, also called an INVERTOR A ‘1’ in produces a ‘0’ out A ‘0’ in produces a ‘1’ out The input is on the left and the output on the right The AND gate A B || F 0 0 || || || || 1 A B F D C F The OR gate C D || F 0 0 || || || || 1 We can consider these as functions of boolean logic, there is an extensive algebra to work with. For CPU design we only need a few gates, they tend to function as gates rather than functional blocks. Note how we can interpret the truth tables if we consider one input to be carrying DATA and the other to be controlling the flow of that DATA through the gate. E.g if A is HIGH in the AND gate then the output is the input. If A is LOW the output is forced low. We can use AND gates to selectively reset signals E.g if C is LOW in the OR gate then the output is the input. If C is HIGH the output is forced HIGH. We can use OR gates to selectively set signals (We can use EX-OR gates to invert or not invert signals)

Muxes (Multiplexors) COM181 Computer Hardware:IMcC6 A B F S0 An extremely useful component in computer design If S0 is LOW then the output F is the same as the input A if S0 is HIGH then the output F is the same as the input B We can draw a truth table for this device but it is easier to learn the sentences above. Truth table for 2 to 1 multiplexor S0 A B || F || || || || || || || || 1 It is simply a switch to route data Generate a ‘1’ when the input is 010 or 011 or 101 or 111. F(S0,A,B) = /S0.A./B + /S0.A.B + S0./A.B + S0.A.B This is known as the AND-OR equation representing the truth table on the left. (aka Sum of Products form) Each AND gate decodes a PRODUCT TERM.

One Bit Stores By using feedback internally we can create a block that can remember a value. These are usually called flipflops and come in various types. Here we need only consider the D-type A D-type flipflop has one data input labelled D and a further input labelled CLOCK. The output is usually labelled Q and is complemented with a further output of NOT-Q. For simple computer circuit we can ignore NOT-Q. The CLOCK is usually connected to a regular square wave running at a fixed frequency. Or to a control signal from another part of our circuit. There are limits as to how fast the CLOCK can be. COM181 Computer Hardware:IMcC7 Truth tables are inadequate to describe memory, we can use a variant called a characteristic table. But just think of the device “capturing” the input at the instant of a rising edge on the clock signal

Registers COM181 Computer Hardware:IMcC8 88 CLK Imagine 8 D-types With all the CLOCK Inputs connected together. And the 8 D inputs considered As carrying an 8 bit Binary number. We have created a “REGISTER” which can capture an 8 bit number and hold it Until it gets overwritten with a new value.

Summary Know the basic gates – NOT, AND, OR Know the operation of a MUX Know the operation of a D-type Know how an 8 bit register works. You are now ready to design complete CPUs! COM181 Computer Hardware:IMcC9