What you can do with very little:

Similar documents
Pipelined Beta. Handouts: Lecture Slides. Where are the registers? Spring /10/01. L16 Pipelined Beta 1

Computer Elements and Datapath. Microarchitecture Implementation of an ISA

Computer Architecture and Organization: L08: Design Control Lines

Lecture Topics. Announcements. Today: Pipelined Processors (P&H ) Next: continued. Milestone #4 (due 2/23) Milestone #5 (due 3/2)

Lecture 3: Logic circuit. Combinational circuit and sequential circuit

6.S084 Tutorial Problems L19 Control Hazards in Pipelined Processors

Chapter 4. Pipelining Analogy. The Processor. Pipelined laundry: overlapping execution. Parallelism improves performance. Four loads: Non-stop:

Datapath Components. Control vs. Datapath, Registers, Adders (Binary Addition) Copyright (c) 2012 Sean Key

Pipelining A B C D. Readings: Example: Doing the laundry. Ann, Brian, Cathy, & Dave. each have one load of clothes to wash, dry, and fold

RISC Central Processing Unit

CS/ECE 252: INTRODUCTION TO COMPUTER ENGINEERING UNIVERSITY OF WISCONSIN MADISON

Lecture 02: Digital Logic Review

Microprocessor & Interfacing Lecture Programmable Interval Timer

Pipelined Processor Design

EE382V-ICS: System-on-a-Chip (SoC) Design

A B C D. Ann, Brian, Cathy, & Dave each have one load of clothes to wash, dry, and fold. Time

2 Building Blocks. There is often the need to compare two binary values.

7/11/2012. Single Cycle (Review) CSE 2021: Computer Organization. Multi-Cycle Implementation. Single Cycle with Jump. Pipelining Analogy

EECS150 - Digital Design Lecture 2 - Synchronous Digital Systems Review Part 1. Outline

8253 functions ( General overview )

Computer Architecture and Organization:

CS 110 Computer Architecture Lecture 11: Pipelining

0 0 Q Q Q Q

Asanovic/Devadas Spring Pipeline Hazards. Krste Asanovic Laboratory for Computer Science M.I.T.

CS420/520 Computer Architecture I

DELD MODEL ANSWER DEC 2018

ECE473 Computer Architecture and Organization. Pipeline: Introduction

MSI Design Examples. Designing a circuit that adds three 4-bit numbers

RISC Design: Pipelining

CMSC 611: Advanced Computer Architecture

5. (Adapted from 3.25)

6.111 Lecture # 19. Controlling Position. Some General Features of Servos: Servomechanisms are of this form:

ACIIR IP CORE IIR FILTERS

Electronics. Digital Electronics

SPECIMEN. Candidate Number

Chapter 3 Combinational Logic Design

Instructor: Dr. Mainak Chaudhuri. Instructor: Dr. S. K. Aggarwal. Instructor: Dr. Rajat Moona

Combinational Logic Circuits. Combinational Logic

Understanding Engineers #2

MT8980D Digital Switch

Digital Logic and Design (Course Code: EE222) Lecture 14: Combinational Contd.. Decoders/Encoders

GCE A level 1145/01 ELECTRONICS ET5. P.M. THURSDAY, 31 May hours. Centre Number. Candidate Number. Surname. Other Names

Digital Proportional Remote Controller. Digital proportional Remote Controller. Application Notes. Page 1

EECE494: Computer Bus and SoC Interfacing. Serial Communication: RS-232. Dr. Charles Kim Electrical and Computer Engineering Howard University

Out-of-Order Execution. Register Renaming. Nima Honarmand

ICS312 Machine-level and Systems Programming

7.1. Unit 7. Fundamental Digital Building Blocks: Decoders & Multiplexers

Computer Architecture

SHF Communication Technologies AG. Wilhelm-von-Siemens-Str. 23D Berlin Germany. Phone Fax

CS152 Computer Architecture and Engineering Lecture 3: ReviewTechnology & Delay Modeling. September 3, 1997

Thursday 6 June 2013 Afternoon

Department Computer Science and Engineering IIT Kanpur

Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates

7.1. Unit 7. Fundamental Digital Building Blocks: Decoders & Multiplexers

Unit 3 Digital Circuits (Logic)

Digital Electronics 8. Multiplexer & Demultiplexer

Exam #2 EE 209: Fall 2017

Data Sheet. HCTL-2000 Quadrature Decoder/Counter Interface ICs HCTL-2000, HCTL-2016, HCTL-2020

Chapter 3. H/w s/w interface. hardware software Vijaykumar ECE495K Lecture Notes: Chapter 3 1

GCE A level 1145/01 ELECTRONICS ET5

Lecture 4: Introduction to Pipelining

Selected Solutions to Problem-Set #3 COE 608: Computer Organization and Architecture Single Cycle Datapath and Control

The book has excellent descrip/ons of this topic. Please read the book before watching this lecture. The reading assignment is on the website.

ECE 2300 Digital Logic & Computer Organization. More Pipelined Microprocessor

Solutions. ICS 151 Final. Q1 Q2 Q3 Q4 Total Credit Score. Instructions: Student ID. (Last Name) (First Name) Signature

B Robo Claw 2 Channel 25A Motor Controller Data Sheet

ICS 151 Final. (Last Name) (First Name)

Overview. This lab exercise requires. A windows computer running Xilinx WebPack A Digilent board. Contains material Digilent, Inc.

! Sequential Logic. ! Timing Hazards. ! Dynamic Logic. ! Add state elements (registers, latches) ! Compute. " From state elements

Datapath Components. Multipliers, Counters, Timers, Register Files

ADC0808/ADC Bit µp Compatible A/D Converters with 8-Channel Multiplexer

8.1. Unit 8. Fundamental Digital Building Blocks: Decoders & Multiplexers

XR-T6166 Codirectional Digital Data Processor

Lecture 18. BUS and MEMORY

ENGG1015: lab 3. Sequential Logic

-- see ' ... ' Started... ' Updated MAR 2007

SF229 Low Power PIR Circuit IC For security applications

EE 42/100 Lecture 24: Latches and Flip Flops. Rev B 4/21/2010 (2:04 PM) Prof. Ali M. Niknejad

Memory, Latches, & Registers

ECEN 449: Microprocessor System Design Department of Electrical and Computer Engineering Texas A&M University

Rochester Institute of Technology Real Time and Embedded Systems: Project 2a

WINTER 14 EXAMINATION

DAC A (VCO) Buffer (write) DAC B (AGC) Buffer (write) Pulse Code Buffer (write) Parameter Buffer (write) Figure A.1. Receiver Controller Registers

Obsolete Product(s) - Obsolete Product(s)

Lecture Topics. Announcements. Today: Memory Management (Stallings, chapter ) Next: continued. Self-Study Exercise #6. Project #4 (due 10/11)

a8259 Features General Description Programmable Interrupt Controller

SYLLABUS of the course BASIC ELECTRONICS AND DIGITAL SIGNAL PROCESSING. Master in Computer Science, University of Bolzano-Bozen, a.y.

Article Number: 457 Rating: Unrated Last Updated: Wed, Sep 2, 2009 at 3:46 PM

B RoboClaw 2 Channel 30A Motor Controller Data Sheet

XR-T6165 Codirectional Digital Data Processor

GCE A level 1145/01 ELECTRONICS ET5

1 Q' 3. You are given a sequential circuit that has the following circuit to compute the next state:

EE 42/100 Lecture 24: Latches and Flip Flops. Rev A 4/14/2010 (8:30 PM) Prof. Ali M. Niknejad

Electronic Instrumentation

ECE 4750 Computer Architecture, Fall 2016 T09 Advanced Processors: Superscalar Execution

Department of Electrical and Electronics Engineering Logic Circuits Laboratory EXPERIMENT-5 COMBINATIONAL LOGIC CIRCUITS

Chapter 3 Digital Logic Structures

Data Converters. Dr.Trushit Upadhyaya EC Department, CSPIT, CHARUSAT

Thursday 5 June 2014 Afternoon

HI Enhanced ARINC V Serial Transmitter and Dual Receiver GENERAL DESCRIPTION APPLICATIONS. PIN CONFIGURATIONS (Top View) FEATURES

Transcription:

page How Computers Work Lecture 3 irect Execution RISC Processor: The Unpipelined ET How Computers Work Lecture 3 Page What you can do with very little: Each instruction class can be implemented using a few simple components. Components: LU Instruction W W W Register File (-port) R R/W ata How Computers Work Lecture 3 Page

page r r r Review: β Model of Computation Processor State Instruction 3 bits (4 bytes) Fetch/Execute Loop: Fetch <> <pc>+ Execute fetched instruction Repeat! 3 bits next instr r3 always How Computers Work Lecture 3 Page 3 Review: ET Instructions Two 3-bit Instruction Formats: Ra Unused Rb Rc Ra 6 bit Constant Rc How Computers Work Lecture 3 Page 4

page 3 Review: β LU Operations What the machine sees (3-bit instruction word): Ra Unused What we prefer to see: symbolic SSEMLY LNGUGE (ra, rb, rc) lternative instruction format: C(ra, const, rc) Rb Rc rc <ra>+<rb> ddthecontentsofratothecontentsof rb; store the result in rc Ra 6 bit Constant Rc rc <ra> + sext(const) SIMILRLY FOR: SU, SUC (optional) MUL, MULC IV, IVC ITWISE LOGIC: N, NC OR,ORC XOR, XORC SHIFTS: SHL, SHR, SR (shift left, right; shift arith right) COMPRES CMPE, CMPLT, CMPLE ddthecontentsofratoconst;storetheresultinrc How Computers Work Lecture 3 Page 5 escending ata Flow View of the eta Operate class: Rc <- <Ra> op <Rb> XR R(R3,XR,XP) 3:6 5: :5 4: R C R RC + SEL LUFN LU op SEL WSEL W W W W RC MEM RF How Computers Work Lecture 3 Page 6 3

page 4 Combinational Read Port on ddress <ddress> How Computers Work Lecture 3 Page 7 ata Register Works like a camera =image = picture E = On/Off Switch clock = shutter release button E Clock How Computers Work Lecture 3 Page 8 4

page 5 Register w/ Enable E clk clk clk E E How Computers Work Lecture 3 Page 9 -Port (independent Read addresses) R Write ddress Write Enable Write ata CLK 5 3 W W Register File (-port) 3 3 R CLK W W <> new <> Note: <R3> lways ERO! (Independent Read ata) What if (say) W=??? reads value from last cycle! How Computers Work Lecture 3 Page 5

page 6 Selector (a.k.a. Multiplexor / MUX) Output is selected to be of N inputs N is a power of K select inputs, K = log(n) May be ganged to select one W-bit word out of N multi-bit words N- N-...... W S K S K W = s = s How Computers Work Lecture 3 Page escending ata Flow View of the eta Operate class: Rc <- <Ra> op <Rb> XR R(R3,XR,XP) 3:6 5: :5 4: R C R RC + SEL LUFN LU op SEL WSEL W W W W RC MEM RF How Computers Work Lecture 3 Page 6

page 7 escending ata Flow View of the eta Operate class: Rc <- <Ra> op C XR R(R3,XR,XP) 3:6 5: :5 4: R C R RC + SEL LUFN LU op SEL WSEL W W W W RC MEM RF How Computers Work Lecture 3 Page 3 Review: β ranches Conditional: rc = <>+; then RN(ra, label, rc) if <ra> nonzero then <- <> + displacement R(ra, label, rc) if <ra> zero then <- <> + displacement Unconditional: R(r3, label, rc) Indirect: JMP(ra, rc) rc = <>+; then <- <> + displacement Note: rc = <>+; then displacement is coded as a <- <ra> CONSTNT in afieldofthe instruction! How Computers Work Lecture 3 Page 4 7

page 8 escending ata Flow View of the eta Rc <- <>+; if <Ra>= then <- <>+C XR R(R3,XR,XP) 3:6 5: :5 4: R C R RC + SEL LUFN LU op SEL WSEL W W W W RC MEM RF How Computers Work Lecture 3 Page 5 escending ata Flow View of the eta JMP: Rc <- <>+; <- <Ra> + C XR R(R3,XR,XP) 3:6 5: :5 4: R C R RC + SEL LUFN LU op SEL WSEL W W W W RC MEM RF How Computers Work Lecture 3 Page 6 8

page 9 Review: β Loads & Stores L(ra, C, rc) rc < Mem[<ra> + sext(c)] > Old New ST(rc, C, ra) ST(ra, C, rc) Mem[<ra> + sext(c)] <rc> Mem[<rc> + sext(c)] <ra> How Computers Work Lecture 3 Page 7 Straightening Out Store Old Format: ST(Rc, C, Ra) Mem[<Ra> + C] <- <Rc> ST(R,, R3) means Mem[<R3> + ] <- <R> NewFormat:ST(Ra,C,Rc) Mem[<Rc> + C] <- <Ra> ST(R,, R3) means Mem[<R3> + ] <- <R> oth versions of Store work from left to right in assembly language. ifference is only in the binary encoding of the instruction, and the hardware implementation s decoding of the binary encoding. How Computers Work Lecture 3 Page 8 9

page escending ata Flow View of the eta L: Rc <- Mem[<Ra>+C] XR R(R3,XR,XP) 3:6 5: :5 4: R C R RC + SEL LUFN LU op SEL WSEL W W W W RC MEM RF How Computers Work Lecture 3 Page 9 escending ata Flow View of the eta ST: Mem[<Rc>+C] <- <Ra> XR R(R3,XR,XP) 3:6 5: :5 4: R C R RC + SEL LUFN LU op SEL WSEL W W W W RC MEM RF How Computers Work Lecture 3 Page

page LR Load Relative Used for loading large (3 bit) constants with data from the instruction stream. epends on the fact data and instruction memory are ports of one main memory. Use: LR (label, Rc) RTL escription: Rc <- <Mem[<Next> + Offset]> Note that Ra is ignored, Offset is calculated from label LR (label, R) R (label + ) label: 3456789 How Computers Work Lecture 3 Page escending ata Flow View of the eta LR: Rc <- Mem[<>++C] XR R(R3,XR,XP) 3:6 5: :5 4: R C R RC + SEL LUFN LU op SEL WSEL W W W W RC MEM RF How Computers Work Lecture 3 Page

page Control Logic Truth Table We can specify it via a table of the form... Control Logic Inputs: OP O L ST R RN JMP LR (Illegal) Control Logic Outputs: SEL SEL SEL WSEL LUFN Wr RF WSEL YOU should be able to fill in this table! How Computers Work Lecture 3 Page 3 Next Time - How to dd How Computers Work Lecture 3 Page 4