Computing Machinery Chapter 7: Register Transfers.

Slides:



Advertisements
Similar presentations
Machine cycle.
Advertisements

6-1 Chapter 6 - Datapath and Control Department of Information Technology, Radford University ITEC 352 Computer Organization Principles of Computer Architecture.
Register Transfer Level
CS107: Introduction to Computer Science Lecture 2 Jan 29th.
Give qualifications of instructors: DAP
8085 processor. Bus system in microprocessor.
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
CS 151 Digital Systems Design Lecture 37 Register Transfer Level
The Control Unit: Sequencing the Processor Control Unit: –provides control signals that activate the various microoperations in the datapath the select.
Midterm Wednesday Chapter 1-3: Number /character representation and conversion Number arithmetic Combinational logic elements and design (DeMorgan’s Law)
Lec 17 Nov 2 Chapter 4 – CPU design data path design control logic design single-cycle CPU performance limitations of single cycle CPU multi-cycle CPU.
Henry Hexmoor1 Chapter 10- Control units We introduced the basic structure of a control unit, and translated assembly instructions into a binary representation.
Dale & Lewis Chapter 5 Computing components. Let’s design a computer Generic CPU with registers −Program counter (PC) – 5 bits (size of addresses) −Instruction.
1 KU College of Engineering Elec 204: Digital Systems Design Lecture 20 Datapath and Control Datapath - performs data transfer and processing operations.
Computer ArchitectureFall 2007 © Sep 10 th, 2007 Majd F. Sakr CS-447– Computer Architecture.
Chapter 7 – Registers and Register Transfers Part 1 – Registers, Microoperations and Implementations Logic and Computer Design Fundamentals.
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
9/15/09 - L25 Registers & Load Enable Copyright Joanne DeGroat, ECE, OSU1 Registers & Load Enable.
1 CS Programming Languages Random Access Machines Jeremy R. Johnson.
Lecture 18 Last Lecture Today’s Topic Instruction formats
An Introduction Chapter Chapter 1 Introduction2 Computer Systems  Programmable machines  Hardware + Software (program) HardwareProgram.
Chap 8. Sequencing and Control. 8.1 Introduction Binary information in a digital computer –data manipulated in a datapath with ALUs, registers, multiplexers,
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use ECE/CS 352: Digital Systems.
Eng. Mohammed Timraz Electronics & Communication Engineer University of Palestine Faculty of Engineering and Urban planning Software Engineering Department.
COSC 3430 L08 Basic MIPS Architecture.1 COSC 3430 Computer Architecture Lecture 08 Processors Single cycle Datapath PH 3: Sections
Module 8 Part B Adapted By and Prepared James Tan © 2001.
Procedures for managing workflow components Workflow components: A workflow can usually be described using formal or informal flow diagramming techniques,
Introduction to Computer Engineering ECE/CS 252, Fall 2010 Prof. Mikko Lipasti Department of Electrical and Computer Engineering University of Wisconsin.
Chap 7. Register Transfers and Datapaths. 7.1 Datapaths and Operations Two types of modules of digital systems –Datapath perform data-processing operations.
TOPIC : Programming Model UNIT 1: Modeling Digital Circuits Module 1 : Functional Modeling.
Chapter 8: The Very Simple Computer
Module : Algorithmic state machines. Machine language Machine language is built up from discrete statements or instructions. On the processing architecture,
Lec 15Systems Architecture1 Systems Architecture Lecture 15: A Simple Implementation of MIPS Jeremy R. Johnson Anatole D. Ruslanov William M. Mongan Some.
Computer Organization CSC 405 (VSC) Very Simple Computer.
ECE 445 – Computer Organization
A summary of TOY. 4 Main Components Data Processor Control Processor Memory Input/Output Device.
Computer Architecture Souad MEDDEB
September 26, 2001Systems Architecture I1 Systems Architecture I (CS ) Lecture 2: Implementation of a Simplified Computer Jeremy R. Johnson Wednesday,
Algorithmic state machines
Dale & Lewis Chapter 5 Computing components
Registers; State Machines Analysis Section 7-1 Section 5-4.
04/26/20031 ECE 551: Digital System Design & Synthesis Lecture Set : Introduction to VHDL 12.2: VHDL versus Verilog (Separate File)
Functional Modeling.
Register Transfer Languages (RTL)
1 COMP541 Datapaths I Montek Singh Mar 8, Topics  Over next 2/3 classes: datapaths  Basic register operations Book sections 7-2 to 7-6 and 7-8.
MICROPROCESSOR DETAILS 1 Updated April 2011 ©Paul R. Godin prgodin gmail.com.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Control Unit.
CSCI-365 Computer Organization Lecture Note: Some slides and/or pictures in the following are adapted from: Computer Organization and Design, Patterson.
F453 Module 8: Low Level Languages 8.1: Use of Computer Architecture.
REGISTER TRANSFER AND MICROOPERATIONS
REGISTER TRANSFER AND MICROOPERATIONS
Introduction CPU performance factors
Morgan Kaufmann Publishers
ECE 434 Advanced Digital System L13
Basic Processing Unit Unit- 7 Engineered for Tomorrow CSE, MVJCE.
Manual Example How to manually convert high-level code into circuit
T Computer Architecture, Autumn 2005
Computer Architecture and Design Lecture 6
Instruction encoding We’ve already seen some important aspects of processor design. A datapath contains an ALU, registers and memory. Programmers and compilers.
The Processor Lecture 3.2: Building a Datapath with Control
The Processor Lecture 3.1: Introduction & Logic Design Conventions
Overview Part 1 - Registers, Microoperations and Implementations
A Discussion on Assemblers
KU College of Engineering Elec 204: Digital Systems Design
Instruction encoding We’ve already seen some important aspects of processor design. A datapath contains an ALU, registers and memory. Programmers and compilers.
COMS 361 Computer Organization
ECE 448 Lecture 6 Finite State Machines State Diagrams, State Tables, Algorithmic State Machine (ASM) Charts, and VHDL code ECE 448 – FPGA and ASIC Design.
A Top-Level View Of Computer Function And Interconnection
Computer Systems An Introducton.
COMS 361 Computer Organization
Presentation transcript:

Computing Machinery Chapter 7: Register Transfers

A Register Transfer

Immediate and Direct Register Transfer Modes Immediate Mode - In the immediate mode, a literal data value (constant) is loaded into memory or a register. For instance, the value 1234 is loaded into register R Direct Addressing Mode - In direct addressing mode, the value on the right-hand side (rhs) of the register transfer refers to the address (location) in memory of the value being loading into the register. The value at memory address 1234 is loaded into R alternatively the data in register R is transferred to Memory address 1234 by,

Register Indirect Addressing - We can also refer to an address as a variable such as in another register. In this example, the contents of memory at an address stored in register R2 is loaded into register R1, Register Addressing Modes One of the applications made simpler by this addressing mode is stepping through an array of values stored in a contiguous region of memory. where the second register transfer refers to incrementing the value contained in R2. The third register transfer could be replaced with a loop back to the first register transfer using an algorithmic state machine model.

Indexed Addressing Mode - In this data transfer mode, the address in memory is determined by a combination of the contents of a register and a constant value. Indexed Transfer Modes The address of the value loaded into R1 is the contents of R2 plus the value In this example, we may be referring to the 1234th element of an array of values in memory starting at address R2. Indirect Addressing - Also called memory indirect addressing, this mode uses one value in memory as an address to locate the address of another value in memory. Load into R1 the value located in memory at the address stored in memory at address 1234,

Operations on Registers ADD R1, R2, R3 Three-Register Operations Two-Register Operations Single-Register Operations Assembly Register Transfer Operation ADD R1, R2 Assembly Register Transfer Operation ADD R Assembly Register Transfer Operation

LDA R3 load ACC with the value in R3 ADD R2 add the value of R2 to the value in ACC STA R1 store the value in ACC into R1 Register Operations and Assembly Instructions

Basic Arithmetic Operations n-bit left shift n-bit right shift

Logical Operations Addr Class Bits for Subnet Mask Subnet Mask. Class A Class B Class C

Conditional Operations

Algorithmic state machines are less formal than FSMs and are easier to understand. They are like flowcharts with a few added rules and restrictions. Their principal value is as an alternative to FSMs for designing sequential circuits. Algorithmic State Machine Rami Abielmona, Advanced Topic Lecture #3, ASM Design, SMRLab – SITE – University of Ottawa, CEG 3151 – High Level Computer Systems Design, May 21, 2003

Step 1: Algorithm Description - Create an algorithm that describes the operation of the circuit being designed. Step 2: ASM Chart - Convert the algorithm into a graphical representation. Step 3: Datapath - Design a datapath based on the ASM chart. Step 4: Detailed ASM Chart - Use the datapath to complete the ASM chart. Step 5: Control Logic - Design the control logic based on the detailed ASM chart. ASM Design Process

section_0 A ← Input1; B ← Input2; Count ← Input3; count_loop if (Count > 0) (goto section_1); else (goto section_2); section_1 A ← A + B; Count ← Count - 1; (goto count_loop); section_2 If (A > 25) Output ← A; (goto section_2); Algorithm Description Rami Abielmona, Advanced Topic Lecture #3, ASM Design, SMRLab – SITE – University of Ottawa, CEG 3151 – High Level Computer Systems Design, May 21, 2003

ASM Chart Rami Abielmona, Advanced Topic Lecture #3, ASM Design, SMRLab – SITE – University of Ottawa, CEG 3151 – High Level Computer Systems Design, May 21, 2003

Just as the ASM chart shows the flow of control signals, the datapath emphasizes the flow of data. The datapath diagram displays each register (and other memory elements), their inputs, outputs, and operations on them in order of execution. Datapath

The Detailed ASM Chart includes the control signals and conditionals defined in the datapath in our ASM chart. In building the detailed ASM chart, we need to follow certain rules and protocols: Detailed ASM Chart

ASM Component to Circuit Conversion

Conversion Transformation Process Ali Tehrani, A Systematic Approach to Logic Design, Chapter 4, Conestoga College Electronics Engineering Technology, Reconfigurable Computing, Course Notes, Winter 2005.

"One-Hot" Circuit

Summary Register Transfers define the operations of computing hardware circuits that move data instructions between memory, ALU and registers. The ad-hoc sequential design methods we have covered in Chapter 5 of the textbook can be codified into a formal procedure. There are a number of proprietary design tools that are based on ASMs such as Verilog, and VHDL (Very High Definition Language) but these tools are not necessary to use ASMs effectively. There are many excellent books and other references for ASMs.