Computer Architecture
|
|
- Richard Morgan
- 7 years ago
- Views:
Transcription
1 Universitatea din Craiova Faculty of Automation, Computers & Electronics Department of Computers & Information Technology Computer Architecture Fundamental Concepts CPU organization and functioning CPU-MM speed transfer balancing techniques I/O devices Cătălina Mancaș Dan Mancaș
2 Previous topics General structure of a computer; Von Neumann Architecture (5-unit Structure); Functioning; Instruction Cycle. 2
3 The fundamental structure Data Flux de flow date Alternative Data Flow Flux de date alternativ CPU = ALU + CU Instructions Flux de instructiuni Flow Control Comenzi sau Line linii de control Status Informatii Line de stare sau linii de stare Unitatea Control de Control Unit (CU) (UC) Date de Input Data intrare si & programe Programs Unitatea Input de Intrare Unit (IU) (UI) Unitatea Arithmetic Logico- Logic Aritmeticã Unit (ALU) Date Unitatea Output de Iesire Unit (OU) (UO) Instructiuni Instructions Date de iesire Output Data sau rezultate & Results DMA Unitatea Memory de Memorie Unit (MU) (UM) DMA 3
4 Today... The general structure of the CPU; CPU-MM transfer speed balancing techniques; Advanced organization of CPU communication: peripheral devices; I/O units; I/O processors. 4
5 General structure of the CPU 5
6 The fundamental structure Data Flux de flow date Alternative Data Flow Flux de date alternativ CPU = ALU + CU Instructions Flux de instructiuni Flow Control Comenzi sau Line linii de control Status Informatii Line de stare sau linii de stare Unitatea Control de Control Unit (CU) (UC) Date de Input Data intrare si & programe Programs Unitatea Input de Intrare Unit (IU) (UI) Unitatea Arithmetic Logico- Logic Aritmeticã Unit (ALU) Date Unitatea Output de Iesire Unit (OU) (UO) Instructiuni Instructions Date de iesire Output Data sau rezultate & Results DMA Unitatea Memory de Memorie Unit (MU) (UM) DMA 6
7 CPU CPU = ALU + UC Central Processing Unit; Processor; Role: to execute sequences of instructions stored in MM; => interpreter of a set of instructions at machine language level. Program execution is carried out as follows: 1. CPU transfers instructions (and operands), from the MM into the registers inside the CPU (a.k.a local memory); 2. CPU executes the instructions in their stored sequence (one after another); 3. When necessary, the CPU transfers results from the CPU registers into the MM. 7
8 CPU MU Communication Data CPU Local Memory Main Memory CPU Cache Memory Main Memory 8
9 CPU Functioning Flowchart 9
10 CPU Registers Instruction Register (IR): UC; stores the instruction transferred from MM. Function Register (RF): UC; stores the OPCODE for further decoding. Address Register (RA): UC; stores the addresses of the operands. Accumulator Register (ACC): ALU; stores one operand; stores the result of the operation. 10
11 CPU Registers Operand Register (Op. Reg.): ALU; temporary stores the operand(s) buffer register. Status Register Flags Register (St. Reg.): stores various characteristics of the result flags (sign, carry, parity, zero etc.). Program Counter (PC): UC; instruction pointer, program counter; stores the address of the next instruction to be executed. 11
12 CPU Must communicate with all the units (MU, CU, I/OU). Input: data, instructions, status signals, interrupts; Output: addresses, data, control signals; => System bus. Component: system bus interface: bus controller; contains drivers, buffers and switchs. 12
13 CPU Communication 1) External: Bus Control Block: system bus interface; contains buffers and communication drivers. 2) Internal: Between CPU units: internal buses. address bus; data bus; control bus: control lines + status lines. 13
14 General Structure of the CPU Magistrala Interna Data de Bus Date Magistrala Address Interna Bus de Adrese Bus Control Unitate Buffer/Driver Unit Magistrala System Bus Sistem ALU ALU CU UC Linii Control de Control Lines General Registre generale Registers R 1 Instruction Address Adresa Instructiune DEC k/2 k R 2 Operand Adresa Operand Address Operand Address PC incr. Bloc Control Secventiator Sequencer de Control er Processing Bloc de Procesare Block R 2 k EA Calcul Computation AE Decodificator OPCODE OPCODE Decoder Decoded Operatie decodificata Operation Status Reg. Register Stare ACC AR RA FR RF Operand Reg. Register Op. Generator Clock de tact Dispozitiv de procesare Processing Device Address Bloc de Block Adresa IR RI Instruction Bloc de Block Instructiune Linii interne de Control Linii interne de Stare 14
15 ALU Contains: a set of general registers (local memory): storing operands and partial results; a processing block. Processing Block: a processing unit: performing arithmetic and logic operations; Accumulator Register (ACC); Operand Register: buffer register storing the second operand; Status Register: consisting in a set of condition bits (flags) representing different features associated to the generated result (sign, carry, parity, zero etc). 15
16 CPU: ALU 16
17 UC 3 blocks: 1) Instruction Unit ; 2) Address Unit; 3) Control Sequencer Block. 17
18 CPU: UC 18
19 UC Instruction Block: PC: Program Counter (PC); Instruction Register (IR); Function (FR); OPCODE Decoder. pointer to the next instruction to execute; a register with incrementing facility and parallel load facility. Incrementation command: control sequencer (generator); PC Content: used during the FETCH phase to read the memory; The fetched instruction is stored in the Instruction Register (IR); The OPCODE field is transferred in the Function Register (FR) the content of which is decoded (interpreted) by the OPCODE Decoder, allowing the identification of the operation. 19
20 UC Address Block: Address Register (RA): storing the logic address contained by the address field of the instruction; Effective Address Computation Device: applies specific mechanisms for determination of the effective address (EA) of the operands from the logic address (LA) given in the address field of the instruction. Control Sequencer (Control Generator Device): generates all the commands required by the execution of the current instruction; the decision is taken based on the content of the Status Register (Flags). 20
21 UC The component blocks of the Control Unit must perform: Extracting of the current instruction from memory; Transferring the instruction in the Instruction Register (IR); Storing fields of the instruction in the Function Register (FR) and in the Address Register (AR); Decoding the OPCODE and generation of the corresponding control signals on control lines; Determining the address of the next instruction to execute; Identifying the effective addresses (EA) of the operands; Transferring the designated operands in ALU; Performing the operation (function) provided by the OPCODE; Storing the result. 21
22 Memory Memory Unit (MU): hierarchical structure; Secondary Memory (external); programs and data that are being processed by the CPU; offline; great capacity; medium and high access time. Main Memory (operative); programs and data that are being processed by the CPU; online; Local Memory; a set of registers inside the CPU; fastest in the hierarchy. 22
23 Memory Nivel III MS Capacity increases MP Nivel II Accesstime increases ML Nivel I CPU 23
24 Memory There exists a great difference in capacity and speed of operation between different levels of memory hierarchy; Computers: automatically regulate the flow of information between levels of memory, by software or hardware means. Regulation: less frequently accessed information kept in slower and more capacious memory levels; more frequently accessed information being kept into the faster and less capacious memory levels. MM <-> CPU; Conflict: MM speed << CPU speed; Need: CPU must get information from MM at a speed comparable to its own operation. 24
25 CPU-MM Transfer Balancing Techniques 25
26 Techniques In order to increase the productivity of the computers must be the performance of the transfer CPU-MM must be balanced; Balancing techniques are grouped into three categories: 1. Widening the data bus; 2. Increasing the number of levels in memory hierarchy; 3. Prefetching the next instruction. 26
27 Widening the memory bus Programs and data to be processed are stored in MM; Processing is carried out in CPU. The results are sent back to the MM. CPU-MM communication: memory bus; Von Neumann Model: the speed of transferring data from/into MM represents a bottleneck; CPU extracts instructions and corresponding data from the MM one at a time; => architectural limitations! 27
28 Widening the memory bus Architectural limitation: speed; CPU <-1 instruction MM Memory Bus 28
29 Widening the memory bus Solution: widening the memory bus so as to extract several instructions and data items from the MM at a time. CPU <- more instructions MM Memory Bus => would solve the architectural problem! 29
30 Widening the memory bus Critical problem: the constraint of procedural access (one instruction at a time); Solution: make MM deliver a set of instructions and data; Another problem: prioritization; => to decide which instructions and data would be allowed, when several instructions and data are extracted from MM, provided that the CPU operates in a procedural way. Solution: ensure that the set of extracted instructions and transferred on the widened memory bus represents a sequence of instructions of the program processed by the CPU; Division of MM on several parallel blocks (memory modules). 30
31 Widening the memory bus 31
32 Widening the memory bus Simultaneous access to several modules, each offering an instruction or data item; Now: a set of n instructions or data items available for the CPU; But, the CPU will process one instruction at a time (von Neumann s procedurality principle); Division of MM on several parallel blocks (memory modules). 32
33 Widening the memory bus Original organization: One single memory block containing n instruction or data items; Extracting by reading n consecutive memory locations. 33
34 Widening the memory bus New structure: m memory blocks; n elements (data or instructions); memory locations having the same address; by means of a single access a n*m bits word is being extracted; the entire n*m bits word is stored in IR; CU extracts the instructions from RI, one by one. 34
35 Widening the memory bus The efficiency depends on the probability that the entire set of instructions in a widened word to be used by the CPU; Frequently: branches in the program evolution a change of the normal sequence of instructions. => new access memory blocks will be initiated to fulfil requirements of the branch, before all instructions/data from the previous word had been executed by the CPU. Solution: a model of prediction for sequences of instructions is to be considered (beyond the scope of the course). 35
36 Increasing the number of levels in the memory hierarchy Idea: to improve the flow from the MM to CPU; Solution: inserting a smaller in size, but very fast memory layer between MM and CPU; This is referred to as Super Operative Memory (Cache Memory). 36
37 Increasing the number of levels in the memory hierarchy 37
38 Increasing the number of levels in the memory hierarchy SOM (Super Operative Memory) Cache Memory; Roles: -> closest layer of memory to the CPU; -> very low access time (units or tens of nanoseconds); -> very fast memory; => operation speed comparable to the CPU s. delivering the current instructions and the corresponding data to CPU at speeds that are comparable to CPU speed; exchanging blocks of information with OM; Based on: locality property of a program. 38
39 Increasing the number of levels in the memory hierarchy SOM (Super Operative Memory); Initially: empty; CPU calls for the starting instruction of the program; MSO extracts the starting instruction from the Operative Memory, together with an entire block of instructions/data that are clustered around the initial instruction; When a failure (cache miss) of finding an instruction/data happens, a new block of instructions/data is brought from the OM. 39
40 Increasing the number of levels in the memory hierarchy Strategy: make transfers between SOM and OM as infrequent as possible; Based on models of prediction of sequences of instructions and data; The transfers between SOM and OM: hardware mechanism (transparent for the user). 40
41 PREFETCHING Instruction cycle: 1) FETCH; 2) EXECUTE. Executing a program: executing a series of instructions has the => a sequence FETCH-EXECUTE; 41
42 PREFETCHING FETCH: read the current instruction from the MM; decode it. EXECUTE: fetch the operand (data); execute the function; yielding the result. PREFETCH: overlap the EXECUTE phase of the current instruction with the FETCH phase of the next instruction; execute the current instruction (CPU) CU extracts from the memory the next instruction; temporary parallelism. Suprapunerea fazei EXECUTE de la intrucţiunea curentă cu faza FETCH de la instrucţiunea următoare. 42
43 PREFETCHING PREFETCHING: Overlapping the EXECUTE phase of the current instruction with the FETCH phase of the next instruction. 43
44 PREFETCHING Parallelism in a time sense; Memory bus widening technique (1): spatial parallelism; Simple and efficient technique; Frequently used in designing CU; Can be refined, by considering more steps of an Instruction Cycle; Increases performance; Two units working in parallel (MM & CPU); Cheapest technique; The other two techniques are more expensive, as they require new resources (Cache Memory, widened data bus). 44
45 Organisation of the CPU Peripheral Devices Communication 45
46 I/O Units Data Flux de flow date Alternative Data Flow Flux de date alternativ CPU = ALU + CU Instructions Flux de instructiuni Flow Control Comenzi sau Line linii de control Status Informatii Line de stare sau linii de stare Unitatea Control de Control Unit (CU) (UC) Date de Input Data intrare si & programe Programs Unitatea Input de Intrare Unit (IU) (UI) Unitatea Arithmetic Logico- Logic Aritmeticã Unit (ALU) Date Unitatea Output de Iesire Unit (OU) (UO) Instructiuni Instructions Date de iesire Output Data sau rezultate & Results DMA Unitatea Memory de Memorie Unit (MU) (UM) DMA 46
47 Peripheral Devices A powerful computer: hundreds of peripheral devices connected through Input/Output (I/O) Units; I/O Unit: controls one or several peripheral devices; comunicates with the system bus. Examples of peripheral devices: keyboard; mouse; joystick; monitor; printer; scanner; components of the SM (hard-disk, floppy-disk, CD, DVD, etc). 47
48 Peripheral Devices Differences in terms of: form and function: by using different media, different principles of operation and necessitating different sets of control information; operation speed. Represent one of the main system resources; May be shared among multiple users; May be simultaneously needed by several processes; A rule of serving has to be established; The peripheral devices + I/O units = the I/O architecture of the computer system. 48
49 Peripheral Devices Any peripheral device has the following structure: Control signals: determine the function that the device will perform; Status signals: indicate the state of the device; Data: are in the form of a set of bits to be sent to or received from the I/O unit; Control Logic: controls the device operation in accordance with the commands issued by the I/O unit and the type of peripheral device; Transducer: converts data from the electrical to other forms of energy; Buffer: has to be associated with the Transducer to temporarily hold data being transferred between I/O units and the external environment. 49
50 Structure of a Peripheral Device 50
51 I/O Units Are connected to the System Bus; Control the peripheral devices; Set of mechanical connectors that wire peripheral devices; Include the logic for performing a communication function between the peripheral device and the system bus; They must: communicate with CPU and MM and one or multiple peripheral devices; ensure the communication between CPU and peripheral devices; ensure data buffering; ensure the control and synchronization; detect the erros. 51
52 I/O Units Address lines Data lines System Bus Control lines I/O unit (P1) (P2) (P3).. (Pn) Lines to peripheral devices 52
53 Data transfer CPU-Peripheral Device via I/O Unit The data transfer between a peripheral device and CPU is performed as follows: 1) CPU interrogates the I/O unit to check the status of the device; 2) The I/O unit returns the device status to CPU; 3) If the device is operational and ready to transmit, CPU requests the transfer of data item by means of a command sent to the I/O unit; 4) The I/O unit obtains the data item from the device; 5) The data item is transferred from the I/O unit to the CPU. 53
54 General Structure of an I/O Unit Linii Data de date Bus CPU Registre Data Registers de date Registre State/Control de Stare/Control Registers Linii Address de Adresa Bus Logica I/O Logic I/O Linii de Control Control Bus Interfata Ext. device cu interface disp. periferic Interfata Ext. device cu disp. interface periferic Date Data Status Stare Control Date Data Status Stare Peripheral Disp. periferice Devices Control Control 54
55 General Structure of an I/O Unit Each I/O unit must have a unique address => I/O Unit address; If an I/O unit allows connection of several devices, then each device has its own address; Data transfers to and from the I/O units are buffered in one or several data registers => local memory of the I/O unit; Status Registers: provide current status information; may function also as a control register to accept detailed control information from the CPU. CPU uses control lines to transmit commands to the I/O units. 55
56 I/O Unit - CPU communication I/O unit and the CPU communication assumes the following actions: Command decoding: I/O unit accepts commands from the CPU, signals that are sent via the Control bus; Exchange of data: carried out over the Data bus; Status reporting: because peripherals are slow it is important to know their status through the I/O unit. Common status signals are BUSY, READY, etc; Address recognition: each device must have a unique address so that I/O unit must recognize the unique address for each peripheral it controls. 56
57 CPU - Peripheral Devices Transfer Data transfers: CPU peripheral device; 3 situations: 1) Data transfer under program control or programmed I/O; 2) Interrupt initiated data transfer (interrupt driven I/O); 3) Direct Memory Access (DMA) transfer. 57
58 Program-controlled transfers Are the result of I/O instructions written in the computer program which is in progress; Each transfer is initiated by an instruction in the program; Each transfer is performed: between a register of CPU (for instance, the Accumulator) and the peripheral device, or between a register of CPU and the memory. Requires constant monitoring of the peripheral device by the CPU to identify when a transfer can again be carried out; CPU stays in a program loop until the I/O unit indicates that it is ready; It is a time consuming process since it keeps the CPU busy needlessly. 58
59 Interrupt-driven I/O Uses the interrupt facility of the CPU; When running a program: 1) an I/O instruction informs the I/O unit to issue an Interrupt Request when the peripheral device becomes available; 2) CPU switches to another program; 3) I/O unit watches the peripheral device; 4) When the device is ready for data transfer, it generates an interrupt request to the CPU; 5) CPU stops momentarily the task it is doing and branches to a service routine to process the data transfer; 6) CPU returns to the task it was performing. 59
60 DMA (Direct Memory Access) Uses a dedicated I/O unit, called DMA Controller, which transfers data into or from the Memory Unit through the memory bus. 1) CPU initiates this type of transfer by: supplying the starting memory address; supplying the number of words to be transferred. 2) CPU frees the bus and the DMA controller takes control of the bus and realizes the transfer; 3) After that it issues an interrupt request to CPU to indicate that the transfer ended; 4) The DMA controller frees the bus and CPU regains control of the bus. 60
61 I/O Processors (channels) Peripheral device < speed than CPU => 61
62 I/O Processors (channels) Peripheral device < speed than CPU => I/O operations are time consuming => 62
63 I/O Processors (channels) Peripheral device < speed than CPU => I/O operations are time consuming => CPU productivity decreases. (according von Neumann) 63
64 I/O Processors (channels) Peripheral device < speed than CPU => I/O operations are time consuming => CPU productivity decreases. (according von Neumann) In order to increase productivity: 64
65 I/O Processors (channels) Peripheral device < speed than CPU => I/O operations are time consuming => CPU productivity decreases. (according von Neumann) In order to increase productivity: CPU activity I/O Unit activity The I/O units were transformed from simple controllers into I/O processors or I/O channels. 65
66 I/O Processors (channels) According to IBM technology, IOP is called channel; Main function: controlling the I/O transfer; IOP is controlled by the CPU: CPU directs the I/O processor to execute an I/O program that is placed in memory; IOP fetches and executes these instructions without CPU s intervention => IOP executes independently the IO program; CPU continues its main task, that of making computations. CPU is released of manipulating a slow I/O operation; At transfer end IOP informs CPU; I/O processor can control a large set of I/O devices with minimal CPU involvement. 66
67 General Structure of a Digital Computer (+IOP) I/O Processor Main Memory I/O Processor I/O Processor Secondary Memory 67
68 Digital Computer Operation Today: the transfer is performed through DMA (Direct Memory Access), as follows: Control Unit (CU) Input Data & Programs Input Unit (IU) DMA Output Unit (OU) Output Data & Results Memory Uniy (MU) 68
69 I/O Processors (channels) There are two types of I/O processors: Selector; Multiplexer. 69
70 I/O Processors (channels) Selector channel: controls multiple high-speed devices; At any time is dedicated to the transfer of data with a single I/O device; The moment it is selected, the I/O device remains connected until the end of the I/O operation; => the I/O selector channel selects a single device and caries out the data transfer with this device only. 70
71 I/O Processors (channels) Multiplexer channel: can handle I/O operations with multiple low speed devices and medium speed devices at the same time. It is based on time slicing principle: multiple I/O devices transfer data sequentially through the same channel. Depending on the I/O devices speed of operation the following two types of organizing the transfers can be identified: byte multiplexer: - for a time slice, only a byte ( word ) is transferred; - it is applied in case of very slow peripheral devices. block multiplexer: - for a time slice a block of bytes (words ) is transferred; - it is applied in case of faster peripheral devices. 71
72 I/O Processors (channels) An IOP can handle one ore more I/O devices; These are connected to IOP through an I/O controller, consisting of: logical interface (IF) toward IOP; device controller (K) toward device. I/O processor IF Logical Interface K Device Controller Peripheral Device The logical interface is manipulating digital information, whereas the device controller is manipulating signals specific to the physical nature of the peripheral device. 72
73 I/O Architecture Mag. I/O IOP Selector Control Stare Mag. Memorie CPU Control Stare IOP Multiplexor IF 1 K 1 DP 11 DP 1R IF IF 1 n K n K 1 Date/ Adrese MP Date/ Adrese IF m K m DP m1 DP ms DP n1 DP 11 Dispozitive periferice medii si lente DP nq DP 1P Dispozitive periferice rapide 73
Central Processing Unit
Chapter 4 Central Processing Unit 1. CPU organization and operation flowchart 1.1. General concepts The primary function of the Central Processing Unit is to execute sequences of instructions representing
More informationChapter 1 Computer System Overview
Operating Systems: Internals and Design Principles Chapter 1 Computer System Overview Eighth Edition By William Stallings Operating System Exploits the hardware resources of one or more processors Provides
More informationChapter 2 Basic Structure of Computers. Jin-Fu Li Department of Electrical Engineering National Central University Jungli, Taiwan
Chapter 2 Basic Structure of Computers Jin-Fu Li Department of Electrical Engineering National Central University Jungli, Taiwan Outline Functional Units Basic Operational Concepts Bus Structures Software
More informationCentral Processing Unit (CPU)
Central Processing Unit (CPU) CPU is the heart and brain It interprets and executes machine level instructions Controls data transfer from/to Main Memory (MM) and CPU Detects any errors In the following
More informationwhat operations can it perform? how does it perform them? on what kind of data? where are instructions and data stored?
Inside the CPU how does the CPU work? what operations can it perform? how does it perform them? on what kind of data? where are instructions and data stored? some short, boring programs to illustrate the
More informationCOMPUTER HARDWARE. Input- Output and Communication Memory Systems
COMPUTER HARDWARE Input- Output and Communication Memory Systems Computer I/O I/O devices commonly found in Computer systems Keyboards Displays Printers Magnetic Drives Compact disk read only memory (CD-ROM)
More information150127-Microprocessor & Assembly Language
Chapter 3 Z80 Microprocessor Architecture The Z 80 is one of the most talented 8 bit microprocessors, and many microprocessor-based systems are designed around the Z80. The Z80 microprocessor needs an
More informationMICROPROCESSOR AND MICROCOMPUTER BASICS
Introduction MICROPROCESSOR AND MICROCOMPUTER BASICS At present there are many types and sizes of computers available. These computers are designed and constructed based on digital and Integrated Circuit
More information(Refer Slide Time: 00:01:16 min)
Digital Computer Organization Prof. P. K. Biswas Department of Electronic & Electrical Communication Engineering Indian Institute of Technology, Kharagpur Lecture No. # 04 CPU Design: Tirning & Control
More informationCHAPTER 2: HARDWARE BASICS: INSIDE THE BOX
CHAPTER 2: HARDWARE BASICS: INSIDE THE BOX Multiple Choice: 1. Processing information involves: A. accepting information from the outside world. B. communication with another computer. C. performing arithmetic
More informationComputer Organization. and Instruction Execution. August 22
Computer Organization and Instruction Execution August 22 CSC201 Section 002 Fall, 2000 The Main Parts of a Computer CSC201 Section Copyright 2000, Douglas Reeves 2 I/O and Storage Devices (lots of devices,
More informationAdvanced Computer Architecture-CS501. Computer Systems Design and Architecture 2.1, 2.2, 3.2
Lecture Handout Computer Architecture Lecture No. 2 Reading Material Vincent P. Heuring&Harry F. Jordan Chapter 2,Chapter3 Computer Systems Design and Architecture 2.1, 2.2, 3.2 Summary 1) A taxonomy of
More informationMICROPROCESSOR. Exclusive for IACE Students www.iace.co.in iacehyd.blogspot.in Ph: 9700077455/422 Page 1
MICROPROCESSOR A microprocessor incorporates the functions of a computer s central processing unit (CPU) on a single Integrated (IC), or at most a few integrated circuit. It is a multipurpose, programmable
More informationCHAPTER 7: The CPU and Memory
CHAPTER 7: The CPU and Memory The Architecture of Computer Hardware, Systems Software & Networking: An Information Technology Approach 4th Edition, Irv Englander John Wiley and Sons 2010 PowerPoint slides
More informationLearning Outcomes. Simple CPU Operation and Buses. Composition of a CPU. A simple CPU design
Learning Outcomes Simple CPU Operation and Buses Dr Eddie Edwards eddie.edwards@imperial.ac.uk At the end of this lecture you will Understand how a CPU might be put together Be able to name the basic components
More informationComputer Performance. Topic 3. Contents. Prerequisite knowledge Before studying this topic you should be able to:
55 Topic 3 Computer Performance Contents 3.1 Introduction...................................... 56 3.2 Measuring performance............................... 56 3.2.1 Clock Speed.................................
More informationMachine Architecture and Number Systems. Major Computer Components. Schematic Diagram of a Computer. The CPU. The Bus. Main Memory.
1 Topics Machine Architecture and Number Systems Major Computer Components Bits, Bytes, and Words The Decimal Number System The Binary Number System Converting from Decimal to Binary Major Computer Components
More informationChapter 2 Logic Gates and Introduction to Computer Architecture
Chapter 2 Logic Gates and Introduction to Computer Architecture 2.1 Introduction The basic components of an Integrated Circuit (IC) is logic gates which made of transistors, in digital system there are
More informationCPU Organisation and Operation
CPU Organisation and Operation The Fetch-Execute Cycle The operation of the CPU 1 is usually described in terms of the Fetch-Execute cycle. 2 Fetch-Execute Cycle Fetch the Instruction Increment the Program
More informationLet s put together a Manual Processor
Lecture 14 Let s put together a Manual Processor Hardware Lecture 14 Slide 1 The processor Inside every computer there is at least one processor which can take an instruction, some operands and produce
More informationComputer Systems Structure Input/Output
Computer Systems Structure Input/Output Peripherals Computer Central Processing Unit Main Memory Computer Systems Interconnection Communication lines Input Output Ward 1 Ward 2 Examples of I/O Devices
More informationManagement Challenge. Managing Hardware Assets. Central Processing Unit. What is a Computer System?
Management Challenge Managing Hardware Assets What computer processing and storage capability does our organization need to handle its information and business transactions? What arrangement of computers
More informationCHAPTER 4 MARIE: An Introduction to a Simple Computer
CHAPTER 4 MARIE: An Introduction to a Simple Computer 4.1 Introduction 195 4.2 CPU Basics and Organization 195 4.2.1 The Registers 196 4.2.2 The ALU 197 4.2.3 The Control Unit 197 4.3 The Bus 197 4.4 Clocks
More informationThe Central Processing Unit:
The Central Processing Unit: What Goes on Inside the Computer Chapter 4 Objectives Identify the components of the central processing unit and how they work together and interact with memory Describe how
More informationChapter 3: Computer Hardware Components: CPU, Memory, and I/O
Chapter 3: Computer Hardware Components: CPU, Memory, and I/O What is the typical configuration of a computer sold today? The Computer Continuum 1-1 Computer Hardware Components In this chapter: How did
More informationChapter 11 I/O Management and Disk Scheduling
Operating Systems: Internals and Design Principles, 6/E William Stallings Chapter 11 I/O Management and Disk Scheduling Dave Bremer Otago Polytechnic, NZ 2008, Prentice Hall I/O Devices Roadmap Organization
More informationCOMPUTERS ORGANIZATION 2ND YEAR COMPUTE SCIENCE MANAGEMENT ENGINEERING UNIT 5 INPUT/OUTPUT UNIT JOSÉ GARCÍA RODRÍGUEZ JOSÉ ANTONIO SERRA PÉREZ
COMPUTERS ORGANIZATION 2ND YEAR COMPUTE SCIENCE MANAGEMENT ENGINEERING UNIT 5 INPUT/OUTPUT UNIT JOSÉ GARCÍA RODRÍGUEZ JOSÉ ANTONIO SERRA PÉREZ Tema 5. Unidad de E/S 1 I/O Unit Index Introduction. I/O Problem
More informationComputer organization
Computer organization Computer design an application of digital logic design procedures Computer = processing unit + memory system Processing unit = control + datapath Control = finite state machine inputs
More informationComputer Architecture Lecture 2: Instruction Set Principles (Appendix A) Chih Wei Liu 劉 志 尉 National Chiao Tung University cwliu@twins.ee.nctu.edu.
Computer Architecture Lecture 2: Instruction Set Principles (Appendix A) Chih Wei Liu 劉 志 尉 National Chiao Tung University cwliu@twins.ee.nctu.edu.tw Review Computers in mid 50 s Hardware was expensive
More information1. Computer System Structure and Components
1 Computer System Structure and Components Computer System Layers Various Computer Programs OS System Calls (eg, fork, execv, write, etc) KERNEL/Behavior or CPU Device Drivers Device Controllers Devices
More informationMACHINE ARCHITECTURE & LANGUAGE
in the name of God the compassionate, the merciful notes on MACHINE ARCHITECTURE & LANGUAGE compiled by Jumong Chap. 9 Microprocessor Fundamentals A system designer should consider a microprocessor-based
More informationBuilding a computer. Electronic Numerical Integrator and Computer (ENIAC)
Building a computer Electronic Numerical Integrator and Computer (ENIAC) CSCI 255: Introduc/on to Embedded Systems Keith Vertanen Copyright 2011 Layers of abstrac
More informationPART B QUESTIONS AND ANSWERS UNIT I
PART B QUESTIONS AND ANSWERS UNIT I 1. Explain the architecture of 8085 microprocessor? Logic pin out of 8085 microprocessor Address bus: unidirectional bus, used as high order bus Data bus: bi-directional
More informationComputer Organization & Architecture Lecture #19
Computer Organization & Architecture Lecture #19 Input/Output The computer system s I/O architecture is its interface to the outside world. This architecture is designed to provide a systematic means of
More informationMICROPROCESSOR BCA IV Sem MULTIPLE CHOICE QUESTIONS
MICROPROCESSOR BCA IV Sem MULTIPLE CHOICE QUESTIONS 1) Which is the microprocessor comprises: a. Register section b. One or more ALU c. Control unit 2) What is the store by register? a. data b. operands
More informationCSCI 4717 Computer Architecture. Function. Data Storage. Data Processing. Data movement to a peripheral. Data Movement
CSCI 4717/5717 Computer Architecture Topic: Functional View & History Reading: Sections 1.2, 2.1, & 2.3 Function All computer functions are comprised of four basic operations: Data processing Data storage
More informationTIMING DIAGRAM O 8085
5 TIMING DIAGRAM O 8085 5.1 INTRODUCTION Timing diagram is the display of initiation of read/write and transfer of data operations under the control of 3-status signals IO / M, S 1, and S 0. As the heartbeat
More informationChapter 11: Input/Output Organisation. Lesson 06: Programmed IO
Chapter 11: Input/Output Organisation Lesson 06: Programmed IO Objective Understand the programmed IO mode of data transfer Learn that the program waits for the ready status by repeatedly testing the status
More informationPrimary Memory. Input Units CPU (Central Processing Unit)
Basic Concepts of Computer Hardware Primary Memory Input Units CPU (Central Processing Unit) Output Units This model of the typical digital computer is often called the von Neuman compute Programs and
More informationBASIC COMPUTER ORGANIZATION AND DESIGN
1 BASIC COMPUTER ORGANIZATION AND DESIGN Instruction Codes Computer Registers Computer Instructions Timing and Control Instruction Cycle Memory Reference Instructions Input-Output and Interrupt Complete
More informationChapter 4 Register Transfer and Microoperations. Section 4.1 Register Transfer Language
Chapter 4 Register Transfer and Microoperations Section 4.1 Register Transfer Language Digital systems are composed of modules that are constructed from digital components, such as registers, decoders,
More informationOperating Systems 4 th Class
Operating Systems 4 th Class Lecture 1 Operating Systems Operating systems are essential part of any computer system. Therefore, a course in operating systems is an essential part of any computer science
More informationCPS104 Computer Organization and Programming Lecture 18: Input-Output. Robert Wagner
CPS104 Computer Organization and Programming Lecture 18: Input-Output Robert Wagner cps 104 I/O.1 RW Fall 2000 Outline of Today s Lecture The I/O system Magnetic Disk Tape Buses DMA cps 104 I/O.2 RW Fall
More informationComputer-System Architecture
Chapter 2: Computer-System Structures Computer System Operation I/O Structure Storage Structure Storage Hierarchy Hardware Protection General System Architecture 2.1 Computer-System Architecture 2.2 Computer-System
More information1 Classical Universal Computer 3
Chapter 6: Machine Language and Assembler Christian Jacob 1 Classical Universal Computer 3 1.1 Von Neumann Architecture 3 1.2 CPU and RAM 5 1.3 Arithmetic Logical Unit (ALU) 6 1.4 Arithmetic Logical Unit
More informationAn Introduction to Computer Science and Computer Organization Comp 150 Fall 2008
An Introduction to Computer Science and Computer Organization Comp 150 Fall 2008 Computer Science the study of algorithms, including Their formal and mathematical properties Their hardware realizations
More informationComputer System: User s View. Computer System Components: High Level View. Input. Output. Computer. Computer System: Motherboard Level
System: User s View System Components: High Level View Input Output 1 System: Motherboard Level 2 Components: Interconnection I/O MEMORY 3 4 Organization Registers ALU CU 5 6 1 Input/Output I/O MEMORY
More informationTypes Of Operating Systems
Types Of Operating Systems Date 10/01/2004 1/24/2004 Operating Systems 1 Brief history of OS design In the beginning OSes were runtime libraries The OS was just code you linked with your program and loaded
More informationCOMPUTER ARCHITECTURE. Input/Output
HUMBOLDT-UNIVERSITÄT ZU BERLIN INSTITUT FÜR INFORMATIK COMPUTER ARCHITECTURE Lecture 17 Input/Output Sommersemester 2002 Leitung: Prof. Dr. Miroslaw Malek www.informatik.hu-berlin.de/rok/ca CA - XVII -
More informationA3 Computer Architecture
A3 Computer Architecture Engineering Science 3rd year A3 Lectures Prof David Murray david.murray@eng.ox.ac.uk www.robots.ox.ac.uk/ dwm/courses/3co Michaelmas 2000 1 / 1 6. Stacks, Subroutines, and Memory
More informationA s we saw in Chapter 4, a CPU contains three main sections: the register section,
6 CPU Design A s we saw in Chapter 4, a CPU contains three main sections: the register section, the arithmetic/logic unit (ALU), and the control unit. These sections work together to perform the sequences
More informationAddressing The problem. When & Where do we encounter Data? The concept of addressing data' in computations. The implications for our machine design(s)
Addressing The problem Objectives:- When & Where do we encounter Data? The concept of addressing data' in computations The implications for our machine design(s) Introducing the stack-machine concept Slide
More informationCHAPTER 6: Computer System Organisation 1. The Computer System's Primary Functions
CHAPTER 6: Computer System Organisation 1. The Computer System's Primary Functions All computers, from the first room-sized mainframes, to today's powerful desktop, laptop and even hand-held PCs, perform
More informationChapter 6. Inside the System Unit. What You Will Learn... Computers Are Your Future. What You Will Learn... Describing Hardware Performance
What You Will Learn... Computers Are Your Future Chapter 6 Understand how computers represent data Understand the measurements used to describe data transfer rates and data storage capacity List the components
More informationUNIT 2 CLASSIFICATION OF PARALLEL COMPUTERS
UNIT 2 CLASSIFICATION OF PARALLEL COMPUTERS Structure Page Nos. 2.0 Introduction 27 2.1 Objectives 27 2.2 Types of Classification 28 2.3 Flynn s Classification 28 2.3.1 Instruction Cycle 2.3.2 Instruction
More informationTraditional IBM Mainframe Operating Principles
C H A P T E R 1 7 Traditional IBM Mainframe Operating Principles WHEN YOU FINISH READING THIS CHAPTER YOU SHOULD BE ABLE TO: Distinguish between an absolute address and a relative address. Briefly explain
More informationCS101 Lecture 26: Low Level Programming. John Magee 30 July 2013 Some material copyright Jones and Bartlett. Overview/Questions
CS101 Lecture 26: Low Level Programming John Magee 30 July 2013 Some material copyright Jones and Bartlett 1 Overview/Questions What did we do last time? How can we control the computer s circuits? How
More informationChapter 01: Introduction. Lesson 02 Evolution of Computers Part 2 First generation Computers
Chapter 01: Introduction Lesson 02 Evolution of Computers Part 2 First generation Computers Objective Understand how electronic computers evolved during the first generation of computers First Generation
More informationOperating Systems Overview
Operating Systems Overview No single definition, but many perspectives: Role in an overall system: Intermediary between computer hardware and everything else User view: Provides an environment, preferably
More informationRead this before starting!
Points missed: Student's Name: Total score: /100 points East Tennessee State University Department of Computer and Information Sciences CSCI 4717 Computer Architecture TEST 2 for Fall Semester, 2006 Section
More informationCPU Organization and Assembly Language
COS 140 Foundations of Computer Science School of Computing and Information Science University of Maine October 2, 2015 Outline 1 2 3 4 5 6 7 8 Homework and announcements Reading: Chapter 12 Homework:
More informationMULTIPLE CHOICE FREE RESPONSE QUESTIONS
MULTIPLE CHOICE FREE RESPONSE QUESTIONS World ORT Union I n p u t d e v i c e s Where would you find the letters QUERTY? A. Mouse B. Keyboard C.Numeric Keypad How did the computer mouse get its name? A.
More informationComputer Organization
Basics Machine, software, and program design JPC and JWD 2002 McGraw-Hill, Inc. Computer Organization CPU - central processing unit Where decisions are made, computations are performed, and input/output
More informationLSN 2 Computer Processors
LSN 2 Computer Processors Department of Engineering Technology LSN 2 Computer Processors Microprocessors Design Instruction set Processor organization Processor performance Bandwidth Clock speed LSN 2
More informationChapter 02: Computer Organization. Lesson 04: Functional units and components in a computer organization Part 3 Bus Structures
Chapter 02: Computer Organization Lesson 04: Functional units and components in a computer organization Part 3 Bus Structures Objective: Understand the IO Subsystem and Understand Bus Structures Understand
More informationCSC 2405: Computer Systems II
CSC 2405: Computer Systems II Spring 2013 (TR 8:30-9:45 in G86) Mirela Damian http://www.csc.villanova.edu/~mdamian/csc2405/ Introductions Mirela Damian Room 167A in the Mendel Science Building mirela.damian@villanova.edu
More informationS7 for Windows S7-300/400
S7 for Windows S7-300/400 A Programming System for the Siemens S7 300 / 400 PLC s IBHsoftec has an efficient and straight-forward programming system for the Simatic S7-300 and ern controller concept can
More informationPROBLEMS. which was discussed in Section 1.6.3.
22 CHAPTER 1 BASIC STRUCTURE OF COMPUTERS (Corrisponde al cap. 1 - Introduzione al calcolatore) PROBLEMS 1.1 List the steps needed to execute the machine instruction LOCA,R0 in terms of transfers between
More informationInstruction Set Architecture
Instruction Set Architecture Consider x := y+z. (x, y, z are memory variables) 1-address instructions 2-address instructions LOAD y (r :=y) ADD y,z (y := y+z) ADD z (r:=r+z) MOVE x,y (x := y) STORE x (x:=r)
More informationLesson Objectives. To provide a grand tour of the major operating systems components To provide coverage of basic computer system organization
Lesson Objectives To provide a grand tour of the major operating systems components To provide coverage of basic computer system organization AE3B33OSD Lesson 1 / Page 2 What is an Operating System? A
More informationComputer Systems Structure Main Memory Organization
Computer Systems Structure Main Memory Organization Peripherals Computer Central Processing Unit Main Memory Computer Systems Interconnection Communication lines Input Output Ward 1 Ward 2 Storage/Memory
More informationOperating system Dr. Shroouq J.
3 OPERATING SYSTEM STRUCTURES An operating system provides the environment within which programs are executed. The design of a new operating system is a major task. The goals of the system must be well
More informationInput / Ouput devices. I/O Chapter 8. Goals & Constraints. Measures of Performance. Anatomy of a Disk Drive. Introduction - 8.1
Introduction - 8.1 I/O Chapter 8 Disk Storage and Dependability 8.2 Buses and other connectors 8.4 I/O performance measures 8.6 Input / Ouput devices keyboard, mouse, printer, game controllers, hard drive,
More informationMultiple Choice Questions(Computer)
Multiple Choice Questions(Computer) 1. Which of the following is the product of data processing a. information b. data c. software program d. system 2. The process of putting data into a location is called
More informationAn Overview of Stack Architecture and the PSC 1000 Microprocessor
An Overview of Stack Architecture and the PSC 1000 Microprocessor Introduction A stack is an important data handling structure used in computing. Specifically, a stack is a dynamic set of elements in which
More informationChapter 11 I/O Management and Disk Scheduling
Operatin g Systems: Internals and Design Principle s Chapter 11 I/O Management and Disk Scheduling Seventh Edition By William Stallings Operating Systems: Internals and Design Principles An artifact can
More informationİSTANBUL AYDIN UNIVERSITY
İSTANBUL AYDIN UNIVERSITY FACULTY OF ENGİNEERİNG SOFTWARE ENGINEERING THE PROJECT OF THE INSTRUCTION SET COMPUTER ORGANIZATION GÖZDE ARAS B1205.090015 Instructor: Prof. Dr. HASAN HÜSEYİN BALIK DECEMBER
More informationA+ Guide to Managing and Maintaining Your PC, 7e. Chapter 1 Introducing Hardware
A+ Guide to Managing and Maintaining Your PC, 7e Chapter 1 Introducing Hardware Objectives Learn that a computer requires both hardware and software to work Learn about the many different hardware components
More informationADVANCED PROCESSOR ARCHITECTURES AND MEMORY ORGANISATION Lesson-17: Memory organisation, and types of memory
ADVANCED PROCESSOR ARCHITECTURES AND MEMORY ORGANISATION Lesson-17: Memory organisation, and types of memory 1 1. Memory Organisation 2 Random access model A memory-, a data byte, or a word, or a double
More informationChapter 2: OS Overview
Chapter 2: OS Overview CmSc 335 Operating Systems 1. Operating system objectives and functions Operating systems control and support the usage of computer systems. a. usage users of a computer system:
More informationChapter 3: Operating-System Structures. System Components Operating System Services System Calls System Programs System Structure Virtual Machines
Chapter 3: Operating-System Structures System Components Operating System Services System Calls System Programs System Structure Virtual Machines Operating System Concepts 3.1 Common System Components
More informationCS 3530 Operating Systems. L02 OS Intro Part 1 Dr. Ken Hoganson
CS 3530 Operating Systems L02 OS Intro Part 1 Dr. Ken Hoganson Chapter 1 Basic Concepts of Operating Systems Computer Systems A computer system consists of two basic types of components: Hardware components,
More informationQuiz for Chapter 6 Storage and Other I/O Topics 3.10
Date: 3.10 Not all questions are of equal difficulty. Please review the entire quiz first and then budget your time carefully. Name: Course: Solutions in Red 1. [6 points] Give a concise answer to each
More informationCOMPUTER ORGANIZATION AND ARCHITECTURE. Slides Courtesy of Carl Hamacher, Computer Organization, Fifth edition,mcgrawhill
COMPUTER ORGANIZATION AND ARCHITECTURE Slides Courtesy of Carl Hamacher, Computer Organization, Fifth edition,mcgrawhill COMPUTER ORGANISATION AND ARCHITECTURE The components from which computers are built,
More informationData Cables. Schmitt TTL LABORATORY ELECTRONICS II
Data Cables Data cables link one instrument to another. Signals can attenuate or disperse on long wires. A direct wire works best for short cables of less than 10 ft. A TTL cable connection can use a Schmitt
More informationTYPES OF COMPUTERS AND THEIR PARTS MULTIPLE CHOICE QUESTIONS
MULTIPLE CHOICE QUESTIONS 1. What is a computer? a. A programmable electronic device that processes data via instructions to output information for future use. b. Raw facts and figures that has no meaning
More informationUNIVERSITY OF CALIFORNIA, DAVIS Department of Electrical and Computer Engineering. EEC180B Lab 7: MISP Processor Design Spring 1995
UNIVERSITY OF CALIFORNIA, DAVIS Department of Electrical and Computer Engineering EEC180B Lab 7: MISP Processor Design Spring 1995 Objective: In this lab, you will complete the design of the MISP processor,
More informationIntroducción. Diseño de sistemas digitales.1
Introducción Adapted from: Mary Jane Irwin ( www.cse.psu.edu/~mji ) www.cse.psu.edu/~cg431 [Original from Computer Organization and Design, Patterson & Hennessy, 2005, UCB] Diseño de sistemas digitales.1
More informationInstruction Set Architecture. or How to talk to computers if you aren t in Star Trek
Instruction Set Architecture or How to talk to computers if you aren t in Star Trek The Instruction Set Architecture Application Compiler Instr. Set Proc. Operating System I/O system Instruction Set Architecture
More informationCOMPUTER SCIENCE AND ENGINEERING - Microprocessor Systems - Mitchell Aaron Thornton
MICROPROCESSOR SYSTEMS Mitchell Aaron Thornton, Department of Electrical and Computer Engineering, Mississippi State University, PO Box 9571, Mississippi State, MS, 39762-9571, United States. Keywords:
More informationa storage location directly on the CPU, used for temporary storage of small amounts of data during processing.
CS143 Handout 18 Summer 2008 30 July, 2008 Processor Architectures Handout written by Maggie Johnson and revised by Julie Zelenski. Architecture Vocabulary Let s review a few relevant hardware definitions:
More informationCommunicating with devices
Introduction to I/O Where does the data for our CPU and memory come from or go to? Computers communicate with the outside world via I/O devices. Input devices supply computers with data to operate on.
More informationExceptions in MIPS. know the exception mechanism in MIPS be able to write a simple exception handler for a MIPS machine
7 Objectives After completing this lab you will: know the exception mechanism in MIPS be able to write a simple exception handler for a MIPS machine Introduction Branches and jumps provide ways to change
More informationChapter 13. PIC Family Microcontroller
Chapter 13 PIC Family Microcontroller Lesson 01 PIC Characteristics and Examples PIC microcontroller characteristics Power-on reset Brown out reset Simplified instruction set High speed execution Up to
More informationHere is a diagram of a simple computer system: (this diagram will be the one needed for exams) CPU. cache
Computer Systems Here is a diagram of a simple computer system: (this diagram will be the one needed for exams) CPU cache bus memory controller keyboard controller display controller disk Computer Systems
More informationIntroduction to Computer Architecture Concepts
to Computer Architecture Concepts 1. We will start at the very beginning, first with the fundamental concepts behind the modern digital computer, and then some details of their implementation. Many people,
More informationLogical Operations. Control Unit. Contents. Arithmetic Operations. Objectives. The Central Processing Unit: Arithmetic / Logic Unit.
Objectives The Central Processing Unit: What Goes on Inside the Computer Chapter 4 Identify the components of the central processing unit and how they work together and interact with memory Describe how
More informationEMBEDDED SYSTEM BASICS AND APPLICATION
EMBEDDED SYSTEM BASICS AND APPLICATION TOPICS TO BE DISCUSSED System Embedded System Components Classifications Processors Other Hardware Software Applications 2 INTRODUCTION What is a system? A system
More informationChapter 1. The largest computers, used mainly for research, are called a. microcomputers. b. maxicomputers. c. supercomputers. d. mainframe computers.
Chapter 1 CD-ROM stands for: a. Compact Disk Random Only Memory b. Compact Disk Read Only Memory c. Computer Device Read Only Memory d. Computer Disk Random Online Memory Control Unit (CU) is the a. Main
More informationChapter 3. Operating Systems
Christian Jacob Chapter 3 Operating Systems 3.1 Evolution of Operating Systems 3.2 Booting an Operating System 3.3 Operating System Architecture 3.4 References Chapter Overview Page 2 Chapter 3: Operating
More information