A. computers do everything by adding: – 1. multiplication – 2. subtraction – 3. division B. The device which does the arithmetic is called the ALU – 1.

Slides:



Advertisements
Similar presentations
Computer Systems Nat 4/5 Computing Science Computer Structure:
Advertisements

The CPU The Central Presentation Unit What is the CPU?
Computer Memory and Data Transfer
Microprocessors Typical microprocessor controlled devices: Camera, mobile phone, stereo, mp3 player, electronic toys… High-level microprocessor controlled.
Chapter 5: Computer Systems Organization Invitation to Computer Science, Java Version, Third Edition.
Chapter 1 Data Storage. 2 Chapter 1: Data Storage 1.1 Bits and Their Storage 1.2 Main Memory 1.3 Mass Storage 1.4 Representing Information as Bit Patterns.
Starting Out with C++: Early Objects 5/e © 2006 Pearson Education. All Rights Reserved Starting Out with C++: Early Objects 5 th Edition Chapter 1 Introduction.
Basic Computer Organization CH-4 Richard Gomez 6/14/01 Computer Science Quote: John Von Neumann If people do not believe that mathematics is simple, it.
 Prof. Dr. M. H. Assal Introduction to Computer AS 26/10/2014.
Microcontroller based system design
Systems Software Operating Systems.
CS190/295 Programming in Python for Life Sciences: Lecture 1 Instructor: Xiaohui Xie University of California, Irvine.
Alternate Version of STARTING OUT WITH C++ 4 th Edition Chapter 1 Introduction to Computers and Programming.
CHAPTER 4: INTRODUCTION TO COMPUTER ORGANIZATION AND PROGRAMMING DESIGN Lec. Ghader Kurdi.
CSC 125 Introduction to C++ Programming Chapter 1 Introduction to Computers and Programming.
C.S. Choy95 COMPUTER ORGANIZATION Logic Design Skill to design digital components JAVA Language Skill to program a computer Computer Organization Skill.
Chapter 3 Computer Hard ware
Higher Computing Computer Systems S. McCrossan 1 Higher Grade Computing Studies 2. Computer Structure Computer Structure The traditional diagram of a computer...
Topics Introduction Hardware and Software How Computers Store Data
There are different types of translator. An Interpreter Interpreters translate one instruction at a time from a high level language into machine code every.
Computer Processing of Data
E0001 Computers in Engineering1 The System Unit & Memory.
Introduction to Computing: Lecture 4
CS 1308 Computer Literacy and the Internet Computer Systems Organization.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Seventh Edition by Tony Gaddis, Judy.
Chapter 5: Computer Systems Organization Invitation to Computer Science, Java Version, Third Edition.
Computers Are Your Future Eleventh Edition Chapter 2: Inside the System Unit Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall1.
Components of a Computer Prepared by: Mrs. McCallum-Rodney.
Microcode Source: Digital Computer Electronics (Malvino and Brown)
S2008Final_part1.ppt CS11 Introduction to Programming Final Exam Part 1 S A computer is a mechanical or electrical device which stores, retrieves,
BASIC ORGANISATION OF COMPUTER. CONTROL MEMORY ALU OUTPUTINPUT Basic organisation of computer.
GCSE Information Technology Computer Systems 2 Hardware is the name that is given to any part of a computer that you can actually touch. An individual.
COMPUTER ARCHITECTURE. Recommended Text 1Computer Organization and Architecture by William Stallings 2Structured Computer Organisation Andrew S. Tanenbaum.
Computer Organization - 1. INPUT PROCESS OUTPUT List different input devices Compare the use of voice recognition as opposed to the entry of data via.
CSCI 211 Intro Computer Organization –Consists of gates for logic And Or Not –Processor –Memory –I/O interface.
SKILL AREA: 1.2 MAIN ELEMENTS OF A PERSONAL COMPUTER.
Information Technology Basic Computer Architecture Adnan Khalid.
PHY 201 (Blum)1 Microcode Source: Digital Computer Electronics (Malvino and Brown)
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
Computer Organization. The digital computer is a digital system that performs various computational tasks Digital computer use binary number system which.
Electronic Analog Computer Dr. Amin Danial Asham by.
CS 1308 Computer Literacy and the Internet. Objectives In this chapter, you will learn about:  The components of a computer system  Putting all the.
Programmable Logic Controllers LO1: Understand the design and operational characteristics of a PLC system.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Control Unit.
Concepts of Engineering and Technology Copyright © Texas Education Agency, All rights reserved.
Computer operation is of how the different parts of a computer system work together to perform a task.
Simple ALU How to perform this C language integer operation in the computer C=A+B; ? The arithmetic/logic unit (ALU) of a processor performs integer arithmetic.
1. COMPUTERS AND PROGRAMS Rocky K. C. Chang September 6, 2015 (Adapted from John Zelle’s slides)
1 Basic Processor Architecture. 2 Building Blocks of Processor Systems CPU.
1 3 Computing System Fundamentals 3.2 Computer Architecture.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Control Unit.
Copyright © 2014, 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Eighth Edition by Tony Gaddis,
24/06/20161 Hardware Processor components & ROM. 224/06/2016 Learning Objectives Describe the function and purpose of the control unit, memory unit and.
Chapter 1: Introduction to Computers and Programming
CPU Lesson 2.
Computing Science Computer Structure: Lesson 1: Processor Structure
COURSE OUTCOMES OF Microprocessor and programming
Topics Introduction Hardware and Software How Computers Store Data
Control Unit Lecture 6.
Computer Architecture
introduction to computer
Memory Units Memories store data in units from one to eight bits. The most common unit is the byte, which by definition is 8 bits. Computer memories are.
Course Name: Computer Application Topic: Central Processing Unit (CPU)
Chapter 1: Introduction to Computers and Programming
CS190/295 Programming in Python for Life Sciences: Lecture 1
Topics Introduction Hardware and Software How Computers Store Data
Chapter 5: Computer Systems Organization
Chapter 5 Computer Organization
Little Man Computer There’s a little man in the mailroom that follows each instruction to the letter but he can only follow one instruction at a time.
Presentation transcript:

A. computers do everything by adding: – 1. multiplication – 2. subtraction – 3. division B. The device which does the arithmetic is called the ALU – 1. composed of gates just like anything else – 2. represented by a black box.

Serial Addition

Parallel addition

The ALU functions: – does either arithmetic or logic operations – 4 bits plus carry (in and out) – 4 bit function select

Memories Computers, by definition, have memories – hold the program a program is what makes a computer a computer – hold data Requirements of memory: – enter data – save data – retrieve data What is memory? – recording of a series of binary numbers (that's all) – in the case of data, these are actually numbers – in thee case of a program, these may be numbers or may be a truth table showing the computer how to respond to a given circumstance.

Memory types Non-Volatile (mass storage device) – - used for long-term storage – magnetic core = magnetized donuts which store bits isn't used very much any more takes up quite a bit of space random access don't sweat the details of how this works – tape drives data stored in tracks (bits plus parity) prone to errors very cheap slow sequential access – disks (floppy, hard, laser etched) data stored in tracks and sectors may or may not be exchangeable – ROM's read only simplest form is a series of diodes which select a current path in more complicated form, they are semiconductor memories which are programmed using high voltages some are erasable using light or another voltage act like a big truth table

Memory 3. types of ROMS – mask programmed mass produced not field changeable – Programmable ROMS (PROMs) programmed by burning away a fusible link not changeable unless you change ones to zeros – Erasable PROMs (EPROMs) written by using high voltage erased by UV or electrically (EEPROMs)

Sections of a computer: ALU: does the math Control: orchestrates and times the flow of data and processes

the concept of the CPU: collectively, the ALU, the control section and a little memory is called the central processing unit, or the CPU. this is the heart of the computer and is what separates it from an adding machine the type and organization of the CPU vary from computer to computer. when this is on a single chip, it is called a microprocessor Some “mainframe” computers do not have microprocessors Some PC’s have multiple processors

The buses usually a parallel package of at least 8 wires, sometimes more. every device is connected to the buses 1. The control bus – this is a one-way bus – the controller uses this bus to command the other devices – no other devices can apply signals to this bus – but they must all be able to read it. 2. The data/address bus – bi-directional bus – data can go to or from many of the devices – for example, data to or from memory. program counter etc – note that the control bus does not put anything on the A/D bus, but only manipulates it through the other modules.

a simple example suppose we want to get a 4 bit word from A to C; here's what we do: – a. A/R= 1 C/W=1 (these get the data ready to go onto the bus) – b. clock (nothing happens until the clock arrives) note that once the data is on the bus, as many devices as are available can read it HOWEVER, ONLY ONE DEVICE CAN READ DATA ONTO THE BUS AT ANY ONE TIME!!! The controller is responsible for ensuring that a jamup doesn't occur

The whole computer Looks complicated but it’s just a collection of the pieces we already understand The ALU and it’s registers does the math The Control unit reads an instruction and makes it happen The PROM stores the instructions

The control PROM

Languages At the lowest level, commands are a series of 1’s and 0’s – We call this “machine code” – No one programs in it If you apply mnemonics to machine code equivalents, that’s called “Assembly language” – This used to be popular – Almost never used today except by real geeks Higher level languages use commands that invoke a series of assembly language commands Operating systems are a set of definitions for programs – More on this later And there are other combinations of languages on top of languages.

Higher level languages: BASIC: Beginners All-Purpose Symbolic Instruction Code BASIC or any other high level language, can be stored in a rom just like the controller. That means that the computer uses the BASIC ROM to decode basic instructions into machine code sequences. Programs written directly in machine code are the most efficient to the computer, but not to us, so we use high level languages. The BASIC ROM then interfaces between us and the computer

Programming: BASIC basics The program is just a list of instructions Each one executed in turn – Much of programming is directing the flow: – Go to another line – If a condition is fulfilled, go to another line Can be interpereted or compiled (in our case “tokenized”)

Variables % integer such as i% $ string (text) such as A$ ! Single precision such as A! # double precision such a X! Comments: start the line with ‘ See help for other conventions

INPUT: reads input from the keyboard or a file Examples: INPUT “what is your name “, N$ INPUT #1, A$, X BASIC commands

PRINT: writes data to the screen or to a file Example: PRINT “hello” PRINT A PRINT #1 “I am”, Y, “ years old.” (here #1 is an out put device or file) BASIC commands

GOTO: sends the “pointer” to a new location Example: 10 GOTO STOP Note: this is an endless loop: 10 GOTO 10

IF THEN ELSE: executes a statement or a block of statements Syntax: IF condition THEN If the condition is satisfied, then it will execute the then Examples: IF X>0 THEN PRINT X ELSE PRINT –X END IF

FOR NEXT: executes a block of statements a set number of times Increments the counter automatically Example: FOR I% = 1 to 10 PRINT I% NEXT I%

DO LOOP: repeats a block of statements while a condition is met Examples: DO WHILE X# <10 PRINT X# X#=X#+1 LOOP

OPEN and CLOSE: open and close files for input or output Examples: OPEN “LIST.DAT” for output as #1 PRINT #1, A CLOSE #1

Assignment Download and install Qbasic Write a program per the instructions This will build on itself – Start simple, – Edit to incorporate new features – Troubleshoot along the way Submit your work to us by but change “.bas” to “.sab” because Microsoft blocks “.bas”