-Alan Nelson -Andy Kruger -Dongpu Jin.  CPU is one of the most important and complicated parts of a computer.  We are going to design, implement and.

Slides:



Advertisements
Similar presentations
Pipeline Example: cycle 1 lw R10,9(R1) sub R11,R2, R3 and R12,R4, R5 or R13,R6, R7.
Advertisements

1 Today  All HW1 turned in on time, this is great!  HW2 will be out soon —You will work on procedure calls/stack/etc.  Lab1 will be out soon (possibly.
Pipelined Processor II (cont’d) CPSC 321
Review: MIPS Pipeline Data and Control Paths
ENEE350 Ankur Srivastava University of Maryland, College Park Based on Slides from Mary Jane Irwin ( )
The Processor: Datapath & Control
Term Project Overview Yong Wang. Introduction Goal –familiarize with the design and implementation of a simple pipelined RISC processor What to do –Build.
ENEE350 Ankur Srivastava University of Maryland, College Park Based on Slides from Mary Jane Irwin ( )
Copyright 1998 Morgan Kaufmann Publishers, Inc. All rights reserved. Digital Architectures1 Machine instructions execution steps (1) FETCH = Read the instruction.
VHDL Synthesis of a MIPS-32 Processor Bryan Allen Dave Chandler Nate Ransom.
COMPUTER ORGANIZATION CSCE 230 Final Project. OVERVIEW  Implemented RISC processor  VHDL  Test program created to demonstrate abilities.
Chapter 5 Basic Processing Unit
Pipeline Data Hazards: Detection and Circumvention Adapted from Computer Organization and Design, Patterson & Hennessy, © 2005, and from slides kindly.
Pipelined Datapath and Control
CPE432 Chapter 4B.1Dr. W. Abu-Sufah, UJ Chapter 4B: The Processor, Part B-2 Read Section 4.7 Adapted from Slides by Prof. Mary Jane Irwin, Penn State University.
Electrical and Computer Engineering University of Cyprus LAB 2: MIPS.
CS2100 Computer Organisation The Processor: Datapath (AY2015/6) Semester 1.
TEAM FRONT END ECEN 4243 Digital Computer Design.
1 A single-cycle MIPS processor  An instruction set architecture is an interface that defines the hardware operations which are available to software.
COMPILERS CLASS 22/7,23/7. Introduction Compiler: A Compiler is a program that can read a program in one language (Source) and translate it into an equivalent.
D ATA P ATH OF A PROCESSOR (MIPS) Module 1.1 : Elements of computer system UNIT 1.
December 26, 2015©2003 Craig Zilles (derived from slides by Howard Huang) 1 A single-cycle MIPS processor  As previously discussed, an instruction set.
Microarchitecture. Outline Architecture vs. Microarchitecture Components MIPS Datapath 1.
CSIE30300 Computer Architecture Unit 05: Overcoming Data Hazards Hsin-Chou Chi [Adapted from material by and
February 22, 2016©2003 Craig Zilles (derived from slides by Howard Huang) 1 A single-cycle MIPS processor  As previously discussed, an instruction set.
Elements of Datapath for the fetch and increment The first element we need: a memory unit to store the instructions of a program and supply instructions.
MIPS processor continued
COM181 Computer Hardware Lecture 6: The MIPs CPU.
CPE432 Chapter 4B.1Dr. W. Abu-Sufah, UJ Chapter 4B: The Processor, Part B-1 Read Sections 4.7 Adapted from Slides by Prof. Mary Jane Irwin, Penn State.
MIPS Processor.
CSE 340 Computer Architecture Spring 2016 Overcoming Data Hazards.
CSF Chap B Functional components of computer designs Basic logic gates.
3.1.4 Hardware a. describe the function and purpose of the control unit, memory unit and ALU (arithmetic logic unit) as individual parts of a computer;
Computer Architecture Lecture 6.  Our implementation of the MIPS is simplified memory-reference instructions: lw, sw arithmetic-logical instructions:
CS161 – Design and Architecture of Computer Systems
Electrical and Computer Engineering University of Cyprus
Note how everything goes left to right, except …
Computer Architecture
MIPS Processor.
\course\cpeg323-08F\Topic6b-323
Design of the Control Unit for Single-Cycle Instruction Execution
MIPS processor continued
Forwarding Now, we’ll introduce some problems that data hazards can cause for our pipelined processor, and show how to handle them with forwarding.
Review: MIPS Pipeline Data and Control Paths
Morgan Kaufmann Publishers The Processor
Single-cycle datapath, slightly rearranged
Computer Organization “Central” Processing Unit (CPU)
Current Design.
Design of the Control Unit for One-cycle Instruction Execution
CSCI206 - Computer Organization & Programming
CSC 4250 Computer Architectures
Systems Architecture II
MIPS Processor.
\course\cpeg323-05F\Topic6b-323
Pipeline control unit (highly abstracted)
The Processor Lecture 3.6: Control Hazards
Architecture Overview
MIPS Assembly.
Tri-state buffer A circuit which allows an input to go to output when desired Otherwise it behaves as if “nothing” is connected to the wire An equivalent.
COMS 361 Computer Organization
Pipeline control unit (highly abstracted)
Computer Architecture Processor: Datapath
Pipeline Control unit (highly abstracted)
MIPS Assembly.
The Processor: Datapath & Control.
COMS 361 Computer Organization
CPU Design use pipeline
©2003 Craig Zilles (derived from slides by Howard Huang)
MIPS Processor.
Pipelined datapath and control
Presentation transcript:

-Alan Nelson -Andy Kruger -Dongpu Jin

 CPU is one of the most important and complicated parts of a computer.  We are going to design, implement and test a pipelined processor.

 VHDL:

 Program Counter:  16 bits D-FF  Gives the address of current instruction.

 Next instruction?  pc_src decides next instruction address.

 Control single and corresponding funcitons:

 Instruction memory:  Contain program “mif” file.  Output instruction base on the input address.

 Register file:  Extra output pins for debugging.

 Write to register:  Write back value.  Ground.  imm (load imm).  jal, bal.

 Sign-Extension:  Extend imm part of D-type instruction from 7 bits to 16 bits.

 ALU:  ALU_src determine operand of ALU.  ALUControl determine which operation it does (add, sub, AND, OR, XOR, SLL, SRL).

 Data Memory:  ALU result determine address.  Register second output goes to MEM(sw).

 Write back to register:  Select either data from memory or ALU result been written back.

 We used D-FF to store:  Two outputs from register.  imm part of instruction.  All the control signal from control except pc_src.

 Hazard Detect Unit:  When register write enable is high and write select is same as read select, want to forward WB data direct to ALU instead from register

 Better understanding how CPU works.  Better understanding how software and hardware interact.  Learned working as a team to carry out a complex design task.

 Demonstration next.