Cpu control.1 2/14 Datapath Components for Lab The Processor! (4.1- 4.4 4 th ed)

Slides:



Advertisements
Similar presentations
CS61C L19 CPU Design : Designing a Single-Cycle CPU (1) Beamer, Summer 2007 © UCB Scott Beamer Instructor inst.eecs.berkeley.edu/~cs61c CS61C : Machine.
Advertisements

1 Representing Numbers Using Bases Numbers in base 10 are called decimal numbers, they are composed of 10 numerals ( ספרות ) = 9* * *10.
Computer Structure - The ALU Goal: Build an ALU  The Arithmetic Logic Unit or ALU is the device that performs arithmetic and logical operations in the.
Inst.eecs.berkeley.edu/~cs61c UCB CS61C : Machine Structures Lecture 25 CPU design (of a single-cycle CPU) Sat Google in Mountain.
Levels in Processor Design
30 September 2004Comp 120 Fall September 2004 Chapter 4 – Logic Gates Read in Chapter 4 pages , , section 4.8 through top of page.
CS61C L25 Single Cycle CPU Datapath (1) Garcia © UCB Lecturer PSOE Dan Garcia inst.eecs.berkeley.edu/~cs61c CS61C : Machine.
CS61C L25 CPU Design : Designing a Single-Cycle CPU (1) Garcia, Fall 2006 © UCB T-Mobile’s Wi-Fi / Cell phone  T-mobile just announced a new phone that.
Inst.eecs.berkeley.edu/~cs61c UCB CS61C : Machine Structures Lecture 25 CPU design (of a single-cycle CPU) Intel is prototyping circuits that.
CS61C L25 CPU Design : Designing a Single-Cycle CPU (1) Garcia, Spring 2007 © UCB Google Summer of Code  Student applications are now open (through );
EEM 486: Computer Architecture Lecture 3 Designing a Single Cycle Datapath.
CS 61C L16 Datapath (1) A Carle, Summer 2004 © UCB inst.eecs.berkeley.edu/~cs61c/su05 CS61C : Machine Structures Lecture #16 – Datapath Andy.
CS 61C: Great Ideas in Computer Architecture (Machine Structures) Lecture 28: Single-Cycle CPU Datapath Control Part 1 Guest Lecturer: Sagar Karandikar.
The Processor Andreas Klappenecker CPSC321 Computer Architecture.
More Basics of CPU Design Lecture for CPSC 5155 Edward Bosworth, Ph.D. Computer Science Department Columbus State University.
CS3350B Computer Architecture Winter 2015 Lecture 5.6: Single-Cycle CPU: Datapath Control (Part 1) Marc Moreno Maza [Adapted.
ECE 3110: Introduction to Digital Systems Chapter 6 Combinational Logic Design Practices Adders, subtractors, ALUs.
EEL-4713C Computer Architecture Introduction: the Logic Design Process
Chap 7. Register Transfers and Datapaths. 7.1 Datapaths and Operations Two types of modules of digital systems –Datapath perform data-processing operations.
1 Arithmetic Logic Unit ALU. 2 The Bus Concept 3 CPU Building Blocks  Registers (IR, PC, ACC)  Control Unit (CU)  Arithmetic Logic Unit (ALU)
Computing Systems Designing a basic ALU.
1 Lecture 6 BOOLEAN ALGEBRA and GATES Building a 32 bit processor PH 3: B.1-B.5.
Gary MarsdenSlide 1University of Cape Town Chapter 5 - The Processor  Machine Performance factors –Instruction Count, Clock cycle time, Clock cycles per.
Computer Organization CS224 Fall 2012 Lesson 22. The Big Picture  The Five Classic Components of a Computer  Chapter 4 Topic: Processor Design Control.
Computer Architecture
CDA 3101 Fall 2013 Introduction to Computer Organization The Arithmetic Logic Unit (ALU) and MIPS ALU Support 20 September 2013.
EEM 486: Computer Architecture Designing a Single Cycle Datapath.
Lecture 18: Hardware for Arithmetic Today’s topic –Intro to Boolean functions (Continued) –Designing an ALU 1.
Orange Coast College Business Division Computer Science Department CS 116- Computer Architecture The Processor: Datapath.
Kavita Bala CS 3410, Spring 2014 Computer Science Cornell University.
Arithmetic.1 2/15 Computer Arithmetic ALU Performance is critical ( App. C5, C6 4 th ed.)
W.S Computer System Design Lecture 4 Wannarat Suntiamorntut.
Datapath and Control Unit Design
MIPS ALU. Building from the adder to ALU ALU – Arithmetic Logic Unit, does the major calculations in the computer, including – Add – And – Or – Sub –
1 Modified from  Modified from 1998 Morgan Kaufmann Publishers Chapter Three: Arithmetic for Computers Section 2 citation and following credit line is.
Addition, Subtraction, Logic Operations and ALU Design
By Wannarat Computer System Design Lecture 4 Wannarat Suntiamorntut.
Gates AND, OR, NOT NAND, NOR Combinational logic No memory A set of inputs uniquely and unambiguously specifies.
COM181 Computer Hardware Lecture 6: The MIPs CPU.
Computer Arthmetic Chapter Four P&H. Data Representation Why do we not encode numbers as strings of ASCII digits inside computers? What is overflow when.
EE204 L03-ALUHina Anwar Khan EE204 Computer Architecture Lecture 03- ALU.
1 The ALU l ALU includes combinational logic. –Combinational logic  a change in inputs directly causes a change in output, after a characteristic delay.
CPU Design - Datapath. Review Use muxes to select among input S input bits selects 2 S inputs Each input can be n-bits wide, indep of S Can implement.
Computer Arthmetic Chapter Four P&H.
Combinational Circuits
CS161 – Design and Architecture of Computer Systems
Lecture 11: Hardware for Arithmetic
IT 251 Computer Organization and Architecture
Basics of digital systems
Morgan Kaufmann Publishers
Processor (I).
COSC 2021: Computer Organization Instructor: Dr. Amir Asif
CSCI206 - Computer Organization & Programming
5. Combinational circuits
Enemies make you stronger, allies make you weaker. Frank Herbert
Levels in Processor Design
Lecture 11: Hardware for Arithmetic
Levels in Processor Design
The Processor Lecture 3.2: Building a Datapath with Control
The Processor Lecture 3.1: Introduction & Logic Design Conventions
COMS 361 Computer Organization
COMS 361 Computer Organization
A 1-Bit Arithmetic Logic Unit
Combinational Circuits
Computer Architecture Processor: Datapath
Levels in Processor Design
The Processor: Datapath & Control.
Designing a Single-Cycle Processor
Processor: Datapath and Control
Presentation transcript:

Cpu control.1 2/14 Datapath Components for Lab The Processor! ( th ed)

Cpu control.2 2/14 Functional Units Needed to build datapath

Cpu control.3 2/14 Review: How Registers work Register –Similar to D Flip Flop N-bit input and output Write Enable input –Write Enable: negated (0): Data Out will not change asserted (1): Data Out will become Data In after clock edge Clk Data In Write Enable NN Data Out

Cpu control.4 2/14 MIPS Register File Register File consists of 32 registers: –Two 32-bit output busses: Read data 1 & Read data 2 –A 32-bit input bus: write data Register is selected by: –R1 (read register 1) selects the register to put on read data 1 –R2 (read register 2) selects the register to put on read data 2 –RW (write register) selects the register to be written via (write data) when Write Enable is 1 (Regwrite) Clock input (CLK) –The CLK input is a factor ONLY during write operation –During read operation, behaves as a combinational logic block: Read data1 & read data 2 valid after “access time.” Clk Write data Write Enable 32 Read data RWR1R bit Registers Read data 2

Cpu control.5 2/14 Memory Memory (Data) –input bus: Data In (Write data) –output bus: Data Out (Read Data) Memory word selected by: –Address selects word to put on Data Out –Write Enable = 1: address selects memory word to be written via the Data In bus (Memwrite) Clock input (CLK) (omitted from Book diag for simplicity) –The CLK input is a factor ONLY during write operation –During read operation, behaves as a combinational logic block: Address valid => Data Out valid after “access time.” Instruction memory data not shown in Book for simplicity Clk Data In Write Enable 32 DataOut Address read data Write data

Cpu control.6 2/14 Complete Single Cycle Datapath for : R, LD/ST, BEQ Can execute basic instructions in a single clock cycle No resource can be used more than one time during a single cycle

Cpu control.7 2/14 Datapath controlled by control unit

Cpu control.8 2/14 Requirements: CPU needs a 32-bit ALU (1) Functional Specification inputs: 2 x 32-bit operands A, B, 4-bit mode outputs:32-bit result S, 1-bit carry, 1 bit overflow operations:add, addu, sub, subu, and, or, xor, nor, slt, sltU (2) Block Diagram (schematic symbol/ Verilog description) ALU AB m ovf S 32 4 c

Cpu control.9 2/14 1-bit adder Review (Appendix B.5, B.6) ABCCoSum Sum = a!bc! + ab!c! + a!b!c+abc = a b c = XOR Carryout = a!bc + ab!c + abc! + abc a b Sum Cin Co A B Cin sum 2 units of delay from A/B to sum 1unit of delay from Cin to sum

Cpu control.10 2/14 Carry Out circuit Cin a b Cout 2 units of delay from Cin to Cout

Cpu control.11 2/14 Additional operations: Subtract, AND, OR A - B = A + (– B) = A + B + 1 –form two complement by invert and add one A B 1-bit Full Adder CarryOut Mux CarryIn Result add and or S-select invert

Cpu control.12 2/14 1-bit ALU: AND, OR, a+b, a+b! Most significant bit ALU Delays Result = 1 gate delay From a to result = 2 Form b to Result = 2 (ignore b invert)

Cpu control.13 2/14 32-bit ALU using ripple carry adder Cin a0 b0 Sum0 Sum1 Sum2 Sum31 operation a1 b1 a31 b31 ALU0 ALU1 ALU2 ALU31

Cpu control.14 2/14 Final 32- bit ALU, including zero detect Operation