CARDIAC A cardboard illustrative aid to computation illustrates the operation of a computer demos basic units of a simple computer –input –memory –accumulator.

Slides:



Advertisements
Similar presentations
Chapter 2: Data Manipulation
Advertisements

The “Little Man Computer” Version
Microprocessors.
Code Composer Department of Electrical and Computer Engineering
Programming 68HC11.
 Suppose for a moment that you were asked to perform a task and were given the following list of instructions to perform:
2.3) Example of program execution 1. instruction  B25 8 Op-code B means to change the value of the program counter if the contents of the indicated register.
ABNIAC The following slide presentation is to acquaint the student with ABNIAC. The version used for presentation is the Java version, which can be found.
The Little man computer
The CPU Revision Typical machine code instructions Using op-codes and operands Symbolic addressing. Conditional and unconditional branches.
LC-3 Computer LC-3 Instructions
Chapter 6 In introduction to System Software and Virtual Machine ***Assembly Language.
Translating high level language into machine code
Systems Environment 3 Quick Revision Review of Exercises Introduction to TOM TOM Exercises.
The processor and main memory chapter 4, Exploring the Digital Domain The Development and Basic Organization of Computers.
Dr Verbrugge Simulated Machine Simulated Machine Problem: Find the Average of the following three numbers: 5, 7, 10 Average = 7 with a remainder of 1.
Chapter 7 Low-Level Programming Languages. 2 Chapter Goals List the operations that a computer can perform Discuss the relationship between levels of.
Dale & Lewis Chapter 5 Computing components. Let’s design a computer Generic CPU with registers −Program counter (PC) – 5 bits (size of addresses) −Instruction.
Computer Architecture
Computer Structure.
An Interactive Web-Based Simulation of a General Computer Architecture
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.
Levels of Architecture & Language CHAPTER 1 © copyright Bobby Hoggard / material may not be redistributed without permission.
Machine level architecture Computer Architecture Basic units of a Simple Computer.
Computer Architecture and the Fetch-Execute Cycle
Computer Architecture and the Fetch-Execute Cycle
Computer Architecture and the Fetch-Execute Cycle
Chapter 8: The Very Simple Computer
Computer Systems Week 7: Looping and Input/Output with 3-bit Alma Whitfield.
Model Computer CPU Arithmetic Logic Unit Control Unit Memory Unit
The structure COMPUTER ARCHITECTURE – The elementary educational computer.
1 Ethics of Computing MONT 113G, Spring 2012 Session 7 Computer Architecture The Internet.
Computer Organization CSC 405 (VSC) Very Simple Computer.
Little Man Computer When your program gets “translated to machine code” all 0’s & 1’s The translator must know the language of the program (java) as well.
Computer Science 101 Computer Systems Organization ALU, Control Unit, Instruction Set.
A summary of TOY. 4 Main Components Data Processor Control Processor Memory Input/Output Device.
CMSC 150 PROGRAM EXECUTION CS 150: Wed 1 Feb 2012.
Assembly Language Friday, Week 5 Monday, Week 6. Assembly Language  Set of mnemonic names for the instructions in a particular computer's machine language.
September 26, 2001Systems Architecture I1 Systems Architecture I (CS ) Lecture 2: Implementation of a Simplified Computer Jeremy R. Johnson Wednesday,
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.
Computer Systems Organization
Dale & Lewis Chapter 5 Computing components
Chapter 2 Data Manipulation © 2007 Pearson Addison-Wesley. All rights reserved.
This is where you can reset and run your program. If your program has an “INP” (input) command, you will type it in this box here. Using the LMC These.
Jeremy R. Johnson William M. Mongan
Mastering LMC Coding Part #1 Introduction to Low Level Languages Introduction to Little Man computer Simple examples (demos) with video tutorials included.
Lec 4-2 Five operations of the machine cycle Fetch- fetch the next program instruction from memory. (PC+1); instruction to IR Decode- decode the instruction.
Program to multiply 2 numbers 500-Input x 291-Store acc. as x 500-Input y 292-Store acc. as y 193-Load y in to acc. (0 on 1 st parse) 391-Add x to acc.
F453 Module 8: Low Level Languages 8.1: Use of Computer Architecture.
Instruction Memory value Description ADD1xx Add the value stored at memory address xx to the value in the accumulator register SUB2xx Subtract the value.
The Little man computer
PROGRAMMING THE BASIC COMPUTER
Programming in Machine Language
CHAPTER 6: The Little Man Computer
PROGRAMMING THE BASIC COMPUTER
Lesson Objectives A note about notes: Aims
Instructions at the Lowest Level
The fetch-execute cycle
The Processor and Machine Language
Instruction cycle Instruction: A command given to the microprocessor to perform an operation Program : A set of instructions given in a sequential.
Functional Units.
Intel 8080 Processor The 8080 was an 8-bit processor
Systems Architecture I (CS ) Lecture 2: A Simplified Computer
Programmer’s View of the EAGLE
The Little Man Computer
Sequencing, Selection, and Loops in Machine Language
Computer Architecture
LMC Little Man Computer What do you know about LMC?
Program Execution.
Little Man Computer.
Presentation transcript:

CARDIAC A cardboard illustrative aid to computation illustrates the operation of a computer demos basic units of a simple computer –input –memory –accumulator –program –output

Simple Computer Block Diagram program unit output input memory accumulator

SIMCO Program unit Instruction register Program counter Control unit

The IR The function of the instruction register is to store each instruction word during the time that particular instruction is being executed. Once this instruction is executed, the IR is fed a new (instruction) word.

CARDIAC’s IR

Program Counter (PC)

CARDIAC’s PC Program counter “bug” Program counter “bug” Note:it has Moved to Next instr

Flow Chart Start stop receive numbers to be added do addition announce answer

Start READ FIRST NUMBER READ SECOND NUMBER PUT 1ST NUMBER IN ACCUMULATOR ADD SECOND NUMBER TO FIRST STORE SUM IN MEMORY PRINT SUM Stop Turn on computer Take 1st no., from input and store in memory Take 2nd no., from input and store in memory clear acc and transfer 1st no. to it from memory transfer 2nd no. from mem to acc and add it to 1st transfer sum from acc to memory transfer sum from mem to output and print

017read first number 018read second number 117put first in accumulator 218add second to the first 619store sum in memory 519print sum memory location operation code computer word }

MEMORY addresses SIMCO has 100 addresses (00 through 99)

CADIAC’s memory

Converting SIMCO to THE Stored-Program Mode Program Unit = Instruction Register Program Counter Control Unit + +

input output accumulator op codeaddress controlmemory cell selectorcells program counter instruction register (IR)

Program Example 017read (input) first number 018read second number 117put first number into the accululator 218add second number to the first 619store sum in memory location print the sum Memory locations Operation codes(op codes)

Op codes cardiac Instruction Set ======================= Op Code Abbr. Meaning INP Input. Read from input device 1 CLA Clear accumulator and add 2 ADD Add to accumulator 3 TAC Test accumulator contents 4 SFT Shift accumulator contents 5 OUT Output. Write to output device 6 STO Store accumulator to memory cell 7 SUB Subtract from accumulator 8 JMP Jump to address 9 HRS Halt and Reset

You can install a java version of cardiac Requires Java language be installed first Your instructor will demonstrate CARDIAC in operation. Note: to install type java jcinc from DOS command window Play around with it…try to figure out how to write and execute a program

CARDIAC program:

1st program instruction Note: program begins in memory Location nine

Data “words”load here

Output = 17