CBP 2006Comp 4070 Concepts and Philosophy of Computing 1 Wrestling with Complex Stuff. With the Correct Approach, even the smallest guy will succeed!

Slides:



Advertisements
Similar presentations
Machine cycle.
Advertisements

Adding the Jump Instruction
Control path Recall that the control path is the physical entity in a processor which: fetches instructions, fetches operands, decodes instructions, schedules.
Datorteknik DigitalCircuits bild 1 Combinational circuits Changes at inputs propagate at logic speed to outputs Not clocked No internal state (memoryless)
CBP Comp 1017 Digital Technologies1 Let’s make a Computer … at least the CPU … Pentium 4 Pentium 3 Opteron Ultra Sparc Itanium 2 McKinley.
CBP Comp 1017 Digital Technologies1 Let’s make a Computer.
Introduction Digital systems (logic design, digital logic, switching circuits) are employed in: computers data communication control systems many other.
10/13/2005Comp 120 Fall October Questions? Today Control.
Instructor: Yuzhuang Hu The Shifter 3 clock cycles will be needed if using a bidirectional shift register with parallel load.  A clock.
Computer Organization Boolean Logic and the CPU i206 Fall 2010 John Chuang Some slides adapted from Marti Hearst, Brian Hayes, or Glenn Brookshear.
L14 – Control & Execution 1 Comp 411 – Fall /04/09 Control & Execution Finite State Machines for Control MIPS Execution.
Levels in Processor Design
11/16/2004EE 42 fall 2004 lecture 331 Lecture #33: Some example circuits Last lecture: –Edge triggers –Registers This lecture: –Example circuits –shift.
Faculty of Computer Science © 2006 CMPUT 229 Digital Logic From Switches to Memories.
L15 – Control & Execution 1 Comp 411 – Spring /25/08 Control & Execution Finite State Machines for Control MIPS Execution.
16/07/2015CSE1303 Part B lecture notes 1 Hardware Implementation Lecture B17 Lecture notes section B17.
Chapter 6 Memory and Programmable Logic Devices
Computer Organization and Architecture
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.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
CS1Q Computer Systems Lecture 8
School of Computer Science G51CSA 1 Computer Systems Architecture Fundamentals Of Digital Logic.
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.
EKT221 ELECTRONICS DIGITAL II CHAPTER 4: Computer Design Basics
Chapter 4 Computer Design Basics. Chapter Overview Part 1 – Datapaths  Introduction  Datapath Example  Arithmetic Logic Unit (ALU)  Shifter  Datapath.
A Simple Computer Architecture Digital Logic Design Instructor: Kasım Sinan YILDIRIM.
CBP 2009Comp 3014 The Nature of Computing 1 Choices in Designing an ISA Uniformity. Should each instruction –Be the same length (in bits or bytes?) –Take.
Logic Design CS 270: Mathematical Foundations of Computer Science Jeremy Johnson.
Gary MarsdenSlide 1University of Cape Town Chapter 5 - The Processor  Machine Performance factors –Instruction Count, Clock cycle time, Clock cycles per.
CSE115: Introduction to Computer Science I Dr. Carl Alphonce 219 Bell Hall
CBP 2002ITY 270 Computer Architecture1 Digital Logic This Time … Control Path, Arithmetic Ops 12 a U1 34 b Last Time …
CBP Comp 1017 Digital Technologies1 Let’s make a Computer … at least the CPU … Pentium 4 Pentium 3 Opteron Ultra Sparc Itanium 2 McKinley.
Chapter 3 Digital Logic Structures. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 3-2 Transistor: Building.
Our programmer needs to do this !
CS1Q Computer Systems Lecture 8
Computer Organization and Assembly Languages Yung-Yu Chuang 2005/09/29
Computer = ALU + Memory Registers ALU Let’s try to compute = 5 32 Go to jail and do not collect £200.
Introduction to Computing Systems and Programming Digital Logic Structures.
CBP 2002ITY 270 Computer Architecture1 Module Structure Whirlwind Review – Fetch-Execute Simulation Instruction Set Architectures RISC vs x86 How to build.
Chapter 3 Digital Logic Structures
Logic Gates Dr.Ahmed Bayoumi Dr.Shady Elmashad. Objectives  Identify the basic gates and describe the behavior of each  Combine basic gates into circuits.
Types of Micro-operation  Transfer data between registers  Transfer data from register to external  Transfer data from external to register  Perform.
Dr.Ahmed Bayoumi Dr.Shady Elmashad
CS161 – Design and Architecture of Computer Systems
CS 270: Mathematical Foundations of Computer Science
Combinational circuits
Control & Execution Finite State Machines for Control MIPS Execution.
Micro-Operations A computer executes a program Fetch/execute cycle
Processor Organization and Architecture
Digital Logic Last Time … This Time … Control Path, Arithmetic Ops a
CS/COE0447 Computer Organization & Assembly Language
The fetch-execute cycle
Control & Execution Finite State Machines for Control MIPS Execution.
Datapath & Control MIPS
Rocky K. C. Chang 6 November 2017
Guest Lecturer TA: Shreyas Chand
22 October 3 classes before 2nd exam! Control 1/16/2019
April 3 Fun with MUXes Implementing arbitrary logical functions
COMS 361 Computer Organization
COSC 2021: Computer Organization Instructor: Dr. Amir Asif
A Discussion on Assemblers
Combinational Circuits
Electronics for Physicists
Control Unit for Multiple Cycle Implementation
Lecture 6 CdM-8 CPU overview
Computer Organization and Assembly Languages Yung-Yu Chuang 2005/09/29
Digital Circuits and Logic
FloorPlan for Multicycle MIPS
Processor: Datapath and Control
Presentation transcript:

CBP 2006Comp 4070 Concepts and Philosophy of Computing 1 Wrestling with Complex Stuff. With the Correct Approach, even the smallest guy will succeed!

CBP 2006Comp 4070 Concepts and Philosophy of Computing 2 Data Memory Code Memory ALU X Y W XY W Digital Logic Where? Control Circuits – CPU control path - system board (later) ALU Structure – add, sub, and, or, not MUXES Address Decoder

CBP 2006Comp 4070 Concepts and Philosophy of Computing 3 Boolean Notation, Truth Tables A and B AB A or B A + B NOT A A _ ABC Easy Way to write truth tables - count in binary ! A B O A B O A O ABO ABO AO 01 10

CBP 2006Comp 4070 Concepts and Philosophy of Computing 4 D in Control D out D inControlD out

CBP 2006Comp 4070 Concepts and Philosophy of Computing 5 Digi Logic Design 1 - use Gates A B O ABO Comparator Circuit – outputs a ‘1’ if A and B are equal, else ouput a ‘0’ Make each individual term 2. Combine the terms with OR gate 3. Look for lines with out = ‘1’ 1.

CBP 2006Comp 4070 Concepts and Philosophy of Computing 6 … again with Boolean Algebra ABO A.B __ A.B + A.B __ A.B __ B A A B _ _ “Not A and Not B” “A and B”

CBP 2006Comp 4070 Concepts and Philosophy of Computing 7 Address Decoder Exercise AB O1O1 O2O2 O3O3 O4O A B O1 O2 O3 O4 O1 = A.B _ _ A B

CBP 2006Comp 4070 Concepts and Philosophy of Computing 8 r0 Decoder Application r1 r2 r0 X Y W XY W Selecting Registers, e.g, add r2,r1,r0 MIPS has 5-bit fields for registers, so are 32 addrdrsrtunused 0 cs r0 Registers decoder

CBP 2006Comp 4070 Concepts and Philosophy of Computing 9 ABC General Product

CBP 2006Comp 4070 Concepts and Philosophy of Computing 10 MUX Exercise CABO A B Op C A B O C = 0 A B O C = 1 What is MUX doing here ?

CBP 2006Comp 4070 Concepts and Philosophy of Computing 11 MUX is a Selector A B Op C CABO

CBP 2006Comp 4070 Concepts and Philosophy of Computing 12 A B C

CBP 2006Comp 4070 Concepts and Philosophy of Computing 13 Multibit MUX A B O C A B C

CBP 2006Comp 4070 Concepts and Philosophy of Computing 14 MUX Application ALU Y’ Y Selection of Datapath into one ALU input. Datapath Y from instruction add r2,r0,r1 Datapth Y’ from instruction addi r2,r0,4 Sam has been designed so all immediate constants come in via Y’ addrdrsrtunused Immediate bit of op-code

CBP 2006Comp 4070 Concepts and Philosophy of Computing 15 Digi design 2 - use MUXes ABO 00I1 01I2 10I3 11I4 A B Op In 0 In 1 In 2 In 3 ABO A B Op “ Muxes can be used to implement arbitrary combinatorial circuits “

CBP 2006Comp 4070 Concepts and Philosophy of Computing 16 MUX Design Exercise 3 input parity detector ABCO

CBP 2006Comp 4070 Concepts and Philosophy of Computing 17 Programmable Logic Arrays Fuse

CBP 2006Comp 4070 Concepts and Philosophy of Computing 18 Extending da Number of Bits A B Out A B Out Some function A B Out 2 N-bits ( = N wires)

CBP 2006Comp 4070 Concepts and Philosophy of Computing 19 Designing Using ROM/RAM A B Out A B Out decoder A B Out 1 Out 2 Several MUX’es fed with the same A,B input produces a multibit output. This looks like a ROM

CBP 2006Comp 4070 Concepts and Philosophy of Computing 20 Let’s Build an ALU + B A Carry In Carry Out S1 S Logical Functions 2.Arithmetic Functions 3.MUX – Selection of Function.

CBP 2006Comp 4070 Concepts and Philosophy of Computing 21 Sequential Circuits Traffic Lights Washing Machines Fetch-Execute Cycle

CBP 2006Comp 4070 Concepts and Philosophy of Computing 22 Circuits with Memory 1 1 ABO

CBP 2006Comp 4070 Concepts and Philosophy of Computing 23 Set Reset Q

CBP 2006Comp 4070 Concepts and Philosophy of Computing 24 Counters T0T1T2T3T Clock 4-bit Counter (4) Reset How to get this to sequence ?

CBP 2006Comp 4070 Concepts and Philosophy of Computing 25 Traffic Light Sequencing Clock 4-bit Counter (4) Reset T0T1T2T3 Combinatorial Logic T2 T3 T0 T1

CBP 2006Comp 4070 Concepts and Philosophy of Computing 26 Fetch Execute Sequencing T1T2T3T4T5 Fetch Decode, Reg Op ALU Op Mem Access Reg Write ALU ALU Counter Decoder Clock Data Memory Code Memory AL U X Y W XY W 0 1 7

CBP 2006Comp 4070 Concepts and Philosophy of Computing 27 ALU Memregs Application Functional Blocks Gates Transistors

CBP 2006Comp 4070 Concepts and Philosophy of Computing 28 N-MOS in P-MOS in CMOS : Complementary Transistors

CBP 2006Comp 4070 Concepts and Philosophy of Computing 29 N-MOS In = 0 In = 1 P-MOS In = 1 In = 0 Transistors are Switches

CBP 2006Comp 4070 Concepts and Philosophy of Computing in out Transistor Symbols Logic Gate Symbol Inverter

CBP 2006Comp 4070 Concepts and Philosophy of Computing B AB A out 1 0 ABO What’s this?