FE Review Computer Terms

Similar documents
COMPUTER ORGANIZATION AND ARCHITECTURE

Microcomputer Architecture and Programming

CC411: Introduction To Microprocessors

The x86 Microprocessors. Introduction. The 80x86 Microprocessors. 1.1 Assembly Language

8051 Microcontrollers

ELEG3924 Microprocessor

MICROPROCESSOR MEMORY ORGANIZATION

ELEG3923 Microprocessor Ch.2 Assembly Language Programming

Dec Hex Bin ORG ; ZERO. Introduction To Computing

MICROPROCESSOR MCQs. 1) What does the microprocessor comprise of? a. Register section b. One or more ALU c. Control unit d.

1 MALP ( ) Unit-1. (1) Draw and explain the internal architecture of 8085.

COSC 243. Input / Output. Lecture 13 Input/Output. COSC 243 (Computer Architecture)

Microprocessors I MICROCOMPUTERS AND MICROPROCESSORS

Advanced Parallel Architecture Lesson 3. Annalisa Massini /2015

CHAPTER ASSEMBLY LANGUAGE PROGRAMMING

Machine Architecture and Number Systems

Microprocessors/Microcontrollers

COA. Prepared By: Dhaval R. Patel Page 1. Q.1 Define MBR.

CREATED BY M BILAL & Arslan Ahmad Shaad Visit:

User. Application program. Interfaces. Operating system. Hardware

M. Sc (CS) (II Semester) Examination, Subject: Computer System Architecture Paper Code: M.Sc-CS-203. Time: Three Hours] [Maximum Marks: 60

Machine Architecture and Number Systems CMSC104. Von Neumann Machine. Major Computer Components. Schematic Diagram of a Computer. First Computer?


lesson 3 Transforming Data into Information

TNBEDCSVIP.IN. S.No CONTEND Page No 1. NUMBER SYSTEM AND BASE CONVERSIONS TYPES OF NUMBER SYSTEM 1. Binary Number System:

Microprocessors and Microcontrollers. Assignment 1:

Architecture of 8085 microprocessor

MACHINE LEVEL REPRESENTATION OF DATA

Memory Study Material

Unit - II. Computer Concepts and C Programming 06CCP13. Unit II

Padasalai s - VIRUDHUNAGAR DISTRICT COMMON FIRST MID TERM TEST, JULY 2018 STANDARD 11 COMPUTER APPLICATION

umber Systems bit nibble byte word binary decimal

VARDHAMAN COLLEGE OF ENGINEERING (AUTONOMOUS) Shamshabad, Hyderabad

CHETTINAD COLLEGE OF ENGINEERING AND TECHNOLOGY COMPUTER ARCHITECURE- III YEAR EEE-6 TH SEMESTER 16 MARKS QUESTION BANK UNIT-1

EE 5340/7340 Motorola 68HC11 Microcontroler Lecture 1. Carlos E. Davila, Electrical Engineering Dept. Southern Methodist University

Menu. word size # of words byte = 8 bits

An Overview of the Computer System. Kafui A. Prebbie 24

THE MICROCOMPUTER SYSTEM CHAPTER - 2

In 8086 Carry flag, Parity flag, Auxiliary carry flag, Zero flag, Overflow flag, Trace flag, Interrupt flag, Direction flag, and Sign flag.

Memory organization Programming model - Program status word - register banks - Addressing modes - instruction set Programming examples.

Introduction to general architectures of 8 and 16 bit micro-processor and micro-controllers

Q1. Describe C.P.U and its subunits with the help of diagram?

Chapter 2 Number Systems and Codes Dr. Xu

Information Science 1

COMP3221: Microprocessors and. and Embedded Systems. Instruction Set Architecture (ISA) What makes an ISA? #1: Memory Models. What makes an ISA?

E3940 Microprocessor Systems Laboratory. Introduction to the Z80

EXPERIMENT NO. 1 THE MKT 8085 MICROPROCESSOR TRAINER

Microprocessor Architecture. mywbut.com 1

MA Unit 4. Question Option A Option B Option C Option D

UNIT-II. Part-2: CENTRAL PROCESSING UNIT

Lecture Objectives. Introduction to Computing Chapter 0. Topics. Numbering Systems 04/09/2017

Week 1. Introduction to Microcomputers and Microprocessors, Computer Codes, Programming, and Operating Systems

Advanced Parallel Architecture Lesson 3. Annalisa Massini /2015

Unit wise Question Bank UNIT-II

Introduction to Computers - Chapter 4

Computers Are Your Future

8051 microcontrollers

Computer Organization Question Bank

Terminology, Types of Computers & Computer Hardware

8051 Overview and Instruction Set

3 Computer Architecture and Assembly Language

The Institution of Engineers - Sri Lanka

Unit objective. Unit Introduction UNIT - I. In this unit you will be introduced to :

3.1 Description of Microprocessor. 3.2 History of Microprocessor

SAE5C Computer Organization and Architecture. Unit : I - V

MICROPROCESSOR B.Tech. th ECE

Laboratory: Introduction to Mechatronics. Instructor TA: Edgar Martinez Soberanes Lab 2. PIC and Programming

System Unit. By: Khadeeja Farkash

Microcontrollers. Microcontroller

Chapter 1 Computer System Overview

Sardar Patel University S Y BSc. Computer Science CS-201 Introduction to Programming Language Effective from July-2002

Computer Hardware Requirements for ERTSs: Microprocessors & Microcontrollers

Computer Organization

Computer Organization and Technology Processor and System Structures

Chapter Two. Hardware Basics: Inside the Box

Control Unit: The control unit provides the necessary timing and control Microprocessor resembles a CPU exactly.

Course Description: This course includes concepts of instruction set architecture,

Microcomputers. Outline. Number Systems and Digital Logic Review

CSC 553 Operating Systems

CC312: Computer Organization

S.R.M. INSTITUTE OF SCIENCE & TECHNOLOGY SCHOOL OF ELECTRONICS & COMMUNICATION ENGINEERING

PART A (22 Marks) 2. a) Briefly write about r's complement and (r-1)'s complement. [8] b) Explain any two ways of adding decimal numbers.

Computer Organization and Architecture, Pt. 2

LOGIC DESIGN. Dr. Mahmoud Abo_elfetouh

Operating System: an Overview. Lucia Dwi Krisnawati, MA

Introduction to Microcontrollers

CS401 - Computer Architecture and Assembly Language Programming FAQs By

Instruction Sets: Characteristics and Functions Addressing Modes

Lecture 2 Microcomputer Organization: Fig.1.1 Basic Components of Microcomputer

Chapter 1: An Overview of Computers and Programming Languages. Objectives. Objectives (cont d.) Introduction

ELEG3923 Microprocessor Ch.0 & Ch.1 Introduction to Microcontroller

Darshan Institute of Engineering & Technology for Diploma Studies Unit - 1

Latches. IT 3123 Hardware and Software Concepts. Registers. The Little Man has Registers. Data Registers. Program Counter

Chapter 3: Number Systems and Codes. Textbook: Petruzella, Frank D., Programmable Logic Controllers. McGraw Hill Companies Inc.

Digital Logic Lecture 4 Binary Codes

Ali Karimpour Associate Professor Ferdowsi University of Mashhad

Full file at

Computers Are Your Future

EE 308: Microcontrollers

MICROPROCESSOR MICROPROCESSOR. From the above description, we can draw the following block diagram to represent a microprocessor based system: Output

Transcription:

FE Review Computer Terms 2/2/2011 1

Computers sizes Supercomputers Mainframe centralized, large memory, large peripherals Mini-computers Less memory, smaller Microcomputers smaller still few peripherals, slower than all, can be used as standalone devices 2/2/2011 2

Architecture Input Output Memory CPU 2/2/2011 3

The Microprocessor CPU on a single chip» Control Unit» Logic Unit» Accumulators» Specialized and non-specialized registers 2/2/2011 4

Special registers Accumulators: Hold data and instructions while they are being worked on and for future use. The accumulator is a special case register. More is better! Program Counter (PC): Special register which holds the address of the NEXT instruction to be executed 2/2/2011 5

Special Registers (continued) Stacks: t t f d t temporary storage of data or address in sequential order FIFO => First in First Out LIFO =>Last in First Out Sometimes called a Push-down register Flag Register: H ld i di id l i di t Holds individual indicators that specific actions have taken place (usually within the accumulators) Instruction Register (IR): holds current instruction being executed. 2/2/2011 6

Base 10 number system reviewed radix pt. 3 4 2. 1 5 2 1 0 1 2 10 10 10 10 10 We can represent this number by the polynomial 3*10 2 + 4*10 1 + 2*10 0-1 2 + 1*10 5 * 10 342.15 2/2/2011 7 10

Base 2 (binary system) Computers use a number system known as binary which is a base 2 system. Since it is a base 2 system, the highest number in the system is a 1. 1 0 0 1 1 4 1 0 2 2 2 1*2 4 1*2 1 1*2 0 16 2 1 19 2/2/2011 8

Base 10 to Base 2 Conversion Convert 42 to Binary (Base 2) 10 powers of two 32 16 8 4 2 1 need 42 1 0 1 0 1 02 42 10 10 2 2 0 remainder = 42 10 bit 8 7 6 5 4 3 2 1 0 # 273 17 17 17 17 1 1 1 1 256 128 64 32 16 8 4 2 1 273 1 0 0 0 1 0 0 0 1 power 2 2/2/2011 9

Base 8 (octal system) Convert 1750 to base 8 10 3 1 * 8 1 * 512 512 2 7 * 8 7 * 64 448 1 5 * 8 5 * 8 40 0 0 * 8 0 * 1 0 1, 000 10 2/2/2011 10

Base 10 to Octal conversion 800 288 32 0. 512 64 8 1. 1 4 4 0. 2/2/2011 11

Binary to Octal Conversion Convert 101101112 to Octal Start from the radix point and group into groups of three. Feel free to pad the left most group to make a group of three. 0 1 0 1 1 0 1 1 1. 267 2 2 6 7 8 2/2/2011 12

Octal to Binary Conversion Convert 52 8 to Binary 5 2 101010 8 2 101 010 2/2/2011 13

Base 16 (hex system) Convert A D AD85 to base 16 10 * 3 16 10 * 4, 096 40,960 * 2 16 13 * 256 3,328 8 8 1 * 16 * 16 128 0 5 * 16 5 * 1 5 44, 421 10 2/2/2011 14

Base 10 to Base 16 Conversion Convert 2748 to Hex. As with the other systems, we will use the " Sum of Weights " method. 256 16 1 A B C 2748 188 12 So the answer i s ABC 16 2/2/2011 15

Binary to Base 16 Conversion Convert 101101 to Base 16 101101=10 1101 2 D 2 2 16 2 D 2/2/2011 16

Base 16 to Binary Conversion Convert 5AC 16 Base 2 5 A C 10110101100 16 2 0101 1010 1100 2/2/2011 17

Data Sizes The smallest changeable unit of data is known as the BIT. The letters stand for Binary digit. 1 0 0 1 9 4 bits 1 nibble 2 10 The next data size up is the Nibble which is 4 bits long. 2/2/2011 18

Data Sizes (continued) Byte = 8 Bits Word = 16 Bits = 2 Bytes Long Word = 32 Bits = 4 bytes Double Word = 64 Bits = 4 Words 2/2/2011 19

Data Types Character data ASCII American Standard Code for Information Interchange Numerical data Binary Commonly used by mini- and micro- computers Allows a maximum of 128 different characters. EBCDIC Extended Binary Coded Decimal Interchange Code Used extensively by mainframes Allows a maximum of 256 characters 2/2/2011 20

Parity System This is an extremely simple way of making sure that single errors in data interchange does not occur. There are two basic types of parity: Even or Odd. A bit position is reserved somewhere in the data Word (or larger data structure). Then the number of 1 s in the word are counted. If Even Parity is desired, then the total number of ones Needs to be EVEN. If it isn t, then the Parity bit is set to a 1 which makes the total even. Otherwise, it is set to a 0. The same process applies to Odd parity. 2/2/2011 21

Memory Size Memory size uses prefixes such as K, M, and G 1k x 8 of ram is 2 10 x 8 bits wide of data. 2 10 x 8 = 1,024 * 8 = 8,192 bits. Note that The K here did not mean 1000 exactly. Nor Will a Gig (G) actually mean 10 9 exactly. 2/2/2011 22

Memory Types Volatile memory (Lost when power is lost) Random Access Memory (RAM) Non-volatile memory Read Only Memory (ROM) Programmable ROM (PROM) Erasable PROM (EPROM) Hard Drives, CD/DVD ROMS, Floppies, etc. 2/2/2011 23

Example Question Which of the following types of memory is lost when a computer's power is interrupted? (A) (B) (C) (D) RAM ROM PROM EPROM 2/2/2011 24

Bus Address Bus Carries address locations Control Bus Transfers control and and status information Data Bus - Carries the actual data Series or parallel 2/2/2011 25

Example Question A 256k-word memory uses 16 bit-words. How many parallel data lines are required to pass data to the CPU for processing? (A) 2 (B) 8 (C) 9 (D) 16 The key word here is "Parallel". All bits in a word are passed in parallel to the CPU. There is one data line per bit in the word. 2/2/2011 26

Command Sets Complex Instruction ti Set (CISC) Reduced Instruction Set (RISC) Used to increase speed. Fewer, but more powerful instructions. 2/2/2011 27

Operating System Sometimes referred to as the OS, this manages everything that the computer does with regards to memory, processor operation scheduling, access to/form peripherals, I/O, resolves any conflicts with resources. The OS is often also referred to as the BIOS or Basic input/output System. 2/2/2011 28

Multi-Tasking Main memory is allocated between several users with different applications running at the same time. It is also known as Multi-Programming. g If the term USER is literally different people, then it can also be called a Multi-User system. 2/2/2011 29

Time Sharing Also known as swapping, (not that type of swapping!!. Lets keep this out of the gutter, OK?!!). This is a technique where each user takes a turn using the OS for a specific period of time, (less than one second). At the end of the users time, the active memory is stored in a private area (assigned to the user), and then the next users private memory area is loaded into active memory. 2/2/2011 30

Run Modes Batch Mode Real-time mode (also known as interactive mode. 2/2/2011 31

Structured Programming Connector Indicates that the flow chart continues elsewhere Terminal Begins and Ends a Flowchart text Indicates that the chart continues on the following page text Calculations or Data Manipulation 2/2/2011 32

Structured Programming (cont) Indicates a branch decision. Could be 2 or 3 branches Decision Macro or Subroutine Predifined Process Call to an I/O routine I/O THIS IS A COMMENT BLOCK 2/2/2011 33

START Reset Vector Initialize Display Call Initialize Clr COUNTER convert to format Increment COUNTER Setup I/O port Call I/O Yes Counter =21? Poss results of a Test < 0, = 0, > 0 RETURN RETURN No Call 2/2/2011 Display 34

Example Question The variable t in the flowchart below has an initial value of 0.5. What is the value of the variable p at the conclusion of the routine? (A) 2. 9 (B) 3.334334 (C) 4.0 (D) 4.44 iteration n p b b t? 1 1 4.00 4 3 no 2 2 2.67 4 5 no 3 3 3. 47 4 7 no 4 4 2.9 4 9 yes 2/2/2011 35

Example Question The key here is to come up with some equations and then complete a grid! p p b b n n1 n 4 1 2n 1 1 1 4.00 4 3 no 2 2 2.67 4 5 no 3 3 3.47 4 7 no 4 4 2.9 4 9 yes (A) 2.9 iteration n p b b t? (B) 3.334 (C) 4.0 (D) 4.44 2/2/2011 36

Algorithms Language independent 2/2/2011 37

IF-THEN-single statement Algorithm IF condition THEN single state ment END IF Fortran IF condition statement 2/2/2011 38

IF-THEN-multiple Algorithm Fortran IF IF condition THEN Multiple END IF not conditio n GO TO 10 10 CONTINUE 2/2/2011 39

IF-THEN-ELSE IF condition THEN Algorithm ELSE IF Fortran 5 END IF not conditi on GO TO 5 GO TO 6 CONTINUE 6 CONTINUE 2/2/2011 40

DO WHILE DO WHILE Algorit hm END DO condition Fortran 5 IF not condition GO TO 6 GO TO 5 6 CONTINUE 2/2/2011 41

DO UNTIL Algorithm Fortran 5 DO UNTIL END DO CONTINUE IF not condition condition GO TO 5 2/2/2011 42

DO FOR Algorithm Fortran DO FOR I L TO M BY N END DO DO 10 I LMN,, 10 CONTINUE (, N can be omitted in which case, 1 is assumed) 2/2/2011 43

Multi-way selection ELSE-IF Algorithm IF condition(1) THEN ELSE IF condition(2) THEN ELSE IF condition(3) TH EN ELSE condition(4) 2/2/2011 END IF 44

Multi-way selection ELSE-IF Fortran IF not condition(1) GO TO 10 GO TO 20 10 IF not condition(2) GO TO 11 GO TO 20 11 IF not condition( 3) GO TO 12 statem ents GO TO 20 12 CONTINUE 2/2/2011 20 CONTINUE 45

Multi-way selection CASE Algorithm CASE variable OF 1: 2: 3: ELSE END C ASE ELSE is optional 2/2/2011 46

Multi-way selection CASE Fortran IF var iable.lt. 1 GO TO 20 IF var iable.gt. 3 GO TO 20 GO TO 11,12,13, 11 CONTINUE GO TO 30 12 CONTINUE GO TO 30 13 CONTINUE GO TO 30 var iable 2/2/2011 47 30 CONTINUE

Function Algorithm FUNCTION function-name param-1,..., param-n stateme nts RETURN expression END function-name name Fortran e FUNCTION function-name param,..., n data typ -1 param- function-name RETURN END expression 2/2/2011 48

Subroutine Algorithm SUBROUTINE subroutine-name param-1,..., param-n E ND st atements RETURN subroutine- name Fortran SUBROUTINE subroutine-name param-1,..., param- n RETURN 2/2/2011 END 49

Global Reference Algorithm GLOBAL REFERENCE GLOBAL variable 1,..., variable n COMMON Fortran variable 1,..., var iable n 2/2/2011 50