Partial preview of the text
Download Computer architecture and organization and more Slides Computer Architecture and Organization in PDF only on Docsity!
Introduction to Computer Organization and Architecture a Syllabus Topic : Introduction - Concept of Computer Organization and Architecture 1.1 Introduction : Concept of Computer Organization and Architecture ~ There are various people involved in making of a computer. The chip designer who designs and manufactures the chip, the system designer who designs the system using the manufactured chip or microprocessor and the programmer who makes software using the system. — Those attributes of a computer that are necessary to be known to a system designer or a programmer are called as the architectural features of the computer, Hence, the people manufacturing the chip have to reveal certain things about the processor to the system designer and the programmer using the datasheets for their processor chips. — — Those attribute of a-computer or moreover the Processor, that ate just used for the designing purposes of the processor and are not revealed are called as the organizational features of the processor, 1. | Itrefers to those attributes | It refers to the of a system visible to the | implementation of these programmer. features and is mostly not known to the user, 2. | Instruction set, number of | Control signals, interfaces, bits used for data memory technology etc, representation, addressing | form the part of the techniques etc. form the computer organization, part of computer architecture. 3. | For example, is there a For example, is there a multiply instruction? dedicated hardware multiply unit or it is done by repeated addition? 4. | AIINTEL 80x86 AILINTEL 80x86 microprocessors share the microprocessors differ in |__| same basic architecture, their organization. Syllabus Topic : Fundamental Unit Se Ee 1.2_ Fundamental Unit - Structural components of a computer WF computer Architecture & Organization (Dr. BATU) 1-2 Introduction to Computer Organization and Architecture data, and the Input / Output (/O) devices. The functions of these are explained below : Computer Pefipheral Fig, 1.2.1 : Structure of a computer (i) The components of a computer are central processing unit. Input and Output (1/0) devices and memory. (ii) The three units are connected with the help of system interconnection i.e. buses. (iii) Memory is used to store code (programs) and data. It can be various kinds of like semiconductor memory using ICs. magnetic memory or optical memory etc (iv) I/O devices are used to accept 4 inpul or give an output by the CPU. There are various input devices like keyboard, mouse. scanner; and various output devices like CRT. printer etc (v) The CPU is further divided into three units as shown jn the Fig. 1.2.2. The components of the Central Processing Unit (CPU) are Arithmetic and Logic Unit (ALU), Control Unit (CU) and (vi) CPU Registers, which are also connected with the internal buses. (vii) ALU is used to perform arithmetic operations like addition, subtraction etc. and logical operations such as AND, OR ete. (Computer Conirot Uni Fig. 1.2.2 : Structure ofa CPU (viii) CPU Registers are used to store the data temporarily in the CPU to save memory access time. (Gx) The CU is further divided in three parts as shown in Control Unit f contr Unit Registors and Bosodors - Comme! Memory (OU Mammary} 2.3: Structure of control unit (x) Control Unit comprises of control memory, control unit register and sequencing logic. The control memory stores the microinstructions loads it into (xi) the control unit register and the sequencing logic gives these signals in a proper sequence to execute a instruction. Syllabus Topic : Computer Function and Interconnection 1.38. Computer Function and Interconnection $ Functional view of a computer (i) It is the operation of the individual component as the part of the structure. Gi) The functions of a computer are data processing, data storage, data movement and control. Gii) There can be various paths followed by the data as shown in the Fig. 1.3.1. They can be: the data may be taken into the processor from the input device, processed and then the result may be given at the output device; the data may be taken into. the processor from the input device, processed and the result stored in memory; the data may be taken from smemory, / processed and the result given to output device; the data taken from an input device and given.to an output device etc, ai, Computer Architecture & Organization (Dr. BATU) 1-4 Introduction to Computer Organization and Architecture The devices input the data accepted from the user in a proper coded form understood by the computer. 2. Output unit The result is given back by the computer to the user through an output device. Input devices and output devices are also called as human interface devices, because they are used to interface the human to the computer. The mainly used output devices are monitor and printer. But there are many other output devices like plotter, speaker etc. 3. Arithmetic and Logic Unit (ALU) Arithmetic or logic operations like multiplication, addition, division, AND, OR, EXOR etc. are performed by ALU. Operands are brought into the ALU, where the necessary operation is performed. 4. Control unit The control unit as we know is the main unit that controls all the operations of the system, inside and outside the processor. The memory or I/O devices have to be controlled by the computer to perform the operation according to the instruction given to it. 5. Memory unit Memory is used to store the programs and data for the computer. The instructions from the programs are taken by the processor, decoded and executed accordingly. The data is also stored in the memory. The data is taken from memory and the operation is performed on that data, as well as the results are stored in the memory. In some cases the input to an operation and the result may also be from input and output devices(Memery in the Von Neumann system has a special organization wherein the data and instructions are stored in the same memory.) Key features of a Von Neumann machine The Von Neumann machine uses stored program concept. The program and data are stored in the same memory unit. Each location of the memory has a unique address i.e. no two locations have the same memory address. — Execution of instruction in Von Neumann machine is carried out in a sequential manner (unless explicitly altered by the program itself) from one instruction to the next. & Detailed structure of the CPU The block diagram of the computer proposed by Von Neumann have a minimal number of registers along with the above blocks. This computer has a small set of instruction and an instruction was allowed to contain only one operand address. Fig. 1.4.3 gives the detailed structure of IAS CPU. The structure shown in Fig. 1.4.3 consists of the following registers. => Accumulator (AC) It normally provides one of the. operand to ALU and stores the result. > Data Register (DR) It acts as buffer storage between the CPU and the main memory or I/O devices. Program control unit Tottrom main memory or inputfoutput davies [E> Control ‘signals Fig. 1.4.3 : Structure of the CPU => Program Counter (PC) It always contains the address ‘of the next instruction to be executed. => Instruction Register (IR) Jt holds the current instruction i.e. the opcode and operand of the instruction to be executed. . a WF Computer Architecture & Organization (Dr. BATU) 1-5 Intro , organization and Architectur, duction to Compute => Memory Address Register (MAR) The address from which: the data or instruction is to be fetched is provided by the processor through MAR. It also is used to forward the address of memory location where data is to be stored. = Execution of a program by Von Neumann machine The program to be executed is stored in memory. — A register, PC (Program counter) always points to the first instruction of the program when the computer starts. CPU fetches the instruction pointed by PC. PC contents are automatically incremented to point to the next instruction. If the initial value of PC = 0000 (in binary), first instruction be fetched for execution. After fetching “Instruction number 1”, PC will be incremented by one. It is assumed that the size of each instruction is 1 byte. PC+1=0+1=1 Instruction Pointed by PC is fetched Memory en 0000 0001 0010 PC Is Incremented to point to next Instruction Fig. 1.4.4 : Instruction pointed by PC is fetched by the CPU for execution. Subsequently PC is made to point to the next instruction Fetching an instruction — CPU interacts with memory through two special registers : (1) MAR (Memory Address Register) (2) DR Data Register) () MAR (Memory Address Register) It provides address of memory location from where data or instruction: is to be'retrieved or to-which data is to be stored. > 2 DR (Data Register) It acts as buffer storage between the malt! memory ag [tae the CPU. he function and operation of these registers wilt iv - The fun understood by the example below. ted is brought from the memory tg The instruction to be exec ing steps < the CPU, through the follow e addiess of the instruction is transferred from PC ty (1) Th MAR. MAR ¢- PC (2). MAR puts this address on the address bus for selection of the required location of the memiory, Control Unit generates the RD (read control sigtal) signal to perform read operation on memoty. Required instruction is giver on data bus by the memory, Instruction, oni data bus is accepted in DR. Data (3) Register). Execution of instruction — The fetched instruction is ini the form of binary cade and {s_ loaded ‘into Instruction Register GR) from DR (Data Register). The instruction specifies what action the CPU hids to take, The CPU interprets the-instruction and performs: the requited action. The action could be : a) 2) @) Data transfer Between CPU and memory, Data transfer between CPU and 1/0, on data, 1.4.2 Harvard Architecture — Fig. 14.5 Fig. 1.4.5 shows the connecti nection for Hy; fer architecture, arvard coma The name is originated fri Mark l” a relay based old computer, The CPU may perform an arithmetic or logic operation om Harvard's, “Harvard if Computer Architecture & Organization (Dr. BATU) multiply instruction? multiply unit or it is done by repeated addition? 4. | AILINTEL 80x86 All INTEL 80x86 microprocessors share the | microprocessors differ in same basic architecture. their organization. 4 Explain the functional overview of Computer. Ans. : Functional view of a computer @ Gi) (iii) Gy) It is the operation of the individual component as the part of the structure. The functions of a computer are data processing, data storage, data movement and control. There can be vatious paths followed by the data as shown in the Fig. 1-Q.4. They can be: the data may be taken into the processor from the input device, processed and then the result may be given at the output device; the data may be taken into the processor from the input device, processed and the result stored in memory; the data may be taken from memory, processed and the result given to output device; the data taken from an input device and given to an output device etc, In Fig. 1-Q.4, we can see that the computer is divided into three main components namely data storage facility, data movement facility and the data processing facility. These are the different functions can perform a computer. Operating Environment (source and destination of data) Fig. 1-Q4: Functional view of a computer,