Machine level architecture Computer Architecture Basic units of a Simple Computer.

Slides:



Advertisements
Similar presentations
The “Little Man Computer” Version
Advertisements

Programming 68HC11.
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.
CARDIAC A cardboard illustrative aid to computation illustrates the operation of a computer demos basic units of a simple computer –input –memory –accumulator.
1 Lecture-2 CSIT-120 Spring 2001 Revision of Lecture-1 Introducing Computer Architecture The FOUR Main Elements Fetch-Execute Cycle A Look Under the Hood.
CSE115: Introduction to Computer Science I Dr. Carl Alphonce 219 Bell Hall 1.
Chapter 6 In introduction to System Software and Virtual Machine ***Assembly Language.
Add 2 Numbers using a Function Input Number 1 Input Number 2 Call a function that adds these numbers Write the answer out to screen.
Some thoughts: If it is too good to be true, it isn’t. Success is temporary. It is hard work to make it simple. Knowing you did it right is enough reward.
1 Lecture-2 CS-120 Fall 2000 Revision of Lecture-1 Introducing Computer Architecture The FOUR Main Elements Fetch-Execute Cycle A Look Under the Hood.
Dale & Lewis Chapter 5 Computing components. Let’s design a computer Generic CPU with registers −Program counter (PC) – 5 bits (size of addresses) −Instruction.
Chapters 4 & 5: LC-3 Computer Architecture Machine Instructions Assembly language Programming in Machine and Assembly Language.
Assembly & Machine Languages
Machine Instruction Characteristics
Computer Science 101 Assembly Language. Problems with Machine Language Uses binary - No English-like words to make it more readable Uses binary - No English-like.
Computer Architecture and the Fetch-Execute Cycle
Computer Science 101 How the Assembler Works. Assembly Language Programming.
Microprocessor Dr. Rabie A. Ramadan Al-Azhar University Lecture 7.
CHAPTER 6: The Little Man Computer
Model Computer CPU Arithmetic Logic Unit Control Unit Memory Unit
A relation is an operation, or series of operations, that maps one number onto another.
Important Concepts  Parts of the CPU  Arithmetic/Logic Unit  Control Unit  Registers  Program Counter  Instruction Register  Fetch/Decode/Execute.
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.
Computer Science 101 Computer Systems Organization Machine Language Examples Entire machine.
Microprocessor Dr. Rabie A. Ramadan Al-Azhar University Lecture 8.
An Example Architecture. A Paper Computer - Woody Woody's characteristics Word size – 8 bits One word.
Operations with Decimals
Dale & Lewis Chapter 5 Computing components
AddressInstructionMeaning Load value at 11 into accumulator Copy value of accumulator to Load value at 15 into.
Reverse Subtraction Objectives:  do a subtract by adding  check your answer by adding.
Learning about Inverse Operations. What is the inverse of Opening the door? Turning Right? Driving Forward? The inverse undoes the original function.
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.
Polya’s 4-step Process 1.Understand the problem 2.Devise a plan 3.Carry out the plan 4.Look back, review results.
Translating Assembly Language to Machine Language.
The Postman in your PC Today you are going to learn how a computer’s CPU works to handle data. Teachcompsci.co.uk.
Instruction Memory value Description ADD1xx Add the value stored at memory address xx to the value in the accumulator register SUB2xx Subtract the value.
Computer Science 210 Computer Organization Machine Language Instructions: Control.
The Little man computer
CHAPTER 6: The Little Man Computer
Unit 1 Instruction set M.Brindha AP/EIE
Programming in Machine Language
Assembly Language Programming of 8085
Microprocessor T. Y. B. Sc..
AKA – Input/output tables
CHAPTER 6: The Little Man Computer
3.Instruction Set of 8085 Consists of 74 operation codes, e.g. MOV
A Closer Look at Instruction Set Architectures: Expanding Opcodes
The Processor and Machine Language
LC-3 Details and Examples
Systems Architecture I (CS ) Lecture 1: Random Access Machines
CHAPTER 6: The Little Man Computer
Computer Science 210 Computer Organization
PROGRAMMING Program Development.
Making Programming Friendlier
Programmer’s View of the EAGLE
Sequencing, Selection, and Loops in Machine Language
Phillipa Gill SCI 199 Y Tutorial Sept. 14, 2009 Phillipa Gill
Computer Architecture
Objective - To add and subtract decimals.
Suppose I want to add all the even integers from 1 to 100 (inclusive)
LMC Little Man Computer What do you know about LMC?
Relations.
Program Execution.
Writing Equations from Tables
CS501 Advanced Computer Architecture
Systems Architecture I (CS ) Lecture 1: Random Access Machines
CPSC 171 Introduction to Computer Science
Presentation transcript:

Machine level architecture Computer Architecture Basic units of a Simple Computer

How do we add two numbers?

Program Unit Output Input (data) Memory Accumulator SIMCo

Inputs and Outputs Goldman Sachs partner Dennis Suskind

Processes and Flow Charts Start Receive numbers to add Do Addition Announce Answer Stop Start Read first number Read second number Put first number into accumulator Add second number to first Store sum in memory Print Sum Stop

Program InputOutput Memory Accumulator 1 st number to be added Read First Number

Program InputOutput Memory Accumulator 2 nd number to be added Read Second Number

Program InputOutput Memory Accumulator 1 st Number Put first number in accumulator

Program InputOutput Memory Accumulator Sum of 1 st and 2 nd number Add second number to first

Program InputOutput Memory Accumulator Sum Store sum in memory

Program InputOutput Memory Accumulator 1 st number to be added Print Sum

Operational Codes 0 = Input 1 = Clear and Add 2 = Add 3 = Test Accumulator Contents 4 = Shift 5 = Output 6 = Store 7 = Subtract 8 = Unconditional Jump 9 = Halt and Reset

Memory

Operational Codes 9 = Input 1 = Clear and Add 2 = Add 3 = Test Accumulator Contents 4 = Shift 5 = Output 6 = Store 7 = Subtract 8 = Unconditional Jump 0 = Halt and Reset Cardiac Op Codes