Architectural Considerations A Review of Some Architectural Concepts.

Slides:



Advertisements
Similar presentations
+ CS 325: CS Hardware and Software Organization and Architecture Internal Memory.
Advertisements

Computer Organization and Architecture
Microprocessor and Microcontroller
Processor System Architecture
What is memory? Memory is used to store information within a computer, either programs or data. Programs and data cannot be used directly from a disk or.
Computer Organization. This module surveys the physical resources of a computer system. –Basic components CPUMemoryBus I/O devices –CPU structure Registers.
Room: E-3-31 Phone: Dr Masri Ayob TK 2123 COMPUTER ORGANISATION & ARCHITECTURE Lecture 5: CPU and Memory.
Chapter 5: Computer Systems Organization Invitation to Computer Science, Java Version, Third Edition.
Overview Memory definitions Random Access Memory (RAM)
©Brooks/Cole, 2003 Chapter 5 Computer Organization.
The CPU - Outline. Components of CPU Englander p
Registers  Flip-flops are available in a variety of configurations. A simple one with two independent D flip-flops with clear and preset signals is illustrated.
Midterm Tuesday October 23 Covers Chapters 3 through 6 - Buses, Clocks, Timing, Edge Triggering, Level Triggering - Cache Memory Systems - Internal Memory.
Memory Devices Wen-Hung Liao, Ph.D..
Data Storage Technology
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.
Microcontroller based system design
5.1 Chaper 4 Central Processing Unit Foundations of Computer Science  Cengage Learning.
Group 5 Alain J. Percial Paula A. Ortiz Francis X. Ruiz.
Khaled A. Al-Utaibi Memory Devices Khaled A. Al-Utaibi
Memory and I/O Interfacing
Higher Computing Computer Systems S. McCrossan 1 Higher Grade Computing Studies 2. Computer Structure Computer Structure The traditional diagram of a computer...
Computer Organization Computer Organization & Assembly Language: Module 2.
CPU MEMORY Powered by DeSiaMore1. CPU Its manage everything held in memory so that the machine keeps track of what is stored, where it is and what type.
Lecture#14. Last Lecture Summary Memory Address, size What memory stores OS, Application programs, Data, Instructions Types of Memory Non Volatile and.
Introduction to Computing: Lecture 4
1 Computer System Overview Chapter 1. 2 n An Operating System makes the computing power available to users by controlling the hardware n Let us review.
CS 1308 Computer Literacy and the Internet Computer Systems Organization.
CHAPTER 3 TOP LEVEL VIEW OF COMPUTER FUNCTION AND INTERCONNECTION
Chapter 5: Computer Systems Organization Invitation to Computer Science, Java Version, Third Edition.
Basic Architecture Lecture 15. In general, if the number of bits is n, then the number of different combinations of 0s and 1s that can be made is 2 n.
Components of a Computer Prepared by: Mrs. McCallum-Rodney.
Structure of a computer system
Module 8 Part B Adapted By and Prepared James Tan © 2001.
Computer Architecture And Organization UNIT-II Structured Organization.
SKILL AREA: 1.2 MAIN ELEMENTS OF A PERSONAL COMPUTER.
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
Electronic Analog Computer Dr. Amin Danial Asham by.
CS 1308 Computer Literacy and the Internet. Objectives In this chapter, you will learn about:  The components of a computer system  Putting all the.
Stored Program A stored-program digital computer is one that keeps its programmed instructions, as well as its data, in read-write,
Processor Structure and Function Chapter8:. CPU Structure  CPU must:  Fetch instructions –Read instruction from memory  Interpret instructions –Instruction.
Overview von Neumann Architecture Computer component Computer function
Computer operation is of how the different parts of a computer system work together to perform a task.
A memory is just like a human brain. It is used to store data and instructions. Computer memory is the storage space in computer where data is to be processed.
Computer Architecture Lecture 4 by Engineer A. Lecturer Aymen Hasan AlAwady 17/11/2013 University of Kufa - Informatics Center for Research and Rehabilitation.
بسم الله الرحمن الرحيم MEMORY AND I/O.
Structure and Role of a Processor
1 Basic Processor Architecture. 2 Building Blocks of Processor Systems CPU.
8085 FAQ R.RAJKUMAR DEPT OF CSE SRM UNIVERSITY. FAQ What is a Microprocessor? - Microprocessor is a program-controlled device, which fetches the instructions.
Main Memory Main memory – –a collection of storage locations, –each with a unique identifier called the address. Word- –Data are transferred to and from.
CH (5) Computer Organization
1 Chapter 1 Basic Structures Of Computers. Computer : Introduction A computer is an electronic machine,devised for performing calculations and controlling.
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
William Stallings Computer Organization and Architecture 8th Edition
Internal Memory.
Module IV Memory Organization.
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.
COMPUTER ORGANISATION AND ARCHITECTURE
An Introduction to Microprocessor Architecture using intel 8085 as a classic processor
Introduction to Microprocessors and Microcontrollers
Module IV Memory Organization.
William Stallings Computer Organization and Architecture 7th Edition
Chapter 5: Computer Systems Organization
Chapter 5 Computer Organization
Presentation transcript:

Architectural Considerations A Review of Some Architectural Concepts

Organization of the Computing System Processor Input/ Output Memory System Interconnection The Computing System – Top Level Structure

Organization of the Computing System Processor –Controls the operation of the computing system and performs its data processing functions. Memory Sub-System –Stores data and programs. Input/Output Sub-System –Moves information between the computing system and its external environment. System Interconnection –Some mechanism that provides for communication among the processor, the memory and the I/O sub- systems.

The Processor Control Unit Registers Arithmetic and Logic Unit Internal Interconnection The Processor

Control Unit –Controls the operation of the processor. Arithmetic and Logic Unit (ALU) –Performs the system’s data processing functions Registers –Internal storage for the processor Internal Interconnection –A mechanism that provides communication among the control unit, ALU, and registers.

The Registers A number of registers exit within the processor and are intended for the temporary storage of information needed frequently and urgently. Can be classified into: –General Purpose Registers. Can be used as the programmer requires. –Special Purpose Registers. Can only be used for specific functions. –Stack Pointer. –Accumulator. –Pointers.

The Operation of the Processor Processors mainly operate based on a 3- state cycle: –Fetch. Bring the next instruction from memory into the processor. –Decode. Determine what is required. –Execute. Do it.

Details of the 3-State Cycle A special register in the processor – known as the program counter (PC) – always holds the address of the next instruction for execution. During the fetch cycle, the contents of the PC are copied to another special register – Memory Address Register (MAR) – which is connected to the address bus output of the processor. When the instruction is ready, it is read – in the form of a group of bits known as an opcode – using the processor’s data bus into yet another special register – the Instruction Register (IR). The contents of the IR are decoded to tell the processor what operation to perform and what the operands for the operation are. The processor uses its internal register and the ALU to perform the required operation.

The ALU The ALU is made up of several functional blocks that perform different arithmetic and logical operations on the operands. The ALU operations may generate certain conditions that are saved in the flags register. –Some typical flags are: sign, carry, zero and overflow. Overflow occurs when an arithmetic operation on signed numbers produces a wrong result because the result has more bits than can be held by the registers. The flags register together with the AC are collectively known as the Program Status Word – PSW.

Memory Sub-System Memory in a computing system is used for the storage of programs and data. –Could be temporary or permanent. How permanent is permanent? Memory is measured by two numbers: –The address space. How many different locations there are. –The access width. Maximum number of bits that can be accessed at once. –Both of these values may have different meanings depending on whether one is looking from the point of view of the processor or the memory.

Memory Sub-System Data and programs cannot co-exist. –Most computing systems treat memory as one continuous address space. It is up to the programmer to keep the program(s) and data separate. –However, some systems have physically separate program and data storage with separate address spaces.

Memory Many different types that vary in –Access speed. –Volatility. –Erasability. –Cost As a rule of thumb, the more useful the memory technology is, the more expensive it would be. Types: –RAM – Random Access Memory Dynamic – DRAM Static – SRAM –ROM – Read Only Memory Erasable – EPROM Electrically Erasable – EEPROM

Memory – RAM The proper name is Read/Write Memory. –But no one will understand what you are talking about. Allows both read and write operations. –Both operations are performed electrically. Volatile. –Used for temporary storage only. –If the power is disconnected, the contents become invalid. –Can be made non-volatile by using a battery for backup power.

Memory – RAM – DRAM Uses only one transistor per bit. –Data is stored as charge in capacitors. Charge on a capacitor decays naturally. –Therefore, DRAM needs refreshing even when powered to maintain the data. Refreshing is done by reading and re-writing each word every few milliseconds.

Memory – RAM – SRAM Consists of internal flip flop like structures that store the binary information. –No charges to leak. No refreshing is needed. –More complex construction. Larger cell, Less dense. –More expensive. –Faster.

Memory – ROM Read but cannot write. Non volatile. Manufactured with the data wired into the chip. –No room for mistakes. Not very effective for end-users.

Memory – EPROM Uses MOS transistors with insulating material that changes behavior when exposed to ultraviolet light. –Programmed electrically and erased optically. –Erasing can be repeated a relatively large but limited number of times (~100,000 times). –Erasing time ~20 minutes. Electrically read and written. –Before writing, ALL cells must be erased by exposure to ultraviolet light. Non volatile. More expensive than PROM.

Memory – EEPROM Uses the same floating-gate transistors, except that the insulating material is much thinner. –Its operation can be inverted using voltage. Can be written to any time without erasing the previous contents. –Only the bytes addressed are modified. –Write takes a relatively long time (~100  sec/byte). –Can be erased only about 10,000 times. Non volatile. Updatable in place. More expensive and less dense than EPROM.

Memory – The Stack The stack is an area of memory identified by the programmer for temporary storage of information. The stack is a LIFO structure. –Last In First Out. The stack normally grows backwards into memory. –In other words, the programmer defines the bottom of the stack and the stack grows up into reducing address range.

Memory – The Stack Processors usually contain a special register known as the Stack Pointer (SP). –This pointer is used to constantly point to the “top of the stack.” –Information is saved on the stack using a “push” operation. The information is copied to the location pointed to by the SP, then the SP is decremented. –Information is retrieved from the stack using a “pop” operation. The SP is incremented, then the information is copied from the location pointed to by the SP. –There must be a pop for every push.

Memory – Speed The speed of memory is measured by two numbers: –Access Time. How long it takes from the time the address is ready until the data becomes ready. –Cycle Time. How soon after the previous access can the memory be accessed again.

The I/O Sub-System Interface between the processor, memory and one or more peripherals. Can be classified into: –Serial Single wire with the data being transferred sequentially. –Parallel Multiple wires with the data being transferred concurrently. Several possible implementation techniques: –Programmed –Interrupt driven

Programmed I/O Processor has direct control over I/O –Sensing status –Read/write commands –Transferring data CPU waits for I/O module to complete operation Wastes CPU time Two types: –I/O port-based. –Memory-mapped

I/O port-based I/O I/O ports are connections consisting of groups of parallel bits connecting into and out of the computing system. –Physically, the ports are made of either tri-state buffers for input or latches for output. Each port is identified by a unique port number. –The processor uses special instructions to access these ports. –It produces the port number on its address bus output when it is attempting to access the port. –The hardware uses the port number to activate (enable) the proper port.

Memory-mapped I/O Some systems allow “memory-mapped” I/O where the I/O devices are treated like memory locations. –The processor would use memory access instructions to access these devices. –I/O devices and memory locations cannot have the same address. Therefore, we lose memory area when we use memory-mapped I/O.

Interrupt-driven I/O Instead of having the processor waste time constantly checking on the I/O devices, we can have the devices “interrupt” the processor when they need attention. An interrupt is defined as “an event requiring immediate attention.” –Extremely important in real-time environments. When the processor is interrupted, it branches to a special routine known as an “interrupt service routine” (ISR). –The ISR is written to handle the specific event that occurred. –An ISR may interrogate an I/O device to determine the required activity and perform it.

Measuring the Speed of a Processor The proper way to measure the speed of a processor is not by counting Hz. What’s the proper way? –One aspect of the speed of a processor is “throughput”. Which is defined as the number of instructions executed per second. –Another aspect is how well does the processor’s instruction set support the expected usage of the processor. –The match between the processor and its bus and memory can affect the apparent overall speed of the system. –The best method for comparing processor is to compare their performance on standardized applications known as “benchmarks.”