Digital Computers and Information Chapter 1 Mano and Kime.

Slides:



Advertisements
Similar presentations
Computer Organization and Architecture
Advertisements

Introduction to Computer Engineering by Richard E. Haskell BCD Arithmetic Module M16.5 Section 10.4.
ECE 301 – Digital Electronics Memory (Lecture #21)
Chapter 10. Memory, CPLDs, and FPGAs
Parity. 2 Datasheets TTL:  CMOS: 
Memory and Programmable Logic
Introduction to Microprocessors Number Systems and Conversions No /6/00 Chapter 1: Introduction to 68HC11 The 68HC11 Microcontroller.
Computer Organization and Architecture
Memory ROM, PROM, EEPROM Mano and Kime Section 6-6.
VIT UNIVERSITY1 ECE 103 DIGITAL LOGIC DESIGN CHAPTER I NUMBER SYSTEMS AND CODES Reference: M. Morris Mano & Michael D. Ciletti, "Digital Design", Fourth.
Digital Computers and Information Chapter 1 Mano and Kime.
Number System Conversions Lecture L2.2 Section 2.3.
MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 1 Overflow Signed binary is in fixed range -2 n-1  2 n-1 If the answer for addition/subtraction more than the.
Digital Computers and Information
RAM (random access memory)
Intro to Cache Memory By david hsu. Examples of memory Paper and writing, books Neon signs Cassettes and other magnetic tape memory Abacus Art material.
Chapter 1 Digital Computers and Information. CSC 480 – Winter 2002 Digital Computer Basics Digital values represented as voltage values, e.g. Logic 1.
Memory and Programmable Logic
COMPUTER NUMBER SYSTEMS & DIGITAL DEVICES By: Sohaib Rehman.
Random-Access Memory (RAM)
Memory and Programmable Logic Dr. Ashraf Armoush © 2010 Dr. Ashraf Armoush.
IT253: Computer Organization
EE2174: Digital Logic and Lab Professor Shiyan Hu Department of Electrical and Computer Engineering Michigan Technological University CHAPTER 2 Number.
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION.
Logic Design Dr. Yosry A. Azzam. Binary systems Chapter 1.
Number Systems What is the Standard Base we
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION
Memory Technology and Interfacing. Stored Program Model Memory Output Input CPU Stored-program computer model.
Digital Electronics Chapter 7 Memory and Programmable Logic.
Memory and Programmable Logic Memory device: Device to which binary information is transferred for storage, and from which information is available for.
HARDWARE ARCHITECTURE
Chapter 8 Memory Interface
Internal Memory.
Digital Design: Principles and Practices
Number Base Conversions
Positional Number Systems Decimal, Binary, Octal and Hexadecimal Numbers Wakerly Section
Digital Circuits Text Book –M. M. Mano, "Digital Design," 3rd Ed., Prentice Hall Inc., Reference –class notes Grade –quizzes:15% –mid-term:27.5%
Primary Storage Primary storage is the storage that is directly available to the CPU. It is also known as: Main Memory Main Memory Direct Access Storage.
Computer Organization. The digital computer is a digital system that performs various computational tasks Digital computer use binary number system which.
Digital Fundamentals Tenth Edition Floyd Chapter 2 © 2008 Pearson Education.
Number Representation Lecture Topics How are numeric data items actually stored in computer memory? How much space (memory locations) is.
ECE/CS 352 Digital System Fundamentals© T. Kaminski & C. Kime 1 ECE/CS 352 Digital Systems Fundamentals Spring 2001 Chapter 6 – Part 2 Tom Kaminski & Charles.
Microprocessors CSE 341 Lecture Md. Omar Faruqe UB 1228
Digital Circuits Introduction Memory information storage a collection of cells store binary information RAM – Random-Access Memory read operation.
Overview 1-1 Information Representation
ECE 2110: Introduction to Digital Systems Number Systems: conversions.
The Hexadecimal System is base 16. It is a shorthand method for representing the 8-bit bytes that are stored in the computer system. This system was chosen.
Binary numbers. Primary memory Memory = where programs and data are stored – Unit = bit “BIT” is a contraction for what two words? Either a 1 or a 0 (because.
Chapter 32 Binary Number System. Objectives After completing this chapter, you will be able to: –Describe the binary number system –Identify the place.
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.
ECE 2110: Introduction to Digital Systems Number Systems: conversions.
1 Digital Logic Design (41-135) Chapter 5 Number Representation & Arithmetic Circuits Younglok Kim Dept. of Electrical Engineering Sogang University Spring.
Chapter 5 - Internal Memory 5.1 Semiconductor Main Memory 5.2 Error Correction 5.3 Advanced DRAM Organization.
Memory and Programmable Logic
Positional Number Systems Decimal, Binary, Octal and Hexadecimal Numbers Wakerly Section
Octal to Decimal Decimal Octal Binary Hexadecimal.
Integer Real Numbers Character Boolean Memory Address CPU Data Types
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION
Internal Memory.
CHAPTER 1 : INTRODUCTION
Introduction to Chapter 2
CSE 102 Introduction to Computer Engineering
SYEN 3330 Digital Systems Chapter 1 SYEN 3330 Digital Systems.
CNET 315 Microprocessors & Assembly Language
William Stallings Computer Organization and Architecture 7th Edition
BIC 10503: COMPUTER ARCHITECTURE
Computer Organization
Semiconductor memories are classified in different ways. A distinction is made between read-only (ROM) and read-write (RWM) memories. The contents RWMs.
Presentation transcript:

Digital Computers and Information Chapter 1 Mano and Kime

Digital Computers and Information Digital Computers Number Systems Arithmetic Operations Decimal Codes Error Detection and Correction

Block Diagram of Computer

Memory ROMs and PROMs EPROMs, EEPROMs and Flash Memory Static RAMs and Dynamic RAMs

ROMs and PROMs ROM –Read-Only Memory PROM –Programmable Read-Only Memory

EPROMs, EEPROMs and Flash Memory EPROM –Erasable Programmable Read-Only Memory –Erase with ultraviolet light EEPROM –Electrically-Erasable Programmable Read-Only Memory Flash Memory –Electrically-Erasable in bulk

RAMs RAM –Random-Access Memory –Read-Write Memory Static RAM –Needs 4 transistors per bit to make a latch –Data lost when power is turned off Dynamic RAM –One transistor per bit –Data stored as charge on a capacitor –Data must be continually refreshed

W8X Microcontroller Control Unit Datapath

The W8Z Microprocessor

Digital Computer and Information Digital Computers Number Systems Arithmetic Operations Decimal Codes Error Detection and Correction

Powers of 2

Numbers with Different Bases

Number Systems N =...P 3 P 2 P 1 P 0. P -1 P -2 P =... + P 3 b 3 + P 2 b 2 + P 1 b 1 + P 0 b 0 + P -1 b -1 + P -2 b -2 + P -3 b = 3 x x x x x = =

Number Systems N =...P 3 P 2 P 1 P 0. P -1 P -2 P =... + P 3 b 3 + P 2 b 2 + P 1 b 1 + P 0 b 0 + P -1 b -1 + P -2 b -2 + P -3 b = 1 x x x x x x 2 -2 = /2 + 1/4 = Binary

Number Systems N =...P 3 P 2 P 1 P 0. P -1 P -2 P =... + P 3 b 3 + P 2 b 2 + P 1 b 1 + P 0 b 0 + P -1 b -1 + P -2 b -2 + P -3 b AB.6 16 = 1 x A x B x x = 1 x x x 1 + 6/16 = = Hex

Number Systems N =...P 3 P 2 P 1 P 0. P -1 P -2 P =... + P 3 b 3 + P 2 b 2 + P 1 b 1 + P 0 b 0 + P -1 b -1 + P -2 b -2 + P -3 b = 1 x x x x x 8 -2 = 1 x x x 1 + 2/8 + 5/64 = = Octal

Examples Convert the following binary numbers to decimal:

Digital Computer and Information Digital Computers Number Systems Arithmetic Operations Decimal Codes Error Detection and Correction

Recall Full Adder Truth Table C i A i B i S i C i A B C Final carry = 0

Binary Addition E Dec Hex Binary

Number System Conversions Hex, Binary, and Octal to Decimal Binary Hex Binary Octal Hex Octal Decimal to Hex, Octal, and Binary

Hex to Decimal 87C987C9 x x 16 2, ,172 x 16 34, ,761

Binary Hex A8. F 5 C

Binary Octal

Hex Octal Go through Binary A8. F 5 C

Convert Decimal to any Base Integer Part: Divide by the base, keep track of the remainder, and read up , ,172rem rem 12 = C 16 8 rem 7 0 rem 8 Read up 34, = 87C9 16

Convert Decimal to any Base Fractional Part: Multiply by the base, keep track of the integer part, and read down x 16 = 12.5 int = 12 = C 0.5 x 16 = 8.0 int = 8 Read down = 0.C8 16

Convert Decimal to any Base Fractional Part: Multiply by the base, keep track of the integer part, and read down. 0.1 x 2 = 0.2 int = x 2 = 0.4 int = x 2 = 0.8 int = x 2 = 1.6 int = x 2 = 1.2 int = x 2 = 0.4 int = x 2 = 0.8 int = 0 Read down =

Examples Convert the following numbers from the given base to the other three bases listed in the table: DecimalBinaryOctalHex ??? ? ?? ??326.5? ???F3C7.A

Binary Coded Decimal Code decimal numbers using the binary digits, That is, Can NOT use the hex digits A - F. For example, the DECIMAL number 3582 would be coded in BCD as While this looks like the HEX number 3582H in BCD we interpret it as the DECIMAL number 3582.

BCD Addition Binary 35H H CH Decimal (BCD) 35H H H B0 35 MOV AL,35H ;AL = 35H ADD AL,47H ;AL = AL+47H DAA ;Decimal adjust

Digital Computer and Information Digital Computers Number Systems Arithmetic Operations Decimal Codes Error Detection and Correction

Use of Parity Bit - Extra bit included to make the total number of 1’s either even or odd. Refer to page : 22 for an example. * If a parity error is detected at the receiving end, it can request for a retransmission.

More topics… Fixed and Floating point numbers – Refer to the ppt presentation on the course website.