CECS 341 – Computer Design Primer.1(c) 2015 -- R. W. Allison.

Slides:



Advertisements
Similar presentations
Chapter 2: Data Manipulation
Advertisements

Week 3. Assembly Language Programming  Difficult when starting assembly programming  Have to work at low level  Use processor instructions >Requires.
CS 151 Digital Systems Design Lecture 3 More Number Systems.
Data Representation COE 205
Assembly Language for Intel-Based Computers, 4th Edition
Data Representation ICS 233
ENGIN112 L3: More Number Systems September 8, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 3 More Number Systems.
Number System and Codes
Computer Organization & Programming Chapter2 Number Representation and Logic Operations.
Simple Data Type Representation and conversion of numbers
1 CS/COE0447 Computer Organization & Assembly Language Pre-Chapter 2.
Binary Representation. Binary Representation for Numbers Assume 4-bit numbers 5 as an integer  as an integer  How? 5.0 as a real number  How?
Computers Organization & Assembly Language
How Computers Work Dr. John P. Abraham Professor UTPA.
CSU0014 Assembly Languages Homepage: Textbook: Kip R. Irvine, Assembly Language for Intel-Based Computers,
Summer 2014 Chapter 1: Basic Concepts. Irvine, Kip R. Assembly Language for Intel-Based Computers 6/e, Chapter Overview Welcome to Assembly Language.
Computer Architecture
Chapter 1: Basic Concepts
Lec 3: Data Representation Computer Organization & Assembly Language Programming.
ECEN2102 Digital Logic Design Lecture 1 Numbers Systems Abdullah Said Alkalbani University of Buraimi.
Digital Logic Design Lecture 3 Complements, Number Codes and Registers.
Computer Systems Organization CS 1428 Foundations of Computer Science.
Lecture Objectives: 1)Define the terms least significant bit and most significant bit. 2)Explain how unsigned integer numbers are represented in memory.
CPU Internal memory I/O interface circuit System bus
ECE 2110: Introduction to Digital Systems Signed Addition/Subtraction.
Chapter 19 Number Systems. Irvine, Kip R. Assembly Language for Intel-Based Computers, Translating Languages English: Display the sum of A times.
COSC 2021: Computer Organization Instructor: Dr. Amir Asif Department of Computer Science York University Handout # 3: MIPS Instruction Set I Topics: 1.
CSNB374: Microprocessor Systems Chapter 1: Introduction to Microprocessor.
Today’s topics Architecture overview Architecture overview Machine instructions Machine instructions Instruction Execution Cycle Instruction Execution.
ACOE2511 Assembly Language for the 80X86/Pentium Intel Microprocessors Lecturer: Dr. Konstantinos Tatas.
AEEE2031 Data Representation and Numbering Systems.
Lecture 1: 8/27/2002CS170 Fall CS170 Computer Organization and Architecture I Ayman Abdel-Hamid Department of Computer Science Old Dominion University.
 Lecture 2 Processor Organization  Control needs to have the  Ability to fetch instructions from memory  Logic and means to control instruction sequencing.
Introduction to Microprocessors Chapter 2. Decimal or Base 10 Numbers  Have ten different digits (0-9)  It is a weighted number system. Each position.
COMPUTER SCIENCE Data Representation and Machine Concepts Section 1.6 Instructor: Lin Chen Sept 2013.
Represents different voltage levels High: 5 Volts Low: 0 Volts At this raw level a digital computer is instructed to carry out instructions.
Irvine, Kip R. Assembly Language for Intel-Based Computers 6/e, Signed Integers The highest bit indicates the sign. 1 = negative, 0 = positive.
An Example Architecture. A Paper Computer - Woody Woody's characteristics Word size – 8 bits One word.
Bits, Data types, and Operations: Chapter 2 COMP 2610 Dr. James Money COMP
Computer Science I CSCI Summer 2009 David E. Goldschmidt, Ph.D.
The Instruction Set Architecture. Hardware – Software boundary Java Program C Program Ada Program Compiler Instruction Set Architecture Microcode Hardware.
Chapter 2 — Instructions: Language of the Computer — 1 Memory Operands Main memory used for composite data – Arrays, structures, dynamic data To apply.
1 COMS 161 Introduction to Computing Title: Computing Basics Date: September 8, 2004 Lecture Number: 7.
In decimal we are quite familiar with placing a “-” sign in front of a number to denote that it is negative The same is true for binary numbers a computer.
Chapter 1 Representing Data in a Computer. 1.1 Binary and Hexadecimal Numbers.
Computer Operation. Binary Codes CPU operates in binary codes Representation of values in binary codes Instructions to CPU in binary codes Addresses in.
COMPUTER ARCHITECTURE & OPERATIONS I Instructor: Yaohang Li.
Software Design and Development Storing Data Computing Science.
1 Integer Representations V1.0 (22/10/2005). 2 Integer Representations  Unsigned integer  Signed integer  Sign and magnitude  Complements  One’s.
1 Chapter 1: Basic Concepts Assembly Language for Intel-Based Computers, 4th edition Kip R. Irvine 9/6/2003.
Data Representation ICS 233
Microprocessor and Microcontroller Fundamentals
Integer Real Numbers Character Boolean Memory Address CPU Data Types
Microprocessor Systems Design I
Computer Science 210 Computer Organization
IPCOWALA INSTITUTE OF ENGINEERING & TECHNOLOGY-DHARMAJ
Data Representation – Instructions
Computer Science 210 Computer Organization
Number Representations and Basic Processor Architecture
Software comes from heaven when you have good hardware. Ken Olsen
Computer Architecture & Operations I
MARIE: An Introduction to a Simple Computer
Introduction to Microprocessor Programming
Data Representation ICS 233
CS 286 Computer Organization and Architecture
October 29 Review for 2nd Exam Ask Questions! 4/26/2019
Part I Data Representation and 8086 Microprocessors
Algoritmos y Programacion
Dr. Clincy Professor of CS
Presentation transcript:

CECS 341 – Computer Design Primer.1(c) R. W. Allison

CECS 341 – Computer Design Primer.2(c) R. W. Allison 1: the art or science of building; specifically : the art or practice of designing and building structures… What is architecture? (Merriam-Webster.com) Perspectives (Latin: from per- through + specere to look; hence, to see through, clearly) 1: Instruction Set Architecture (ISA)1: Instruction Set Architecture (ISA) 5: the manner in which the components of a computer or computer system are organized and integrated Fully defined in Programmers Reference ManualsFully defined in Programmers Reference Manuals a.k.a. “exo-architecture”a.k.a. “exo-architecture” 2: Micro-Architecture2: Micro-Architecture Defined in Data and Control Paths using “RTL” and micro-instructionsDefined in Data and Control Paths using “RTL” and micro-instructions a.k.a. “endo-architecture”a.k.a. “endo-architecture”

CECS 341 – Computer Design Primer.3(c) R. W. Allison What do computers do?What do computers do? Computers execute Instructions!Computers execute Instructions! How do they execute instructions?How do they execute instructions? With a Finite State Machine (FSM)!With a Finite State Machine (FSM)! 2) Decode – determine (a) operation and (b) operands2) Decode – determine (a) operation and (b) operands 3) Execute – execute the operation and return results3) Execute – execute the operation and return results Fetch 1) Fetch – read the instruction from memory1) Fetch – read the instruction from memory Decode Execute What kind of “instructions” do they execute?What kind of “instructions” do they execute? Aha, here’s the “rub.”Aha, here’s the “rub.” Do an upper-campus survey (All the answers would be correct)

CECS 341 – Computer Design Primer.4(c) R. W. Allison if (Y>X) then A=B+C;H.L.L. (high-level language) (Processor independent) else A=B–C; (Processor independent) (compiler) (assembler) (CPU designer—i.e. you) ( μ- assembler—e.g. you) R7  R2 + R5RTL (register transfer language) machine language (machine code) (the instructions that are actually executed) 111_010_101_0010_ Control Words (μ-instructions) (a.k.a. μ-code) add R7, R2, R5Assembly language (e.g. x86, ARM) Weeks 1 to 5 (H&P Ch. 2) Weeks 6 to 10 (H&P Ch. 4) (exo)(endo)

CECS 341 – Computer Design Primer.5(c) R. W. Allison  Numbering and Coding Systems l Decimal and binary number systems l Converting from decimal to binary l Converting from binary to decimal l Hexadecimal system  Conversion to/from binary  Conversion to/from decimal  Adding/subtracting binary and hex numbers  Two’s complement representation  Powers of 2 “versus” Powers of 10 l 2 8 = 256 l 2 10 = 1Kilo (1024) 10 3 = 1,000 l 2 20 = 1Mega ( = 1,048,576 ) 10 6 = 1,000,000 l 2 30 = 1Giga ( = 1,073,741,824) 10 9 = 1,000,000,000 l 2 40 = 1Tera ( = 1,099,511,627,776) = 1,000,000,000,000

CECS 341 – Computer Design Primer.6(c) R. W. Allison  The basic data types used by processors, expressed as binary values, are signed and unsigned integers that are “n-bits” wide (e.g. 8-bit, 16-bit, 32-bit, 64-bit).  Range of “n-bit” unsigned integer (all are positive) 0 (min) to 2 n – 1 (max) l Examples:8-bit unsigned 0 to 2 8 – 1  0 to bit unsigned 0 to 2 16 – 1  0 to 65,535  Range of “n-bit” signed integer (half are negative, half are positive) -2 n-1 (min) to 2 n-1 – 1 (max) l Examples:8-bit signed -2 7 to 2 7 – 1  -128 to bit signed to 2 15 – 1  to  Signed integers are represented in two’s complement format