CS Part 1 1 Dr. Rajesh Subramanyan, 2005

Similar documents
Computer Systems Architecture

Basics Of Digital Logic And Data Representation

Computer Organization

Principles of Computer Architecture. Appendix A: Digital Logic

Computer Architecture and Organization

ELEN Electronique numérique

Chapter Contents. Appendix A: Digital Logic. Some Definitions

DIGITAL SYSTEM FUNDAMENTALS (ECE421) DIGITAL ELECTRONICS FUNDAMENTAL (ECE422) LATCHES and FLIP-FLOPS

Logic. Andrew Mark Allen March 4, 2012

(CSC-3501) Lecture 7 (07 Feb 2008) Seung-Jong Park (Jay) CSC S.J. Park. Announcement

Lecture 8: Sequential Logic

EE292: Fundamentals of ECE

WELCOME. ECE 2030: Introduction to Computer Engineering* Richard M. Dansereau Copyright by R.M. Dansereau,

Asynchronous (Ripple) Counters

CS61C : Machine Structures

RS flip-flop using NOR gate

CPS311 Lecture: Sequential Circuits

Digital Circuits I and II Nov. 17, 1999

1. Convert the decimal number to binary, octal, and hexadecimal.

Combinational vs Sequential

Introduction to Microprocessor & Digital Logic

Chapter 4. Logic Design

Simple Combination Lock Circuit Project. Johnathan Sam

The basic logic gates are the inverter (or NOT gate), the AND gate, the OR gate and the exclusive-or gate (XOR). If you put an inverter in front of

Logic Design Viva Question Bank Compiled By Channveer Patil

We are here. Assembly Language. Processors Arithmetic Logic Units. Finite State Machines. Circuits Gates. Transistors

1.b. Realize a 5-input NOR function using 2-input NOR gates only.

Chapter. Synchronous Sequential Circuits

Chapter 3. Boolean Algebra and Digital Logic

Design and Simulation of a Digital CMOS Synchronous 4-bit Up-Counter with Set and Reset

CCE RR REVISED & UN-REVISED KARNATAKA SECONDARY EDUCATION EXAMINATION BOARD, MALLESWARAM, BANGALORE G È.G È.G È..

To design a sequential logic circuit using D-Flip-flop. To implement the designed circuit.

TYPICAL QUESTIONS & ANSWERS

1. a) For the circuit shown in figure 1.1, draw a truth table showing the output Q for all combinations of inputs A, B and C. [4] Figure 1.

VU Mobile Powered by S NO Group

Review C program: foo.c Compiler Assembly program: foo.s Assembler Object(mach lang module): foo.o. Lecture #14

CS61C : Machine Structures

Objectives. Combinational logics Sequential logics Finite state machine Arithmetic circuits Datapath

YEDITEPE UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING. EXPERIMENT VIII: FLIP-FLOPS, COUNTERS 2014 Fall

Chapter 5 Sequential Circuits

Chapter 6. Flip-Flops and Simple Flip-Flop Applications

CS 110 Computer Architecture. Finite State Machines, Functional Units. Instructor: Sören Schwertfeger.

Logic and Computer Design Fundamentals. Chapter 7. Registers and Counters

Unit 11. Latches and Flip-Flops

Physics 323. Experiment # 10 - Digital Circuits

The word digital implies information in computers is represented by variables that take a limited number of discrete values.

cascading flip-flops for proper operation clock skew Hardware description languages and sequential logic

16 Stage Bi-Directional LED Sequencer

Design of a Low Power Four-Bit Binary Counter Using Enhancement Type Mosfet

Why FPGAs? FPGA Overview. Why FPGAs?

COE 202: Digital Logic Design Sequential Circuits Part 1. Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:

COMP2611: Computer Organization. Introduction to Digital Logic

We can think of the multiplexor (or mux) as a data selector, the diagram below illustrates a four input mux. X Y

FPGA Design. Part I - Hardware Components. Thomas Lenzi

Logic Circuits. A gate is a circuit element that operates on a binary signal.

The outputs are formed by a combinational logic function of the inputs to the circuit or the values stored in the flip-flops (or both).

CS 261 Fall Mike Lam, Professor. Sequential Circuits

Counters

55:131 Introduction to VLSI Design Project #1 -- Fall 2009 Counter built from NAND gates, timing Due Date: Friday October 9, 2009.

Flip-flop and Registers

PLTW Engineering Digital Electronics Course Outline

Assignment 2b. ASSIGNMENT 2b. due at the start of class, Wednesday Sept 25.

CSE115: Digital Design Lecture 23: Latches & Flip-Flops

Sequential Logic Notes

D Latch (Transparent Latch)

Digital Electronics Course Outline

Digital Circuits 4: Sequential Circuits

EECS150 - Digital Design Lecture 2 - CMOS

TEST-3 (DIGITAL ELECTRONICS)-(EECTRONIC)

WINTER 15 EXAMINATION Model Answer

Go BEARS~ What are Machine Structures? Lecture #15 Intro to Synchronous Digital Systems, State Elements I C

211: Computer Architecture Summer 2016

Introduction. NAND Gate Latch. Digital Logic Design 1 FLIP-FLOP. Digital Logic Design 1

DIGITAL CIRCUIT COMBINATORIAL LOGIC

Notes on Digital Circuits

Introduction to Digital Logic Missouri S&T University CPE 2210 Exam 3 Logistics

Good Evening! Welcome!

Laboratory 1 - Introduction to Digital Electronics and Lab Equipment (Logic Analyzers, Digital Oscilloscope, and FPGA-based Labkit)

CS302 Glossary. address : The location of a given storage cell or group of cells in a memory; a unique memory location containing one byte.

B. Sc. III Semester (Electronics) - ( ) Digital Electronics-II) BE-301 MODEL ANSWER (AS-2791)

Helping Material of CS302

Notes on Digital Circuits

COSC 243. Sequential Logic. COSC 243 (Computer Architecture) Lecture 5 - Sequential Logic 1

TIME SCHEDULE. MODULE TOPICS PERIODS 1 Number system & Boolean algebra 17 Test I 1 2 Logic families &Combinational logic

Advanced Devices. Registers Counters Multiplexers Decoders Adders. CSC258 Lecture Slides Steve Engels, 2006 Slide 1 of 20

EEE130 Digital Electronics I Lecture #1_2. Dr. Shahrel A. Suandi

MODEL QUESTIONS WITH ANSWERS THIRD SEMESTER B.TECH DEGREE EXAMINATION DECEMBER CS 203: Switching Theory and Logic Design. Time: 3 Hrs Marks: 100

A clock is a free-running signal with a cycle time. A clock may be either high or low, and alternates between the two states.

Counter dan Register

Digital Design, Kyung Hee Univ. Chapter 5. Synchronous Sequential Logic

First Name Last Name November 10, 2009 CS-343 Exam 2

Digital Integrated Circuits EECS 312

LFSR Counter Implementation in CMOS VLSI

Sharif University of Technology. SoC: Introduction

Digital Integrated Circuits EECS 312. Review. Remember the ENIAC? IC ENIAC. Trend for one company. First microprocessor

Chapter 5 Flip-Flops and Related Devices

Lecture 11: Synchronous Sequential Logic

Topics. Microelectronics Revolution. Digital Circuits Part 1 Logic Gates. Introductory Medical Device Prototyping

VTU NOTES QUESTION PAPERS NEWS RESULTS FORUMS Registers

PRE J. Figure 25.1a J-K flip-flop with Asynchronous Preset and Clear inputs

Transcription:

CS25 -- Part Dr. Rajesh Subramanyan, 25 Basics Chapter 2 Digital Logic

CS25 -- Part 2 Dr. Rajesh Subramanyan, 25 Topics Voltage And Current Transistor Logic Gates Symbols Used For Gates Interconnection Of Gates ICChips Combinatorial Circuits Flip-Flops Binary Counters Clocks

CS25 -- Part 3 Dr. Rajesh Subramanyan, 25 Topics Demultiplexor Feedback Concepts Iteration vs Replication Chip Engineering Aspects Gate & chip minimization Spare gate utilization Power & heat dissipation Clock Skew Process Technologies Physical Size Of IC s

CS25 -- Part 4 Dr. Rajesh Subramanyan, 25 Voltage And Current Voltage potential force measured between two points units is volts measuring device is voltmeter Current flow of electrons along a path units is amps Ground point that is assumed to be volts

Symbol What do you do with a transistor in digital circuits and computer architecture? CS25 -- Part 5 Dr. Rajesh Subramanyan, 25 Transistor A semiconductor device that is used to control flow of electrical current; a miniature switch 3 connections in a transistor 2for current flow for controlling flow small current flowsc from here topoint E B large current flows from point C to point E E

Atable consisting of output result for each possible set of inputs CS25 -- Part 6 Dr. Rajesh Subramanyan, 25 Basic boolean functions Logic Gates and, or, not Truth tables A B Aand B A B AorB A not A

All digital systems at lowest level composed of transistors Intransistor voltage, V is boolean and 5V is boolean CS25 -- Part 7 Dr. Rajesh Subramanyan, 25 Logic Gates What do you do with a transistor in digital circuits and computer architecture? Transistors can be used to implement boolean functions. Boolean functions are used in building digital circuits is false, istrue.

Example Of How Transistors Can Be Used To Build Boolean Gates CS25 -- Part 8 Dr. Rajesh Subramanyan, 25 +5 volts resistor output input volts Not gate implementation using a transistor and a resistor Boolean circuits are called logic gates. Manufacturers sell IC chips that contain all circuitry for gates

CS25 -- Part 9 Dr. Rajesh Subramanyan, 25 Symbols Used For Gates nand gate nor gate inver ter Symbols A B Anand B A B Anor B Truth tables for nand and nor

Gates can be connected together to obtain a combinatorial circuit CS25 -- Part Dr. Rajesh Subramanyan, 25 Interconnection Of Gates Transistor output of a gate is connected to input transistors in other gates input from power button input from disk output X C output Y A B Z Example and output values

74 family includes more sophisticated circuits as well (flipflops, counters, multiplexors). CS25 -- Part Dr. Rajesh Subramanyan, 25 IC Chips TTL: Transistor-Transistor logic electronics parts that implement gates allows outputs of gate to be connected to gate(s) input. Multiple gates/ic TTL 74: 4 AND TTL 742: 4 OR TTL 744: 6 NOT

* using more sophisticated circuits discussed soon * Example, user presses power button once and a sequence of operations are performed Combinatorial Circuits Circuits seen so far are called combinatorial Here, output changes only when input changes Beyond combinatorial circuits How can digital logic perform a sequence of operations without requiring input values to change? How can a circuit continue to operate even after input reverts to original state? * Using clock CS25 -- Part 2 Dr. Rajesh Subramanyan, 25

CS25 -- Part 3 Dr. Rajesh Subramanyan, 25 Flip-Flops Flip-flops are circuits that maintain state Output depends on present as well as past inputs Transition diagram for flip-flop Output transition may occur on leading edge (assume for now asdefault) falling edge both edges Some flip-flops have additional input called reset to set output to

Illustration of binary counter and sequence of input and output values CS25 -- Part 4 Dr. Rajesh Subramanyan, 25 Binary Counters Flip-flop has only two outputs / Counter is the alternative Counter accumulates numeric total in binary counter outputs input (a) time increases inputoutputsdecimal 2 2 2 3 3 4 4 5. (b)

Recap: clock allows output to change without changing input. CS25 -- Part 5 Dr. Rajesh Subramanyan, 25 Clocks Clocks emits alternate and Units is hertz Example usage of clock How to perform sequence of operations without needing change of inputs in between the operations

CS25 -- Part 6 Dr. Rajesh Subramanyan, 25 Scenario: computer startup Test battery Power on and test the battery Start disk spinning Power up the CRT Read boot sector from disk into memory Start CPU

CS25 -- Part 7 Dr. Rajesh Subramanyan, 25 Scenario: computer startup clock counter demultiplexor not used test battery test memory star t disk state CRT read boot blk star t CPU not used Illustration how aclock can be used to create a circuit that performs a sequence of six steps without changes to input

Takes binary value as input and chooses a single output Ifinput represents value i in binary, i th output is selected CS25 -- Part 8 Dr. Rajesh Subramanyan, 25 Demultiplexor x inputs y z demultiplexor outputs Demultiplexor with three inputs and eight outputs

Clocks run forever, in previous example, same operations will be repeated after maximum value is reached. CS25 -- Part 9 Dr. Rajesh Subramanyan, 25 Feedback Concepts How do you control operations? start or stop a sequence? use feedback, output affects the way circuit behaves.

Illustration of feedback to stop processing after one pass through each output CS25 -- Part 2 Dr. Rajesh Subramanyan, 25 Feedback Stopping a sequence when maximum value is reached, feedback enables circuit to stop. clock these two gates perform the Boolean and function counter feedback demultiplexor not used test battery test memory star t disk state CRT read boot blk star t CPU stop

use reset button to set output of demultiplexor to, feedback inverter provides as input, CS25 -- Part 2 Dr. Rajesh Subramanyan, 25 Feedback Starting a sequence

How do you handle operations applied to multiple items? CS25 -- Part 22 Dr. Rajesh Subramanyan, 25 Iteration vs Replication software experts says iteration hardware experts says replication A fundamental paradigm/difference!! Replication makes hardware more elegant simultaneous operations speeds up execution Iteration smaller code, example for loops

* 4 nand gates better than 2 nand gates and not gates CS25 -- Part 23 Dr. Rajesh Subramanyan, 25 Gate & chip minimization Chip Engineering Aspects minimizing gates * reduce boolean equations mathematically * example xand = x; x or = x minimize IC * reason, 2 IC chips vs

CS25 -- Part 24 Dr. Rajesh Subramanyan, 25 Spare gate utilization Chip Engineering Aspects assume need nand and not, note 74 has 4 nand gates use a spare nand gate, avoid need for IC 742 not chip nand x=not x Power & heat dissipation less chips is better, lower power used, so less heat generated heat dissipation, primary concern in industry

* clock signal reaches different parts of a large circuit at different times due to propagation delay * solution: use several clocks instead of single global clock CS25 -- Part 25 Dr. Rajesh Subramanyan, 25 Chip Engineering Aspects Timing gate takes time to settle signals take time to propagate clock skew * delay ns/feet * downside: clock synchronization

CS25 -- Part 26 Dr. Rajesh Subramanyan, 25 Multiple gates/ic Process Technologies SSI boolean gates MSI counters LSI small processors VLSI complex processors ASIC: Application Specific Integrated Circuit ASIC

CS25 -- Part 27 Dr. Rajesh Subramanyan, 25 Physical Size Of IC s Moore s Law (Gordon Moore, Intel) Density of silicon circuits (transistors/inch 2 )doubles every year (revises to 8 months in 7 s).

Basic laws: commutative, associative, distributive, AND-OR duality CS25 -- Part 28 Dr. Rajesh Subramanyan, 25 Class Exercises Writing a truth table for a circuit Drawing a circuit for a boolean expression Writing a boolean expression from a circuit Simplifying expressions

CS25 -- Part 29 Dr. Rajesh Subramanyan, 25