Computer System Architecture Module Code: CMC1411 Duration: 10 weeks Assessment Scheme: Continuous Assessment: 50% Examination: 50% Lecturer: Amy Ching.

Slides:



Advertisements
Similar presentations
Week 3. Assembly Language Programming  Difficult when starting assembly programming  Have to work at low level  Use processor instructions >Requires.
Advertisements

Assembly Language for Intel-Based Computers, 4 th Edition Chapter 1: Basic Concepts (c) Pearson Education, All rights reserved. You may modify and.
Data Representation COE 202 Digital Logic Design Dr. Aiman El-Maleh
Representing Numbers: Integers
A digital system is a system that manipulates discrete elements of information represented internally in binary form. Digital computers –general purposes.
Digital Fundamentals Floyd Chapter 2 Tenth Edition
Assembly Language for Intel-Based Computers, 4th Edition
Assembly Language for Intel-Based Computers, 5 th Edition Chapter 1: Basic Concepts (c) Pearson Education, All rights reserved. You may modify.
ECE 331 – Digital System Design
Data Representation in Computers
S. Barua – CPSC 240 CHAPTER 2 BITS, DATA TYPES, & OPERATIONS Topics to be covered are Number systems.
The OSI Model A layered framework for the design of network systems that allows communication across all types of computer systems regardless of their.
Application Layer. Applications A program or group of programs designed for end users. Software can be divided into two general classes: systems software.
Lecturer: Tamanna Haque Nipa
Mantıksal Tasarım – BBM231 M. Önder Efe
Data Representation in Computers. Data Representation in Computers/Session 3 / 2 of 33 Number systems  The additive approach – Number earlier consisted.
Assembly Language for Intel-Based Computers, 5 th Edition Chapter 1: Basic Concepts (c) Pearson Education, All rights reserved. You may modify.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
Programmable Logic Controllers
Computers Organization & Assembly Language
EKT 121 / 4 ELEKTRONIK DIGIT 1 CHAPTER 1 : INTRODUCTION.
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.
Assembly Language for x86 Processors 7th Edition
Logic and Digital System Design - CS 303
#1 Lec # 2 Winter EECC341 - Shaaban Positional Number Systems A number system consists of an order set of symbols (digits) with relations.
1 Digital Technology and Computer Fundamentals Chapter 1 Data Representation and Numbering Systems.
Networks – Network Architecture Network architecture is specification of design principles (including data formats and procedures) for creating a network.
EX_01.1/46 Numeric Systems. EX_01.2/46 Overview Numeric systems – general, Binary numbers, Octal numbers, Hexadecimal system, Data units, ASCII code,
1 Digital Systems and Binary Numbers EE 208 – Logic Design Chapter 1 Sohaib Majzoub.
ECEN2102 Digital Logic Design Lecture 1 Numbers Systems Abdullah Said Alkalbani University of Buraimi.
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION.
Assembly Language for x86 Processors 7 th Edition Chapter 1: Basic Concepts (c) Pearson Education, All rights reserved. You may modify and copy this.
Information Representation. Digital Hardware Systems Digital Systems Digital vs. Analog Waveforms Analog: values vary over a broad range continuously.
Logic Design Dr. Yosry A. Azzam. Binary systems Chapter 1.
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION
Engineering 1040: Mechanisms & Electric Circuits Spring 2014 Number Systems.
Number Systems and Codes. CS2100 Number Systems and Codes 2 NUMBER SYSTEMS & CODES Information Representations Number Systems Base Conversion Negative.
CPU Internal memory I/O interface circuit System bus
1 EENG 2710 Chapter 1 Number Systems and Codes. 2 Chapter 1 Homework 1.1c, 1.2c, 1.3c, 1.4e, 1.5e, 1.6c, 1.7e, 1.8a, 1.9a, 1.10b, 1.13a, 1.19.
George W. Woodruff School of Mechanical Engineering, Georgia Tech ME4447/6405 ME 4447/6405 Microprocessor Control of Manufacturing Systems and Introduction.
Chapter 19 Number Systems. Irvine, Kip R. Assembly Language for Intel-Based Computers, Translating Languages English: Display the sum of A times.
CSNB374: Microprocessor Systems Chapter 1: Introduction to Microprocessor.
Data Representation Conversion 24/04/2017.
AEEE2031 Data Representation and Numbering Systems.
Number Systems by Dr. Amin Danial Asham. References  Programmable Controllers- Theory and Implementation, 2nd Edition, L.A. Bryan and E.A. Bryan.
MECH1500 Chapter 3.
Chapter 1: Binary Systems
Chapter 1 Number Systems Digital Electronics. Topics discussed in last lecture Digital systems Advantages of using digital signals over analog. Disadvantages.
© Prepared By: Razif Razali 1 CHAPTER TWO TCS1023 NUMBERING SYSTEM.
CSC 331: DIGITAL LOGIC DESIGN COURSE LECTURER: E. Y. BAAGYERE. CONTACT: LECTURE TIME: 15:40 – 17:45 hrs. VENUE: SP-LAB.
©2010 Cengage Learning SLIDES FOR CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION Click the mouse to move to the next page. Use the ESC key to exit.
CS151 Introduction to Digital Design Chapter 1: Digital Systems and Information Lecture 2 1Created by: Ms.Amany AlSaleh.
BINARY SYSTEMS ENGR. KASHIF SHAHZAD 1. BINARY NUMBERS 1/2 Internally, information in digital systems is of binary form groups of bits (i.e. binary numbers)
Number Systems. The position of each digit in a weighted number system is assigned a weight based on the base or radix of the system. The radix of decimal.
Digital logic COMP214  Lecture 1 Dr. Sarah M.Eljack Chapter 1 1.
CS2100 Computer Organisation
Unit 1 Introduction Number Systems and Conversion.
Networking Using the OSI Model.
NUMBER SYSTEMS.
Lec 3: Data Representation
Data Representation.
CHAPTER 9 COMPUTER ARITHMETIC - ALU
Number Representation
CHAPTER 1 : INTRODUCTION
Number Systems.
IT 0213: INTRODUCTION TO COMPUTER ARCHITECTURE
University of Gujrat Department of Computer Science
OSI Model The Seven Layers
Presentation transcript:

Computer System Architecture Module Code: CMC1411 Duration: 10 weeks Assessment Scheme: Continuous Assessment: 50% Examination: 50% Lecturer: Amy Ching

Module Aims: To introduce at an elementary level, and from a architectural perspective, the essential components in a computer system.

Reference Books: Shelly, G.B, Cashman, T.J. and Waggoner G.A, Discovering Computers: A Link to the Future, World Wide Web Enhanced, 1 st Ed. Of latest edition, International Thomson Publishing Co., Mano, M. Morris, Computer System Architecture, 3 rd Ed. Or latest edition. Prentice-Hall International, 1993.

Lectures Binary System 2. Boolean Algebra 3. Logic Gates Design 4. Component I & II 5. Central Processing Unit 6. Bus 7. Devices 8. Classification of Software 9. System Software 10. Utility Program

Key content Area 1.Computer Systems Architecture 2. Logic System and Digital Circuit Numbering Systems: Arithmetic and Complement Representations, Boolean Algebra, Introduction to digital circuits 3. Hardware Components of a Computer System Processor Unit, Main Memory, Input/Output Devices, Secondary Storage, Bus, Current processor and device technologies 4.Software Components of a Computer System Classification of Software, System Software, Operating Systems

Introduction of Binary System

Decimal to Binary Conversion Process and Vice Versa When you create a program, numbers typed in your source code will be assumed to be decimal (unless you use specific notations, see Hexadecimal numbers). Your language compiler will then convert them into binary format. At runtime, you program will compute in binary. When numbers are typed or displayed, they are character strings until they are converted into binary by Base Translator or other programs like a spreadsheet program. These conversions are usually carried out by functions like printf, scanf, print, read, input, etc..

More… All the numbers (decimal) that we type into our computer will eventually convert into Binary Numbers Computer programs use Binary Numbers to run calculation Thus there must be a method to convert Decimal Numbers into Binary Numbers

Binary Systems  Only two numerals, i.e. 0 and 1.  All decimals are represent by 0,1,2,3,4,5,6,7,8,9  Binary no. is also referred as ‘base 2’ no.  The largest bit of a binary no. is called the ‘most significant bit (MSB)’, while the smallest the least significant bit (LSB)’

Example: 1523 One can write: 1523 = 1* * *10 + 3*1 More generally, by using powers(1) of the base 10: 1523 = 1* * * *100 In this representation, 1 is the most significant digit of 1523 (because it is multiplied by 1000) and 3 is the less significant one.

Base-r no.  Each digit can have a value from 0 to (r-1)  In a computer system, the following no. systems are usually used. base 2 – binary base 8 – octal base 16 – hexadecimal  Hexadecimal no. ranges from 0 to 9 and then A to F.

Radix conversion Binary to decimal b n b n-1 … b 1 b 0. b -1 b -2 … b -n = b n x 2 n + b n-1 x 2 n-1 + … + b 1 x b 0 x b -1 x … + b -n x 2 -n Exercise: Convert the binary no to decimal. Base-r to decimal b n b n-1 … b 1 b 0. b -1 b -2 … b -n = b n x r n + b n-1 x r n-1 + … + b 1 x r 1 + b 0 x r 0 + b -1 x r -1 + … + b -n x r -n Exercise: Convert the no to decimal.

Number System Name Base (number of symbols per digit) Symbols Binary20,1 Octal80,1,2,3,4,5,6,7 Decimal100,1,2,3,4, 5,6,7,8,9 Hexadecimal160,1,2,3,4, 5,6,7,8,9, A,B,C,D,E,F

Representative of numbers in different formats DecimalBinaryOctalHexadecimal A B C D E F

In the table above 14 = , 16 8 E 16

Decimal to binary By repeated division by 2 What is the binary value of ? Divider Integer Remainder 2 |41 2 |201 2 |100 2 | | |  Answer = (101001) 2

Octal to binary Since each octal digit is equivalent to 3 binary bits, just expand it each digit of the octal no. to 3 binary bits. What is the binary value of ? Ans:

Binary to octal use the reverse process of octal to binary conversion, i.e. condensing each 3 binary bits to one octal digit. What is the octal value of ? Ans: 472 8

Hexadecimal to binary Since each hexadecimal digit is equivalent to 4 binary bits, just expand it each digit of the hexadecimal no. to 4 binary bits. What is the binary value of FF 16 ? Ans:

Binary Arithmetic Addition similar to addition of decimal nos ) Subtraction similar to subtraction of decimal nos )

Complement representation Subtraction can be carried out by addition if the subtractend is coded using 1’s complement and 2’s complement. 1’s Complement just invert every bit e.g. The 1’s complement of is The 1’s complement of is  2’s Complement · 2’s complement of a binary no. = (1’s complement) + 1 e.g. The 2’s complement of is The 2’s complement of is

Binary Signed Representations For signed binary nos, a ‘1’ at the MSB (most significant bit) represents a negative no., while a ‘0’ at the MSB a positive no. There are three representations for the bits following the MSB: 1) Signed-magnitude representation 2) Signed-1’s complement representation 3) Signed-2’s complement representation In 1), the remaining bits represent the magnitude of the negative no. In 2) and 3) the negative no. is represented as either the 1’s or 2’s complement of its positive value.

Binary signed addition Consider an example: A = B = What is the result of binary signed addition of A and B (for the 8-bit binary signed representation ? Ans. A + B= = (sign-bit = ‘1’) The result gives a negative no. which is wrong. This is due to the fact that = +192 > +127, i.e. overflows. This illustrates that if the signs of two arguments are the same but the sign of the sum is different. Overflow or underflow occurs and the sum is wrong.

Introduction of OSI model OSI (Open Systems Interconnection) is a standard description or "reference model" for how messages should be transmitted between any two points in a telecommunication network.network

OSI Developed by representatives from major Telecommunication companies in OSI was officially adopted as an international standard by the International Organization of Standards (ISO).ISO The main idea in OSI is that the process of communication between two end points in a telecommunication network can be divided into layers, with each layer adding its own set of special, related functions.

The use of OSI model Provide a guideline to product designer to design device that requires communication on on the network, which is compatible and able to send message to all other machines.

7 layers OSI divides telecommunication into seven layers. The layers are in two groups. The upper four layers are used whenever a message passes from or to a user. The lower three layers (up to the network layer) are used when any message passes through the host computer.

Layer 7: The application layer... This is the layer at which communication partners are identified, quality of service is identified, user authentication and privacy are considered, and any constraints on data syntax are identified. (This layer is not the application itself, although some applications may perform application layer functions.)

Layer 6: The presentation layer... This is a layer, usually part of an operating system, that converts incoming and outgoing data from one presentation format to another (for example, from a text stream into a popup window with the newly arrived text). Sometimes called the syntax layer.

Layer 5: The session layer... This layer sets up, coordinates, and terminates conversations, exchanges, and dialogs between the applications at each end. It deals with session and connection coordination.

Layer 4: The transport layer... This layer manages the end-to-end control (for example, determining whether all packets have arrived) and error-checking. It ensures complete data transfer.

Layer 3: The network layer... This layer handles the routing of the data (sending it in the right direction to the right destination on outgoing transmissions and receiving incoming transmissions at the packet level). The network layer does routing and forwarding.

Layer 2: The data-link layer... This layer provides synchronization for the physical level and does bit-stuffing for strings of 1's in excess of 5. It furnishes transmission protocol knowledge and management.

Layer 1: The physical layer... This layer conveys the bit stream through the network at the electrical and mechanical level. It provides the hardware means of sending and receiving data on a carrier.