CSE 141L Computer Architecture Lab Fall Lecture 3

Similar documents
CSE140: Components and Design Techniques for Digital Systems

MICROPROCESSOR B.Tech. th ECE

14:332:331. Lecture 1

Processor (I) - datapath & control. Hwansoo Han

COMP 303 MIPS Processor Design Project 3: Simple Execution Loop

EKT 422/4 COMPUTER ARCHITECTURE. MINI PROJECT : Design of an Arithmetic Logic Unit

Levels in Processor Design

EE577A FINAL PROJECT REPORT Design of a General Purpose CPU

Chapter 4. The Processor

Systems Architecture

Hardware Design I Chap. 10 Design of microprocessor

The due date for submitting this assignment has passed. 1) Which of the following statements regarding a microcomputer, a

CHAPTER 5 : Introduction to Intel 8085 Microprocessor Hardware BENG 2223 MICROPROCESSOR TECHNOLOGY

COMPUTER ORGANIZATION AND DESIGN. 5 th Edition. The Hardware/Software Interface. Chapter 4. The Processor

Chapter 4. Instruction Execution. Introduction. CPU Overview. Multiplexers. Chapter 4 The Processor 1. The Processor.

COMPUTER ORGANIZATION AND DESIGN. 5 th Edition. The Hardware/Software Interface. Chapter 4. The Processor

Chapter 4. The Processor

EE 3170 Microcontroller Applications

Chapter 4. The Processor. Computer Architecture and IC Design Lab

Topic #6. Processor Design

16.1. Unit 16. Computer Organization Design of a Simple Processor

Chapter 4. The Processor. Instruction count Determined by ISA and compiler. We will examine two MIPS implementations

BUILDING BLOCKS OF A BASIC MICROPROCESSOR. Part 1 PowerPoint Format of Lecture 3 of Book

CS3350B Computer Architecture Winter 2015

Assembly Language Programming of 8085

INTRODUCTION OF MICROPROCESSOR& INTERFACING DEVICES Introduction to Microprocessor Evolutions of Microprocessor

ENEE 350 Computer Organization Fall, 2004 Project Part 2, due November 18, 2004

CSE 140L Spring 2010 Bonus Final

EECS Components and Design Techniques for Digital Systems. Lec 20 RTL Design Optimization 11/6/2007

ENGG3380: Computer Organization and Design Lab5: Microprogrammed Control

EXPERIMENT NUMBER 11 REGISTERED ALU DESIGN

Inf2C - Computer Systems Lecture Processor Design Single Cycle

The Big Picture: Where are We Now? EEM 486: Computer Architecture. Lecture 3. Designing a Single Cycle Datapath

The Processor: Datapath and Control. Jin-Soo Kim Computer Systems Laboratory Sungkyunkwan University

Chapter 4. MARIE: An Introduction to a Simple Computer. Chapter 4 Objectives. 4.1 Introduction. 4.2 CPU Basics

Math 230 Assembly Programming (AKA Computer Organization) Spring MIPS Intro

ECE260: Fundamentals of Computer Engineering

Computer Science 61C Spring Friedland and Weaver. The MIPS Datapath

ARM 64-bit Register File

Microprocessor Architecture

Microprocessors/Microcontrollers

The Processor. Z. Jerry Shi Department of Computer Science and Engineering University of Connecticut. CSE3666: Introduction to Computer Architecture

CS Computer Architecture Spring Week 10: Chapter

Basics of Microprocessor

CS 152 Computer Architecture and Engineering Lecture 1 Single Cycle Design

CENG 3420 Computer Organization and Design. Lecture 06: MIPS Processor - I. Bei Yu

CSE 141 Computer Architecture Summer Session Lecture 3 ALU Part 2 Single Cycle CPU Part 1. Pramod V. Argade

Single cycle MIPS data path without Forwarding, Control, or Hazard Unit

Microcomputer Architecture and Programming

CPU Organization (Design)

GRE Architecture Session

COSC 243. Computer Architecture 1. COSC 243 (Computer Architecture) Lecture 6 - Computer Architecture 1 1

Computer Systems and -architecture

Review. N-bit adder-subtractor done using N 1- bit adders with XOR gates on input. Lecture #19 Designing a Single-Cycle CPU

EXPERIMENT NO. 1 THE MKT 8085 MICROPROCESSOR TRAINER

ECE410 Design Project Spring 2013 Design and Characterization of a CMOS 8-bit pipelined Microprocessor Data Path

MICROPROCESSOR MICROPROCESSOR. From the above description, we can draw the following block diagram to represent a microprocessor based system: Output

361 datapath.1. Computer Architecture EECS 361 Lecture 8: Designing a Single Cycle Datapath

Chapter 4. MARIE: An Introduction to a Simple Computer

CS222: Processor Design

CPE 335 Computer Organization. Basic MIPS Architecture Part I

CAD4 The ALU Fall 2009 Assignment. Description

University of Pennsylvania Department of Electrical and System Engineering Computer Organization

ECE/CS 552: Introduction to Computer Architecture ASSIGNMENT #3 Due Date: At the beginning of lecture, October 20 th, 2010

TEACHING COMPUTER ARCHITECTURE THROUGH DESIGN PRACTICE. Guoping Wang 1. INTRODUCTION

Chapter 4. The Processor

Microcontroller Systems

V8-uRISC 8-bit RISC Microprocessor AllianceCORE Facts Core Specifics VAutomation, Inc. Supported Devices/Resources Remaining I/O CLBs

Computer Systems. Binary Representation. Binary Representation. Logical Computation: Boolean Algebra

CS 61C: Great Ideas in Computer Architecture Datapath. Instructors: John Wawrzynek & Vladimir Stojanovic

SIDDHARTH GROUP OF INSTITUTIONS :: PUTTUR Siddharth Nagar, Narayanavanam Road QUESTION BANK (DESCRIPTIVE) UNIT-I

Computers and Microprocessors. Lecture 34 PHYS3360/AEP3630

ECE 486/586. Computer Architecture. Lecture # 7

Lecture 3: The Processor (Chapter 4 of textbook) Chapter 4.1

Lab 7: RPN Calculator

TDT4255 Computer Design. Lecture 4. Magnus Jahre. TDT4255 Computer Design

CSEE 3827: Fundamentals of Computer Systems

One and a half hours. Section A is COMPULSORY UNIVERSITY OF MANCHESTER SCHOOL OF COMPUTER SCIENCE

CS311 Lecture: CPU Implementation: The Register Transfer Level, the Register Set, Data Paths, and the ALU

Chapter 4. The Processor Designing the datapath

von Neumann Architecture Basic Computer System Early Computers Microprocessor Reading Assignment An Introduction to Computer Architecture

Basic Computer System. von Neumann Architecture. Reading Assignment. An Introduction to Computer Architecture. EEL 4744C: Microprocessor Applications

Module 5 - CPU Design

CSCB58 - Lab 3. Prelab /3 Part I (in-lab) /2 Part II (in-lab) /2 TOTAL /8

1. Internal Architecture of 8085 Microprocessor

Architecture & Instruction set of 8085 Microprocessor and 8051 Micro Controller

CS61C : Machine Structures

The Processor (1) Jinkyu Jeong Computer Systems Laboratory Sungkyunkwan University

EC-801 Advanced Computer Architecture

14:332:331. Computer Architecture and Assembly Language Fall Week 5

ECE468 Computer Organization and Architecture. Designing a Single Cycle Datapath

Processing Unit CS206T

The Itanium Bit Microprocessor Report

CpE242 Computer Architecture and Engineering Designing a Single Cycle Datapath

CE1921: COMPUTER ARCHITECTURE SINGLE CYCLE PROCESSOR DESIGN WEEK 2

Outline. EEL-4713 Computer Architecture Designing a Single Cycle Datapath

Basic Concepts COE 205. Computer Organization and Assembly Language Dr. Aiman El-Maleh

Advanced Parallel Architecture Lesson 3. Annalisa Massini /2015

Chapter 5: The Processor: Datapath and Control

Laboratory 05. Single-Cycle MIPS CPU Design smaller: 16-bits version One clock cycle per instruction

Transcription:

CSE 141L Computer Architecture Lab Fall 2005 Lecture 3 Pramod V. Argade November 1, 2005 Fall 2005 CSE 141L Course Schedule Lecture # Date Day Lecture Topic Lab Due 1 9/27 Tuesday No Class 2 10/4 Tuesday Lab1: 8-bit Processo ISA - 3 10/11 Tuesday Lab1 Discussion - 4 10/18 Tuesday Lab2: Assembler, ISS Lab1 5 10/25 Tuesday LogicWorks 5 Review - 6 11/1 Tuesday Lab 3: Data Path Lab2 7 11/8 Tuesday Lab 3 Discussion - 8 11/15 Tuesday Lab 4: Full CPU Lab3 9 11/22 Tuesday Lab4 Discussion - 11/29-12/2 Lab 4 Demo by Students Lab4 Slide 3-2 1

Microprocessor Design Steps Design Instruction Set Architecture (ISA) Code applications Develop software generation tools Develop instruction set simulator (ISS) Design datapath, verify it Design the Processor, simulate logic Verify the processor Fabricate the chip Slide 3-3 Processor: A State Machine! Flipflop(s) Combinational Logic Slide 3-4 2

What is a data path? Path along which data in a processor passes Data path consists of Internal storage General purpose register file Special registers ALU Some control logic e.g. signals to control ALU operation Slide 3-5 Example Instruction Formats Example 1: ADD Instruction ADD R D, Constant OPC R D C R D = R D + Constant Example 2: MOV Instruction MOV R D = R S R D, R S OPC R D S Slide 3-6 3

Processor Organization CLK PC I-Mem OPC DST SRC Instruction-OPCODE CPU Control Logic ALU-OP ALU Control Logic CLK Register File 2:1 Multiplexor ALU 2:1 Multiplexor D-Mem Note: Blocks in your architecture equivalent to those in green are to be implemented in Lab3 Slide 3-7 Lab 3 Assignment Design data path for your 8-bit processor architecture Use LogicWorks 5 to design the data path Simulate the data path Slide 3-8 4

What you must include All internal storage in your architecture General purpose register file Stack Accumulator Special registers, status flag(s), etc. Arithmetic Logical Unit Implement data path for all instructions that manipulate data in some way MOV, both immediate-to-register and register-to-register ADD, SUB, XOR, SHIFT, Interconnections between modules Logic to control components of ALU Slide 3-9 What you don t have to implement Following instructions Control transfer instructions (branches, jumps, etc.) Memory load/store instructions Program Counter (PC) I-Mem D-Mem Slide 3-10 5

How you should test data path Stimulus generation: Binary switches Hex keypads Mechanisms to observe results: Binary displays Hex displays Internal variables on the timing diagrams Slide 3-11 Slide 3-12 6

What you will turn in for this Lab Summary of your ISA from Lab 1. Printed schematics for the top level data path you designed in LogicWorks 5. No need to submit all the lower level schematics All the LogicWorks 5 files you created (to be submitted using turnin script). Description of the procedure to follow in order to test the operation of the data path for each instruction for your processor. This is so your TA can test your design. Answers to following questions. Slide 3-13 Questions Which instruction is the most expensive in terms of number of gates it requires (no need to give the exact gate count, just give the reasoning). What tricks did you use to decrease the logic in your data path by sharing the logic among more than one instruction? How does your "move constant to register" and "move register to register" instruction work? Is it a special case of another ALU instruction, or does it use special data path elements? Using your data path, explain how you will load a register with a value from a memory location and store contents of a register to a memory location. Slide 3-14 7

You should show on waveforms and Demo to TA Ability to load a constant with the required number of bits for your ISA into any appropriate register (e.g. any general purpose register). Correct operation of the ALU for all the ALU opcodes supported. Ability to have the same register to be the source and destination of an instruction. Show the ALU operation for interesting input data. For example, if the carry from the adder is saved in your architecture, use data that both does and does not set the carry bit. Slide 3-15 Working knowledge of LogicWorks 5 Assumed! Various components available in Standard Libraries, such as, D Flip-flop, logic gates, multiplexors, registers, adders, clock, binary switch, binary display, hex keypad, hex display, etc. How to connect a bus to various components. How to define a sub-circuit bottom up, i.e. create a circuit and then use it to define the pins on the parent symbol. How to simulate a circuit and generate waveforms. How to print a circuit and waveforms. Slide 3-16 8

Useful Hints Build hierarchical design Test thoroughly at every level of hierarchy Connect binary switches and hex keypads to provide inputs Connect binary and hex displays to observe behavior Test combinations of control signals Test all corner cases for data Bugs buried deep inside hierarchy are hard to find! Slide 3-17 Lab Due Dates Lab 3 Due: Before 6:00 PM Tuesday, November 15 th No late submissions! Make an appointment with TA before November 15th to demo your Lab 3 design You are not allowed to make changes to your design from the time you turnin to the time you demo your design to the TA Slide 3-18 9