Computer Organization

Slides:



Advertisements
Similar presentations
التصميم المنطقي Second Course
Advertisements

CPT 310 Logic and Computer Design Instructor: David LublinerPhone Engineering Technology Dept.Cell
Binary Systems1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
Digital Electronics Course Introduction, Number Systems, Conversion between Bases, and Basic Binary Arithmetic (Lecture #1)
Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates Invitation to Computer Science, Java Version, Third Edition.
Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates Invitation to Computer Science, C++ Version, Third Edition.
CSCE 211: Digital Logic Design Chin-Tser Huang University of South Carolina.
Combinational Logic1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
Lecture 2. How does the computer work? Prof. Sin-Min Lee Department of Computer Science.
1 Number Systems. 2 Numbers Each number system is associated with a base or radix – The decimal number system is said to be of base or radix 10 A number.
CPS-304 DIGITAL LOGIC & DESIGN Instructor : Ms. Saba Iqbal.
CS 105 Digital Logic Design
Introduction to Digital Logic Design
Dept. of Computer Science Engineering Islamic Azad University of Mashhad 1 Computer System Architecture Dept. of Computer Science Engineering Islamic Azad.
ReVieW Combinational & Sequential Logic Circuit EKT 221 / 4 DIGITAL ELECTRONICS II.
CS231 Fundamentals1 Fundamentals What kind of data do computers work with? – Deep down inside, it’s all 1s and 0s What can you do with 1s and 0s? – Boolean.
Computer Organization By Dr. M. Khamis Mrs. Dua’a Al Sinari.
Computers Organization & Assembly Language
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION.
1.Overview of Course Objective 2.Details of course website, BLOG 3.Details of Syllabus 4.Recommended Books 5.Details of Lab Sessions 6.Introductory concepts.
مدار منطقي مظفر بگ محمدي Course Structure & Grading Homework: 25% Midterm: 30% Final:50% There is 5% extra! ( =105!) Textbook:
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION
CE1111 :Digital Logic Design lecture 01 Introduction Dr. Atef Ali Ibrahim.
Number systems, Operations, and Codes
Lecture 2. How does the computer work? Prof. Sin-Min Lee Department of Computer Science.
1 Dr. Mohamed Abdur Rahman Office hours Sunday: 10:00- 12:00 & Tuesday: 3:00 - 3:50 Course website: Has been created
CSCE 211: Digital Logic Design Chin-Tser Huang University of South Carolina.
June 10, 2002© Howard Huang1 Number systems To get started, we’ll discuss one of the fundamental concepts underlying digital computer design:
Combinational Circuits
CSC 331: DIGITAL LOGIC DESIGN COURSE LECTURER: E. Y. BAAGYERE. CONTACT: LECTURE TIME: 15:40 – 17:45 hrs. VENUE: SP-LAB.
Introduction to Computer Architecture Dr. Ahmed El-Bialy Dr. Sahar Fawzy Dr. Sahar Fawzy
CS151 Introduction to Digital Design Chapter 1: Digital Systems and Information Lecture 2 1Created by: Ms.Amany AlSaleh.
Logic Design (CE1111 ) Lecture 4 (Chapter 4) Combinational Logic Prepared by Dr. Lamiaa Elshenawy 1.
ECE 2110: Introduction to Digital Systems Number Systems: conversions.
Digital logic COMP214  Lecture 2 Dr. Sarah M.Eljack Chapter 1 1.
Dr. Nermin Hamza 1. Materials Book: Digital Design 4 th M. Morris Mano and Michael D. Ciletti 2.
Prepared By: Norakmar Binti Mohd Nadzari CHAPTER 2 ARITHMETIC AND LOGIC UNIT.
CS231: Computer Architecture I Laxmikant Kale Fall 2002.
Unit 1 Introduction Number Systems and Conversion.
Chapter 3 Data Representation
Computer Architecture and Number Systems
Invitation to Computer Science, C++ Version, Fourth Edition
Chap 3. Combinational Logic Design
Basic Computer Organization and Design
Digital Logic and Computer Organization
DIGITAL LOGIC CIRCUITS
What is a byte? What is it? How would you use it?
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION
Number Systems.
CSCE 211: Digital Logic Design
SICS 154 DIGITAL COMPUTER FUNDAMENTAL
Digital Components and Combinational Circuits
Fundamentals & Ethics of Information Systems IS 201
University of Gujrat Department of Computer Science
Invitation to Computer Science, Java Version, Third Edition
Computer Architecture and Organization: Introductory lecture
CSCE 211: Digital Logic Design
Text Book Computer Organization and Architecture: Designing for Performance, 7th Ed., 2006, William Stallings, Prentice-Hall International, Inc.
CSCE 211: Digital Logic Design
Numbering System TODAY AND TOMORROW 11th Edition
CSCE 211: Digital Logic Design
CSCE 211: Digital Logic Design
Digital Systems and Binary Numbers
Chapter 2: Number Systems
Number Systems Rayat Shikshan Sanstha’s
Number Systems Rayat Shikshan Sanstha’s
Digital Circuits and Logic
Arithmetic Circuits.
Digital Electronics and Logic Circuit
Unit IV Adders Subtractors Flip Flops Counters Multiplexes and De multiplexes. Integrated circuits-Op. amp – Characteristics Inverting amplifier - Non-inverting.
Presentation transcript:

Computer Organization Introduction- Digital Systems and Binary Systems week1

Agenda Course books Course outline Digital Systems : Definition, features Examples MAIN USE OF DIGITAL SYSTEMS Digital via Analog DIGITAL SYSTEMS - TWO CLASSES Number Systems: Decimal weight Binary representation Conversion binary to decimal and decimal to binary Binary to hexadecimal conversion Decimal conversion to Hexadecimal Octal conversion to other systems

Course books: Digital Design, M. Morris Mano, Prentice-Hall. Computer Organization and Architecture, 7th Edition, William Stalling, Prentice-Hall.

Course contents: Number system:(Different number systems, conversion and arithmetic operations) Logic gates, Boolean algebra and arithmetic logic circuits:(basic logic gates, laws of Boolean algebra, deriving logical expression, simplifying logic expressions, half and Full adders, binary coded decimal adder, subtractor) Logic devices:(Comparator, Decoder, Encoder, multiplexer) Flip Flops and Counter:(S-R, J-K and D F/F’s in addition to counter design)

chapter 3: Buses and Computer Architecture (Processor prototype design, program simulation, computer component interconnection and interrupt) Chapter 4 : Cache memory (Introduction, mapping and cache design and managements) chapter 9: Computer Arithmetic Chapter 10: Instruction Sets: Characteristics and Functions Chapter 11: Instruction Sets: Addressing Modes and Format Chapter 7: Input/Output

Digital Systems Computers work with just 1s and 0s. Groups of bits can be made to represent discrete symbols which are then used to develop digital system using different techniques. Digital system is a system that manipulates discrete elements of information represented internally in binary form/code(1s and 0s). Digital computers are powerful (why?) it can perform not only arithmetic computations but also logical operations and it can be programmed to make decisions based on internal and external conditions.

Digital Systems Reliability: error-correcting codes Cost decrease: Same hardware can be re- programmed to be used in another application. Number of transistors that can be put on a piece of silicon increases to produce complex functions, the cost per unit decreases and the speed is extremely high Example: DVD where audio, video and other data can be recorded without any loss of data.

MAIN USE OF DIGITAL SYSTEMS: INFORMATION PROCESSING (text, audio, visual, video) TRANSMISSION (communication) STORAGE

Digital via Analog Digital Analog Inputs and outputs finite number of discrete values from a continuous (infinite) set Example Digital vs. analog scale for measuring weights

DIGITAL SYSTEMS - TWO CLASSES: COMBINATIONAL SYSTEMS z(t) = F(x(t)) SEQUENTIAL z(t) = F(x(0;t)) Memory No memory Has memory Output Does not depend on previous inputs x(0;t): input sequence from time 0 to time t z(t) depends also on previous inputs(memory) Example from real life A system with three inputs, A, B, and C, and one output Z, such that Z = 1 if and only if two of the inputs are 1 A traffic controller on two streets: the light is green on each street for a fixed period of time, then goes to yellow for another fixed period and finally to red. The only input to this system is the clock and there are six outputs, one for each color

Number system: 1. Decimal Numbers consist of a bunch of digits, each with a weight These weights are all powers of the base, which is 10. We can rewrite this: To find the decimal value of a number, multiply each digit by its weight and sum the products. 1 6 2 . 3 7 5 Digits 100 10 1/10 1/100 1/1000 weight 1 6 2 . 3 7 5 Digits 102 101 100 10-1 10-2 10-3 weight (1 x 102) + (6 x 101) + (2 x 100) + (3 x 10-1) + (7 x 10-2) + (5 x 10-3) = 162.375

2. Binary: Binary representation:

2.1 Convert from binary to decimal: Example 1: 10011101 to decimal ? multiply each digit by its weight and sum the products. Digital design book page 21 1 0 0 1 1 1 0 1 1*27 + 0*26 + 0*25 + 1*24 + 1*23 + 1*22 + 0*21 + 1*20 1* 128 + 0*64 + 0*32 + 1*16 + 1*8 + 1*4 + 0* 2 + 1* 1 128 + 16 + 8 + 4 +1 157

Binary : Example 2 :Convert the binary 1101.01 to decimal. 1 1 0 1 . 0 1 Binary digits, or bits 23 22 21 20 2-1 2-2 Weights (in base 2) The decimal value is: (1 x 23) + (1 x 22) + (0 x 21) + (1 x 20) + (0 x 2-1) + (1 x 2-2) = 8 + 4 + 0 + 1 + 0 + 0.25 = 13.25

2.2 Convert from decimal to binary: To convert a decimal integer into binary, keep dividing by 2 until the quotient is 0. Collect the remainders in reverse order. To convert a fraction, keep multiplying the fractional part by 2 until it becomes 0. Collect the integer parts in forward order. Example 1: 162.375: So, 162.37510 = 10100010.0112 162 / 2 = 81 rem 0 81 / 2 = 40 rem 1 40 / 2 = 20 rem 0 20 / 2 = 10 rem 0 10 / 2 = 5 rem 0 5 / 2 = 2 rem 1 2 / 2 = 1 rem 0 1 / 2 = 0 rem 1 0.375 x 2 = 0.750 0.750 x 2 = 1.500 0.500 x 2 = 1.000

Example 2:

3. Hexadecimal(base 16): Numbers in hexadecimal system : 0 1 2 3 4 5 6 7 8 9 A B C D E F Is frequently used to specify things like 32-bit IP addresses and 24-bit colors.

3.1 convert hexadecimal to binary: Replace each hex digit with its equivalent 4-bit binary sequence. 3.2 convert binary to hexadecimal: To convert from binary to hex, make groups of 4 bits, starting from the binary point. Add 0s to the ends of the number if needed. Then, just convert each bit group to its corresponding hex digit. 261.3516 = 2 6 1 . 3 516 = 0010 0110 0001 . 0011 01012 10110100.0010112 = 1011 0100 . 0010 11002 = B 4 . 2 C16 1111 F 1011 B 0111 7 0011 3 1110 E 1010 A 0110 6 0010 2 1101 D 1001 9 0101 5 0001 1 1100 C 1000 8 0100 4 0000 Binary Hex

3.3 convert from hexadecimal to decimal: Example 3: Convert from decimal to hex 764= ?