Introduction to Computing Chapter 0

Slides:



Advertisements
Similar presentations
Principles & Applications
Advertisements

Chapter 5 Internal Memory
Computer Organization and Architecture
Computer Organization and Architecture
+ CS 325: CS Hardware and Software Organization and Architecture Internal Memory.
ECE 301 – Digital Electronics Memory (Lecture #21)
©Brooks/Cole, 2003 Chapter 5 Computer Organization.
The processor and main memory chapter 4, Exploring the Digital Domain The Development and Basic Organization of Computers.
Computer Organization Prepared by:Anh Q. Vu Course:CS-147 Professor:Sin-Min Lee Date:Summer
Chapter 5 Internal Memory
Basic Computer Organization CH-4 Richard Gomez 6/14/01 Computer Science Quote: John Von Neumann If people do not believe that mathematics is simple, it.
Memory. When we receive some instruction or information we retain them in our memory. Similarly a computer stores the instructions for solving a problem,
1 The 8051 Microcontroller and Embedded Systems CHAPTER INTERFACING TO EXTERNAL MEMORY.
8051 INTERFACING TO EXTERNAL MEMORY
Chapter 4 ระบบหน่วยความจำ The Memory System
Memory Hierarchy.
Memory Main memory consists of a number of storage locations, each of which is identified by a unique address The ability of the CPU to identify each location.
Chapter 3 Computer Hard ware
Introduction to Computing: Lecture 4
Random access memory.
3-1-1 Chapter 3 Memory and Memory Interfacing Section 3.01 Semiconductor Memory Fundamentals In the design of all computers, semiconductor memories are.
Chapter 8 Memory Interface
Memory Organization and Interfacing CSE 2312 Maher Al-Khaiyat.
CIM101 : Introduction to computer Lecture 3 Memory.
Computer Architecture And Organization UNIT-II Structured Organization.
SKILL AREA: 1.2 MAIN ELEMENTS OF A PERSONAL COMPUTER.
MEMORY INTERFACE (ROMS, RAMS). Computer Memory Overview.
Microprocessor Fundamentals Week 3 Mount Druitt College of TAFE Dept. Electrical Engineering 2007.
Www. Micro Digital Ed. com BIHE university AVR Microcontroller and Embedded System Using Assembly and C Mazidi, Naimi, and Naimi © 2011 Pearson Higher.
Computer Organization. The digital computer is a digital system that performs various computational tasks Digital computer use binary number system which.
COMPURT ORGANAZTION CHAPTER 5. Computer Organization We can divide the parts that make up a computer into 3 subsystems : 1. Central processing unit (CPU).
Microprocessor Fundamentals Week 3 Mount Druitt College of TAFE Dept. Electrical Engineering 2008.
Computer operation is of how the different parts of a computer system work together to perform a task.
Chapter 2.
Architectural Considerations A Review of Some Architectural Concepts.
STATUS REGISTER  It is a group of flip-flops. But it is not used to store data.  Each bit in the status register is used to indicate a particular condition.
AHMEDABAD INSTITUTE OF TECHNOLOGY
Index What is an Interface Pins of 8085 used in Interfacing Memory – Microprocessor Interface I/O – Microprocessor Interface Basic RAM Cells Stack Memory.
Chapter 2 content Basic organization of computer What is motherboard
COMP2121: Microprocessors and Interfacing
CPU Lesson 2.
Memory and Programmable Logic
Systems Architecture Keywords Fetch Execute Cycle
William Stallings Computer Organization and Architecture 7th Edition
Homework Reading Tokheim, Chapter 12-1 through 12-4.
CPU How computers work Address bus Data bus Control bus A ALU B PC: C
MEMORY.
8253 / 8254 Timer A.k.a. PIT (programmable Interval Timer), used to bring down the frequency to the desired level Three counters inside 8253/8254. Each.
Internal Memory.
Memory Main memory consists of a number of storage locations, each of which is identified by a unique address The ability of the CPU to identify each location.
Memory Main memory consists of a number of storage locations, each of which is identified by a unique address The ability of the CPU to identify each location.
Chapter 7.2 Computer Architecture
Module IV Memory Organization.
introduction to computer
Principles & Applications
Memory Units Memories store data in units from one to eight bits. The most common unit is the byte, which by definition is 8 bits. Computer memories are.
William Stallings Computer Organization and Architecture 7th Edition
Electronics Technology
William Stallings Computer Organization and Architecture 8th Edition
Subject Name: Embedded system Design Subject Code: 10EC74
Module IV Memory Organization.
William Stallings Computer Organization and Architecture 7th Edition
William Stallings Computer Organization and Architecture 8th Edition
Computer Memory BY- Dinesh Lohiya.
TOPIC : Memory Classification
MICROPROCESSOR MEMORY ORGANIZATION
Chapter 5 Computer Organization
William Stallings Computer Organization and Architecture 8th Edition
Presentation transcript:

Introduction to Computing Chapter 0 Sepehr Naimi www.NicerLand.com www.MicroDigitalEd.com

Topics Internal organization of computers The different parts of a computer I/O Memory CPU Connecting the different parts Connecting memory to CPU Connecting I/Os to CPU How computers work

Internal organization of computers CPU Memory I/O Input E.g. Keyboard, Mouse, Sensor Output E.g. LCD, printer, hands of a robot

Memory Everything that can store, retain, and recall information. E.g. hard disk, a piece of paper, etc.

Memory characteristics Capacity The number of bits that a memory can store. E.g. 128 Kbits, 256 Mbits Organization How the locations are organized E.g. a 128 x 4 memory has 128 locations, 4 bits each Access time How long it takes to get data from memory … 4 bits 128 locations 1 2 127

The pictures are copied from http://www.wikipedia.org/ Memory Semiconductors Non-semiconductors The pictures are copied from http://www.wikipedia.org/

Semiconductor memories ROM Mask ROM PROM (Programmable ROM) EPROM (Erasable PROM) EEPROM (Electronic Erasable PROM) Flash EPROM RAM SRAM (Static RAM) DRAM (Dynamic RAM) NV-RAM (Nonvolatile RAM)

Programmed by the IC manufacturer Memory\ROM\Mask ROM Programmed by the IC manufacturer

Memory\ROM\PROM (Programmable ROM) OTP (One-Time Programmable) You can program it only once

Memory\ROM\EPROM (Erasable Programmable ROM) UV-EPROM You can shine ultraviolet (UV) radiation to erase it Erasing takes up to 20 minutes The entire contents of ROM are erased 2764

Memory\ROM\EEPROM (Electrically Erasable Programmable ROM) Erased Electrically Erased instantly Each byte can be erased separately

the entire device is erased at once Memory\ROM\Flash ROM Erased in a Flash the entire device is erased at once

Semiconductor memories ROM Mask ROM PROM (Programmable ROM) EPROM (Erasable PROM) EEPROM (Electronic Erasable PROM) Flash EPROM RAM SRAM (Static RAM) DRAM (Dynamic RAM) NV-RAM (Nonvolatile RAM)

Memory\RAM\SRAM (Static RAM) Made of flip-flops (Transistors) Advantages: Faster No need for refreshing Disadvantages: High power consumption Expensive 2K x 8 SRAM

Memory\RAM\DRAM (Dynamic RAM) Made of capacitors Advantages: Less power consumption Cheaper High capacity Disadvantages: Slower Refresh needed

Memory\RAM\NV-RAM (Nonvolatile RAM) Made of SRAM, Battery, control circuitry Advantages: Very fast Infinite program/erase cycle Non-volatile Disadvantage: Expensive

Internal parts of computers\CPU Tasks: It should execute instructions It should recall the instructions one after another and execute them

Connecting memory to CPU Memory pin out

Connecting memory to CPU Address Data WE Time CS Reading from memory OE Address Data WE Time CS Writing to memory

CPU Connecting I/Os to CPU CPU should have lots of pins! Mouse Network Keyboard Sound Card Graphic Card

Connecting I/Os to CPU using bus Address bus Data bus Write Control bus Read I/O 0 I/O 1 I/O 2 I/O n

Connecting I/Os and Memory to CPU Address bus Data bus Write Control bus Read I/O 0 I/O 1 I/O 2 I/O n

Connecting I/Os and memory to CPU using bus 1 2 3 How could we manage it? CPU Address bus Data bus Write Control bus Read I/O 0 I/O 1 I/O 2 I/O n

Connecting I/Os and Memory to CPU using bus (Peripheral I/O) 1 .. 63 CPU Address bus Data bus Write Control bus Read IO/MEM I/O 0 I/O 1 I/O 2 I/O n

Connecting I/Os and Memory to CPU using bus (Memory Mapped I/O) The logic circuit enables CS when address is between 0 and 15 1 .. 15 How could we make the logic circuit? CPU Logic circuit Address bus Solution 1. Write the address range in binary Data bus Write Control bus Read 2. Separate the fixed part of address 3. Using a NAND, design a logic circuit whose output activates when the fixed address is given to it. a7 a6 a5 a4 a3 a2 a1 a0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 From address 0  To address15  I/O 16 I/O 17 a5 a6 a4 a7 CS I/O 18 I/O n

Another example for address decoder Design an address decoder for address of 300H to 3FFH. Solution 1. Write the address range in binary 2. Separate the fixed part of address 3. Design the logic circuit. a9 a10 a8 a11 CS 0 0 1 1 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 From address 300H  To address 3FFH  a7 a6 a5 a4 a3 a2 a1 a0 a11 a10 a9 a8 a11 a10 a9 a8 0 0 1 1 An easy way of designing

CPU Inside the CPU PC (Program Counter) Instruction decoder ALU (Arithmetic Logic Unit) Registers CPU ALU PC A B C D Instruction decoder registers

CPU How computers work Address bus Data bus Control bus A ALU B PC: C B  A A  [6] AA+B [7]A 1 2 3 4 5 6 7 31h C4h 26h 81h EAh 0h 5h 31 CPU Logic circuit Address bus Data bus Control bus Write Read ALU B A D C registers PC: 1 I/O 16 I/O 17 I/O 18 I/O n Inst. Dec.

CPU How computers work 17 Address bus Data bus Control bus A ALU B PC: B  A A  [6] AA+B [7]A 1 2 3 4 5 6 7 31h C4h 26h 81h EAh 0h 5h CPU 17 Logic circuit Address bus Data bus Control bus Write Read ALU B A D C registers PC: 1 9 I/O 16 I/O 17 I/O 18 I/O n Inst. Dec. 31

CPU How computers work 17 Address bus Data bus Control bus A ALU B PC: C4h 26h 81h EAh 0h 5h A [17] B  A A  [6] AA+B [7]A 1 2 3 4 5 6 7 C4 26 5 CPU 17 6 Logic circuit Address bus Data bus Control bus Write Read 9 9 ALU B A D C registers PC: 2 1 2 3 1 I/O 16 I/O 17 I/O 18 I/O n Inst. Dec.

CPU How computers work Address bus Data bus Control bus ALU B A D C 1 2 3 4 5 6 7 31h C4h 26h 81h EAh 0h 5h A [17] B  A A  [6] AA+B [7]A 81 EA CPU 7 Logic circuit Address bus Eh Data bus Control bus Write Read 5 5 E ALU B A D C registers + E 9 9 PC: 5 4 4 3 3 I/O 16 I/O 17 I/O 18 I/O n Inst. Dec.

How Instruction decoder works Opcode Operand Opcode Operand Instruction Instruction Operation Code Meaning 000 A  x 001 A  [x] 010 A  A – register (x) 011 A  A + x 100 A  A + register (x) 101 A  A – x 110 Register (xH)  Register (xL) 111 [x]  A 0011 0001 1100 0100 0010 0110 1000 0001 1110 1010 0000 0000 0000 0101 1 2 3 4 5 6 7 31h C4h 26h 81h EAh 0h 5h A [17] B  A A  [6] AA+B [7]A

Von Neumann vs. Harvard architecture CPU Data bus Code Memory Data bus Data Memory Address bus Address bus Control bus Control bus Harvard architecture Code Memory Data Memory CPU Data bus Address bus Control bus Von Neumann architecture