June 20071R. Smith - University of St Thomas - Minnesota A spreadsheet-based simulation of CPU instruction execution R. E. Smith Computer & Computational.

Slides:



Advertisements
Similar presentations
Fall 20041R. Smith - University of St Thomas - Minnesota Extending the Spreadsheet to Illustrate Basic CPU Operations in a Computer Literacy Course Richard.
Advertisements

Chapter 2: Data Manipulation
Machine cycle.
Stored Program Architecture
DAP teaching computer architecture at Berkeley since 1977
CPU Review and Programming Models CT101 – Computing Systems.
by Wannarat Computer System Design Lecture 2 Instruction Set Architecture.
RISC and Pipelining Prof. Sin-Min Lee Department of Computer Science.
The Central Processing Unit (CPU) Understanding Computers.
Damian BrowneLuis PabonPedro Tovar The operation of a computer in executing a program consists of a sequence of Instruction Cycles, with one machine.
CSE115: Introduction to Computer Science I
LC-3 Computer LC-3 Instructions
Midterm Wednesday Chapter 1-3: Number /character representation and conversion Number arithmetic Combinational logic elements and design (DeMorgan’s Law)
Chapter 2.2 Machine Language.
Chapters 5 - The LC-3 LC-3 Computer Architecture Memory Map
Basic Computer Organization, CPU L1 Prof. Sin-Min Lee Department of Computer Science.
1 Sec (2.3) Program Execution. 2 In the CPU we have CU and ALU, in CU there are two special purpose registers: 1. Instruction Register 2. Program Counter.
A-Level Computing#BristolMet Session Objectives#4 MUST describe the differences between the main types of primary memory SHOULD describe the function and.
Lecture 3. Diff b/w RAM and Registers Registers are used to hold data immediately applicable to the operation at hand Registers are used to hold data.
Computer Systems Organization CS 1428 Foundations of Computer Science.
GCSE Computing#BristolMet Session Objectives#11 MUST identify what program instructions consist of SHOULD describe how instructions are coded as bit patterns.
Computer Architecture and the Fetch-Execute Cycle
Computer Architecture and the Fetch-Execute Cycle
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 2.
COMPUTER SCIENCE QUESTIONS… BY JACK. WHAT IS THE CPU? The cpu is the central processing unit.
Assembly Language A Brief Introduction. Unit Learning Goals CPU architecture. Basic Assembler Commands High level Programming  Assembler  Machine Language.
The Central Processing Unit (CPU) and the Machine Cycle.
Chapter 2 Data Manipulation Yonsei University 1 st Semester, 2015 Sanghyun Park.
1 Computer Architecture Part II-B: CPU Instruction Set.
Chapter 2 Data Manipulation. © 2005 Pearson Addison-Wesley. All rights reserved 2-2 Chapter 2: Data Manipulation 2.1 Computer Architecture 2.2 Machine.
Lecture 7: 9/17/2002CS149D Fall CS149D Elements of Computer Science Ayman Abdel-Hamid Department of Computer Science Old Dominion University Lecture.
September 26, 2001Systems Architecture I1 Systems Architecture I (CS ) Lecture 2: Implementation of a Simplified Computer Jeremy R. Johnson Wednesday,
© GCSE Computing Candidates should be able to:  describe the characteristics of an assembler Slide 1.
1.4 Representation of data in computer systems Instructions.
CSE115: Introduction to Computer Science I Dr. Carl Alphonce 219 Bell Hall
CMSC 104, Lecture 061 Stored Programs A look at how programs are executed.
Chapter 2 Data Manipulation © 2007 Pearson Addison-Wesley. All rights reserved.
RISC / CISC Architecture by Derek Ng. Overview CISC Architecture RISC Architecture  Pipelining RISC vs CISC.
Representation of Data - Instructions Start of the lesson: Open this PowerPoint from the A451 page – Representation of Data/ Instructions How confident.
A Level Computing – A2 Component 2 1f, 1g, 1h, 1i, 1j.
The Central Processing Unit (CPU)
Immediate Addressing Mode
CPU Organisation & Operation
Computer Organisation
פרק 2: חיווט, זיכרונות בנקים זוגיים ואי-זוגיים
Data Representation – Instructions
The fetch-execute cycle
The Processor and Machine Language
Figure 8.1 Architecture of a Simple Computer System.
Software comes from heaven when you have good hardware. Ken Olsen
CS149D Elements of Computer Science
Intro to Architecture & Organization
Figure 8.1 Architecture of a Simple Computer System.
Computer Architecture and the Fetch-Execute Cycle
Sequencing, Selection, and Loops in Machine Language
Processor Fundamentals
CSCI-N 100 Dept. of Computer and Information Science
MARIE: An Introduction to a Simple Computer
MARIE: An Introduction to a Simple Computer
Program Execution.
October 29 Review for 2nd Exam Ask Questions! 4/26/2019
Information Representation: Machine Instructions
Objectives Describe common CPU components and their function: ALU Arithmetic Logic Unit), CU (Control Unit), Cache Explain the function of the CPU as.
Hmmm Assembly Language
Computer Architecture
Algoritmos y Programacion
Sec (2.3) Program Execution.
Computer Science. The CPU The CPU is made up of 3 main parts : Cache ALU Control Unit.
Presentation transcript:

June 20071R. Smith - University of St Thomas - Minnesota A spreadsheet-based simulation of CPU instruction execution R. E. Smith Computer & Computational Science University of St. Thomas St. Paul, MN

June R. Smith - University of St Thomas - Minnesota The Spreadsheet CPU Motivation – teaching about the CPUMotivation – teaching about the CPU Overview – using a spreadsheetOverview – using a spreadsheet Literacy VersionLiteracy Version Architecture VersionArchitecture Version Fetch CycleFetch Cycle Execute CycleExecute Cycle

June R. Smith - University of St Thomas - Minnesota Teaching about the CPU Literacy – how a CPU worksLiteracy – how a CPU works –Fetch-Execute Cycle – what the Gigahertz count –Registers and RAM –Machine language programming Architecture – how instructions workArchitecture – how instructions work –Mechanism for instruction decoding and execution –Modifying the instruction set – adding and changing

June R. Smith - University of St Thomas - Minnesota Using a spreadsheet Why: Students are familiar with themWhy: Students are familiar with them –Cells provide a visual representation of RAM –Functional semantics via the Value Rule –Contrast with machine language semantics How: Implementing the behaviorHow: Implementing the behavior –Use a column of cells as RAM –Separate columns for fetch and execute cycles –Use a macro to cycle the state machine –Separate cells for last state and next state –Each register has its own row

June R. Smith - University of St Thomas - Minnesota Literacy version

June R. Smith - University of St Thomas - Minnesota Architecture Version GoalsGoals –Better instruction set: conditionals, indexing –Easy for students to follow instruction execution –Easy for students to modify instructions First attemptFirst attempt –Instructions assigned to separate columns –Registers/cycles split into separate rows –Hard to explain and modify Current versionCurrent version –Separate sheets/tabs for each instruction cycle –Easier to add a defer cycle for indirection, if desired

June R. Smith - University of St Thomas - Minnesota Architecture Version: Fetch Cycle

June R. Smith - University of St Thomas - Minnesota Execute Cycle

June 20079R. Smith - University of St Thomas - Minnesota Demonstration

June R. Smith - University of St Thomas - Minnesota Instruction Set InstructionCodeExample TextExample Code Add xx1xxAdd Store xx2xxStore Jump xx3xxJump 5305 Stop0 0 Invert1 1 Clear2 2 Noop3 3