CDA 3100 Fall 2015.

Slides:



Advertisements
Similar presentations
1-1 Welcome to: CSC225 Introduction to Computer Organization Paul Hatalsky.
Advertisements

CS 61C L02 Number Representation (1)Harvey / Wawrzynek Fall 2003 © UCB 8/27/2003  Brian Harvey ( John Wawrzynek  (Warznek) (
Fall 2004 WWW IS112 Prof. Dwyer Intro1: Overview and Syllabus Professor Catherine Dwyer.
Processor Design 5Z032 Henk Corporaal Eindhoven University of Technology 2011.
EET 4250: Microcomputer Architecture Fall 2009 William Acosta URL:
Slide 1 Instructor: Dr. Hong Jiang Teaching Assistant: Mr. Sheng Zhang Department of Computer Science & Engineering University of Nebraska-Lincoln Classroom:
Introduction to Computer Architecture SCHOOL OF ELECTRICAL AND COMPUTER ENGINEERING SUMMER 2015 RAMYAR SAEEDI.
1 CS/COE0447 Computer Organization & Assembly Language Pre-Chapter 2.
Lecture for Week Spring.  Numbers can be represented in many ways. We are familiar with the decimal system since it is most widely used in everyday.
1 Modified from  Modified from 1998 Morgan Kaufmann Publishers Chapter Three: Arithmetic for Computers citation and following credit line is included:
Fall 2015, Aug 17 ELEC / Lecture 1 1 ELEC / Computer Architecture and Design Fall 2015 Introduction Vishwani D. Agrawal.
CSE 111 Representing Numeric Data in a Computer Slides adapted from Dr. Kris Schindler.
CDA 3100 Fall Special Thanks Thanks to Dr. Xiuwen Liu for letting me use his class slides and other materials as a base for this course.
Chapter 7—Objects and Memory The Art and Science of An Introduction to Computer Science ERIC S. ROBERTS Java Objects and Memory C H A P T E R 7 Yea, from.
Lecture 2 Binary Values and Number Systems. The number 943 is an example of a number written in positional notation. The relative positions of the digits.
1 CS232: Computer Architecture II Fall 2011 Intel i7 Quad-core.
Computer Architecture Souad MEDDEB
CDA 3100 Spring Special Thanks Thanks to Dr. Xiuwen Liu for letting me use his class slides and other materials as a base for this course.
CDA 3100 Fall2009. Special Thanks Thanks to Dr. Xiuwen Liu for letting me use his class slides and other materials as a base for this course.
Numbers in Computers.
Spring 2016, Jan 13 ELEC / Lecture 1 1 ELEC / Computer Architecture and Design Spring 2016 Introduction Vishwani D. Agrawal.
Computer Networks CNT5106C
Introduction to Computer Architecture Dr. Mark C. Lewis
The course purpose and structure Teach the computers internals on hardware/software interface level The students upon completion of the course should be.
CDA 3100 Fall Special Thanks Thanks to Dr. Xiuwen Liu for letting me use his class slides and other materials as a base for this course.
1 Chapter 1: Basic Concepts Assembly Language for Intel-Based Computers, 4th edition Kip R. Irvine 9/6/2003.
Lecture 6. Fixed and Floating Point Numbers
Lecturer: Santokh Singh
Computer Network Fundamentals CNT4007C
ECE 3056: Architecture, Concurrency and Energy in Computation
UMBC CMSC 104 – Section 01, Fall 2016
Computer Networks CNT5106C
Data Representation Binary Numbers Binary Addition
Computational Science - Computer Science
Why to use the assembly and why we need this course at all?
Microprocessor Systems Design I
Logistics Always read the Calendar at
Course Information Mark Stanovich Principles of Operating Systems
Bit Operations Horton pp
CDA 3100 Summer 2011.
Binary, Octal and Hex Numbers Copyright Thaddeus Konar
Design by Contract Fall 2016 Version.
Computer Networks CNT5106C
Introduction to IT By: Muhammed s. anwar.
Binary, Octal and Hex Numbers Copyright Thaddeus Konar
CDA 3100 Spring 2009.
Topic 3 Number Representations and Computer Arithmetics
Overview Digital Systems and Computer Systems
CDA 3100 Summer 2013.
Andy Wang Operating Systems COP 4610 / CGS 5765
CDA 3100 Spring 2010.
A primer on number representations in computers
Topic 3 Number Representations and Computer Arithmetics
CS/COE0447 Computer Organization & Assembly Language
D0013E Microcomputer Engineering
Welcome to: CSC225 Introduction to Computer Organization
Office: ENGR 530 Phone: Emai:
Lecture 2: Number Systems
D0013E Microcomputer Engineering
CDA 3100 Fall 2012.
Computer Networks CNT5106C
Review In last lecture, done with unsigned and signed number representation. Introduced how to represent real numbers in float format.
Lecture 22: Number Systems
Working with the Compute Block
EECE.2160 ECE Application Programming
Lecture 1 Class Overview
ELEC / Computer Architecture and Design Fall 2014 Introduction
Bit Operations Horton pp
Dr. Clincy Professor of CS
Presentation transcript:

CDA 3100 Fall 2015

Special Thanks Thanks to Dr. Xiuwen Liu for letting me use his class slides and other materials as a base for this course

Course Information

About Me My name is Zhenghao Zhang 11/19/2018 About Me My name is Zhenghao Zhang Why I am teaching this course: I worked for two years as an embedded system engineer, writing codes for embedded controllers. 11/19/2018 CDA3100 CDA3100

11/19/2018 Class Communication This class will use class web site to post news, changes, and updates. So please check the class website regularly Please also make sure that you check your emails on the account on your University record Blackboard will be used for posting the grades 11/19/2018 CDA3100 CDA3100

Required Textbook The required textbook for this class is 11/19/2018 Required Textbook The required textbook for this class is “Computer Organization and Design” The hardware/software interface By David A. Patterson and John L. Hennessy Fifth Edition 11/19/2018 CDA3100 CDA3100

Lecture Notes and Textbook 11/19/2018 Lecture Notes and Textbook All the materials that you will be tested on will be covered in the lectures Even though you may need to read the textbook for review and further detail explanations The lectures will be based on the textbook and handouts distributed in class 11/19/2018 CDA3100 CDA3100

Motivations

What you will learn How does the software instruct the hardware to perform the needed functions What is going on in the processor How a simple processor is designed

Why This Class Important? 11/19/2018 Why This Class Important? If you want to create better computers It introduces necessary concepts, components, and principles for a computer scientist By understanding the existing systems, you may create better ones If you want to build software with better performance If you want to have a good choice of jobs If you want to be a real computer scientist 11/19/2018 CDA3100 CDA3100

Required Background

Required Background Based on years of teaching this course, I find that you will suffer if you do not have the required C/C++ programming background. We will need assembly coding, which is more advanced than C/C++. If you do not have a clear understanding at this moment of array and loop , it is recommended that you take this course at a later time, after getting more experience with C/C++ programming.

Array – What Happens? #include <stdio.h> int main (void) { int A[5] = {16, 2, 77, 40, 12071}; A[A[1]] += 1; return 0; } A[1] = 2, so A[2] <- 78.

Loop – What Happens? #include <stdio.h> int main () { int A[5] = {16, 20, 77, 40, 12071}; int result = 0; int i = 0; while (result < A[i]) { result += A[i]; i++; } return 0; result = 113, i=3

Getting Started!

Decimal Numbering System 11/19/2018 Decimal Numbering System We humans naturally use a particular numbering system 11/19/2018 CDA3100 CDA3100

Decimal Numbering System 11/19/2018 Decimal Numbering System For any nonnegative integer , its value is given by Here d0 is the least significant digit and dn is the most significant digit 11/19/2018 CDA3100 CDA3100

General Numbering System – Base X 11/19/2018 General Numbering System – Base X Besides 10, we can use other bases as well In base X, Then, the base X representation of this number is defined as dndn-1…d2d1d0. The same number can have many representations on many bases. For 23 based 10, it is 23ten 10111two 17sixteen, often written as 0x17. 11/19/2018 CDA3100 CDA3100

Commonly Used Bases Which one is natural to computers? Why? Base 11/19/2018 Commonly Used Bases Base Common Name Representation Digits 10 Decimal 5023ten or 5023 0-9 2 Binary 1001110011111two 0-1 8 Octal 11637eight 0-7 16 Hexadecimal 139Fhex or 0x139F 0-9, A-F Note that other bases are used as well including 12 and 60 Which one is natural to computers? Why? 11/19/2018 CDA3100 CDA3100

Meaning of a Number Representation 11/19/2018 Meaning of a Number Representation When we specify a number, we need also to specify the base For example, 10 presents a different quantity in a different base  There are 10 kinds of mathematicians. Those who can think binarily and those who can't... http://www.math.ualberta.ca/~runde/jokes.html 11/19/2018 CDA3100 CDA3100

11/19/2018 CDA3100

Question How many different numbers that can be represented by 4 bits?

Question How many different numbers that can be represented by 4 bits? Always 16 (24), because there are this number of different combinations with 4 bits, regardless of the type of the number these 4 bits are representing. Obviously, this also applies to other number of bits. With n bits, we can represent 2n different numbers. If the number is unsigned integer, it is from 0 to 2n-1.