Download Unit-1

Total Page:16

File Type:pdf, Size:1020Kb

Download Unit-1 UNIT-1. Basic Structure of Computer Hardware and Software EduTechLearners (http://www.edutechlearners.com) COMPUTER ORGANISATION AND ARCHITECTURE The components from which computers are built, i.e., computer organization. In contrast, computer architecture is the science of integrating those components to achieve a level of functionality and performance. It is as if computer organization examines the lumber, bricks, nails, and other building material While computer architecture looks at the design of the house. http://www.edutechlearners.com 2 UNIT-1 CONTENTS • Evolution of Computer Systems (Historical Prospp)ective) • Computer Types • Functional units • Bus structures • Register Transfer and Micro-operations • Information Representation • Instruction Format and Types • Addressing modes • Machine and Assembly Language Programming • Macros and Subroutines http://www.edutechlearners.com 3 HISTORICAL PROSPECTIVE Brief History of Computer Evolution Two phases: 1. be fore VLSI 1945 – 197 8 ENIAC IAS IBM PDP-8 2. VLSI 1978 present day microprocessors AND microcontrollers… http://www.edutechlearners.com 4 Evolution of Computers FIRST GENERATION (1945 – 1955) Program and data reside in the same memory (stored program concepts – John von Neumann) ALP was made used to write programs Vacuum tubes were used to implement the functions (ALU & CU design) Magnetic core and magnetic tape storage devices are used Using electronic vacuum tubes, as the switching components http://www.edutechlearners.com 5 SECOND GENERATION (1955 – 1965) Transistor were used to design ALU & CU HLL is used (FORTRAN) To convert HLL to MLL compiler were used Separate I/O processor were developed to operate in parallel with CPU, thus improving the performance Invention of the transistor which was faster, smaller and required considerably less power to operate http://www.edutechlearners.com 6 THIRD GENERATION (1965-1975) IC technology improved Improved IC technology helped in designing low cost, high speed processor and memory modldules Multiprogramming, pipelining concepts were incorporated DOS allowed efficient and coordinate operation of computer system with multiple users ChCacheand vitirtua l memory conceptswere developed More than one circuit on a single silicon chip became available http://www.edutechlearners.com 7 FOURTH GENERATION (1975- 1985) CPU – Termed as microprocessor INTEL, MOTOROLA, TEXAS,NATIONAL semiconductors started developing microprocessor Workstations, microprocessor (PC) & Notebook computers were developed Interconnection of different computer for better communication LAN,MAN,WAN CttilComputational speed idincreased by 1000 times Specialized processors like Digital Signal Processor were also developed http://www.edutechlearners.com 8 BEYOND THE FOURTH GENERATION (1985 – TILL DATE) E-Commerce, E- banking, home office ARM, AMD, INTEL, MOTOROLA Hig h speed processor - GHz speed Because of submicron IC technology lot of added features in small size http://www.edutechlearners.com 9 COMPUTER TYPES Computers are classified based on the parameters like SdfSpeed of opera tion Cost Computational power Type of application http://www.edutechlearners.com 10 DESK TOP COMPUTER Processing & storage units, visual display &audio units, keyboards Storage media-Hard disks, CD-ROMs Eg: Personal computers which is used in homes and offices Advantage: Cost effective, easy to operate, suitable for general purpose educational or business application NOTEBOOK COMPUTER Compact form of personal computer (laptop) Advantage is portability http://www.edutechlearners.com 11 WORK STATIONS • More computational power than PC •Costlier •Used to solve complex problems which arises in engineering application (graphics, CAD/CAM etc) ENTERPRISE SYSTEM (MAINFRAME) •MttilMore computational power •Larger storage capacity •Used for business data ppgggrocessing in large organization •Commonly referred as servers or super computers http://www.edutechlearners.com 12 SERVER SYSTEM • Supports large volumes of data which frequently need to be accessed or to be modified •Supports request response operation SUPER COMPUTERS •Faster than mainframes •HlHelps in ca lcu lat ing large sca le numer ica l an d a lgor ihithm calculation in short span of time •Used for aircraft desiggg,yppn and testing, military application and weather forecasting http://www.edutechlearners.com 13 HANDHELD Also called a PDA (Personal Digital Assistant). A computer that fits into a pocket, runs on batteries, and is used while holding the unit in your hand. Typically used as an appointment book, address book, calculator, and notdtepad. Can be synchronized with a personal microcomputer as a backup. http://www.edutechlearners.com 14 BiTBasic Term ilinology Computer Software A device that accepts input, A computer program that tells processes data, stores data, the computer how to perform and produces output, all particular tasks. according to a series of stored instructions. Network Two or more computers and Hardware other devices that are Includes the electronic and connected, for the purpose of mechanical devices that sharing data and programs. process the data; refers to the compppputer as well as peripheral devices. PihPeripheral ldi devices Used to expand the computer’s input, output and storaggpe capabilities. http://www.edutechlearners.com 15 BiTBasic Term ilinology Input Whatever is put into a computer system. Data Refers to the symbols that represent facts, objects, or ideas. Information The results of the computer storing data as bits and bytes; the words, numbers, sounds, and graphics. Output Consists of the processing results produced by a computer. Processing Manipulation of the data in many ways. Memory Area of the computer that temporarily holds data waiting to be processed, stored, or output. Storage Area of the computer that holds data on a permanent basis when it is not immediately needed for processing. http://www.edutechlearners.com 16 Basic Terminology •Assemblyyggpg( language program (ALP) – Programs are written using mnemonics •Mnemonic – Instruction will be in the form of English like form •AblAssembler – is a so ftware w hic h conver ts ALP to MLL (Machine Level Language) •HLL (High Level Language) – Programs are written using English like statements •Compiler - Convert HLL to MLL, does this job by reading 17 source program at once BiTBasic Term ilinology •Interp rete r – Conv er ts HLL to MLL , does t his job statement by statement •System software – Program routines which aid the user in the execution of programs eg: Assemblers, Compilers •Operating system – Collection of routines resppggonsible for controlling and coordinating all the activities in a computer system http://www.edutechlearners.com 18 Functional Units IMPORTANT FtiFunction SLIDE ! ALL computer functions are: Data PROCESSING Data STORAGE Data = Information Data MOVEMENT CONTROL Coordinates How Information is Used NOTHING ELSE! http://www.edutechlearners.com 20 FtilUitFunctional Units Arithmetic Input and logic Memory Output Control I/O Processor System Interconnections Figure 1.1. Basic functional units of a computer. http://www.edutechlearners.com 21 INPUT UNIT • Computer accepts the coded information through input unit. • It has the cappyability of reading the instruction & data to be processed. • Converts the external world data to a binary format, which can be understood by CPU. • Eg: Keyboard, Mouse, Joystick etc http://www.edutechlearners.com 22 FtilFunctional Un it(I/O) A computer handles two types of information : Instruction : . An instruction controls the transfer of information between a computer and its I/O devices and also within the computer. A list of instructions that performs a task is called a program, which is stored in the memory. To execute a program, computer fetches the instructions one by one and specifies the arithmetic and logical operations to be performed which are needed for the desired program. A computer is completely controlled by the stored programs except any external interrupts comes from any I/O device. http://www.edutechlearners.com 23 Functi onal U nit(I/O) Data : . Data is a kind of information which is used as an operand for a program. SdtSo, data can be any numbhtber or character. Even, a list of instructions, means an entire program can be data if it is processed by another high-level program. In such case, that data is called source program. The most well-known input device is the keyboard, beside this, th er e ar e m an y oth er kin ds of in put devices are available, i.e., mouses, joysticks etc. http://www.edutechlearners.com 24 OUTPUT UNIT • Converts the binary format data to a format that a common man can understand • Displays the processed results. • Eg: Monitor, Printer, LCD, LED etc http://www.edutechlearners.com 25 MEMORY UNIT Composed of large array of bytes. Store programs and data . Parts of the memory subsystem Fetch/store controller Fetch: Retrieve a value from memory Store: Store a value into memory Memory address register (MAR) Memory data register (MDR) Memory cells with decoder(s) to select individual http://www.edutechlearners.com 26 cells TfMUitTypes of Memory Unit Primary storage Fast and Direct Access Programs must be stored in memory while they are being executed. Large number of semiconductor storage cells. RAM and ROM Secondary storage used for bulk storage or mass storage. Indirect Access and slow. Magnetic Harddisks, CDs. Etc. http://www.edutechlearners.com
Recommended publications
  • Computer Organization and Architecture Designing for Performance Ninth Edition
    COMPUTER ORGANIZATION AND ARCHITECTURE DESIGNING FOR PERFORMANCE NINTH EDITION William Stallings Boston Columbus Indianapolis New York San Francisco Upper Saddle River Amsterdam Cape Town Dubai London Madrid Milan Munich Paris Montréal Toronto Delhi Mexico City São Paulo Sydney Hong Kong Seoul Singapore Taipei Tokyo Editorial Director: Marcia Horton Designer: Bruce Kenselaar Executive Editor: Tracy Dunkelberger Manager, Visual Research: Karen Sanatar Associate Editor: Carole Snyder Manager, Rights and Permissions: Mike Joyce Director of Marketing: Patrice Jones Text Permission Coordinator: Jen Roach Marketing Manager: Yez Alayan Cover Art: Charles Bowman/Robert Harding Marketing Coordinator: Kathryn Ferranti Lead Media Project Manager: Daniel Sandin Marketing Assistant: Emma Snider Full-Service Project Management: Shiny Rajesh/ Director of Production: Vince O’Brien Integra Software Services Pvt. Ltd. Managing Editor: Jeff Holcomb Composition: Integra Software Services Pvt. Ltd. Production Project Manager: Kayla Smith-Tarbox Printer/Binder: Edward Brothers Production Editor: Pat Brown Cover Printer: Lehigh-Phoenix Color/Hagerstown Manufacturing Buyer: Pat Brown Text Font: Times Ten-Roman Creative Director: Jayne Conte Credits: Figure 2.14: reprinted with permission from The Computer Language Company, Inc. Figure 17.10: Buyya, Rajkumar, High-Performance Cluster Computing: Architectures and Systems, Vol I, 1st edition, ©1999. Reprinted and Electronically reproduced by permission of Pearson Education, Inc. Upper Saddle River, New Jersey, Figure 17.11: Reprinted with permission from Ethernet Alliance. Credits and acknowledgments borrowed from other sources and reproduced, with permission, in this textbook appear on the appropriate page within text. Copyright © 2013, 2010, 2006 by Pearson Education, Inc., publishing as Prentice Hall. All rights reserved. Manufactured in the United States of America.
    [Show full text]
  • Please Replace the Following Pages in the Book. 26 Microcontroller Theory and Applications with the PIC18F
    Please replace the following pages in the book. 26 Microcontroller Theory and Applications with the PIC18F Before Push After Push Stack Stack 16-bit Register 0120 143E 20C2 16-bit Register 0120 SP 20CA SP 20C8 143E 20C2 0703 20C4 0703 20C4 F601 20C6 F601 20C6 0706 20C8 0706 20C8 0120 20CA 20CA 20CC 20CC 20CE 20CE Bottom of Stack FIGURE 2.12 PUSH operation when accessing a stack from the bottom Before POP After POP Stack 16-bit Register A286 16-bit Register 0360 Stack 143E 20C2 SP 20C8 SP 20CA 143E 20C2 0705 20C4 0705 20C4 F208 20C6 F208 20C6 0107 20C8 0107 20C8 A286 20CA A286 20CA 20CC 20CC Bottom of Stack FIGURE 2.13 POP operation when accessing a stack from the bottom Note that the stack is a LIFO (last in, first out) memory. As mentioned earlier, a stack is typically used during subroutine CALLs. The CPU automatically PUSHes the return address onto a stack after executing a subroutine CALL instruction in the main program. After executing a RETURN from a subroutine instruction (placed by the programmer as the last instruction of the subroutine), the CPU automatically POPs the return address from the stack (previously PUSHed) and then returns control to the main program. Note that the PIC18F accesses the stack from the top. This means that the stack pointer in the PIC18F holds the address of the bottom of the stack. Hence, in the PIC18F, the stack pointer is incremented after a PUSH, and decremented after a POP. 2.3.2 Control Unit The main purpose of the control unit is to read and decode instructions from the program memory.
    [Show full text]
  • Register Are Used to Quickly Accept, Store, and Transfer Data And
    Register are used to quickly accept, store, and transfer data and instructions that are being used immediately by the CPU, there are various types of Registers those are used for various purpose. Among of the some Mostly used Registers named as AC or Accumulator, Data Register or DR, the AR or Address Register, program counter (PC), Memory Data Register (MDR) ,Index register,Memory Buffer Register. These Registers are used for performing the various Operations. While we are working on the System then these Registers are used by the CPU for Performing the Operations. When We Gives Some Input to the System then the Input will be Stored into the Registers and When the System will gives us the Results after Processing then the Result will also be from the Registers. So that they are used by the CPU for Processing the Data which is given by the User. Registers Perform:- 1) Fetch: The Fetch Operation is used for taking the instructions those are given by the user and the Instructions those are stored into the Main Memory will be fetch by using Registers. 2) Decode: The Decode Operation is used for interpreting the Instructions means the Instructions are decoded means the CPU will find out which Operation is to be performed on the Instructions. 3) Execute: The Execute Operation is performed by the CPU. And Results those are produced by the CPU are then Stored into the Memory and after that they are displayed on the user Screen. Types of Registers are as Followings 1. MAR stand for Memory Address Register This register holds the memory addresses of data and instructions.
    [Show full text]
  • Computer Organization
    Chapter 12 Computer Organization Central Processing Unit (CPU) • Data section ‣ Receives data from and sends data to the main memory subsystem and I/O devices • Control section ‣ Issues the control signals to the data section and the other components of the computer system Figure 12.1 CPU Input Data Control Main Output device section section Memory device Bus Data flow Control CPU components • 16-bit memory address register (MAR) ‣ 8-bit MARA and 8-bit MARB • 8-bit memory data register (MDR) • 8-bit multiplexers ‣ AMux, CMux, MDRMux ‣ 0 on control line routes left input ‣ 1 on control line routes right input Control signals • Originate from the control section on the right (not shown in Figure 12.2) • Two kinds of control signals ‣ Clock signals end in “Ck” to load data into registers with a clock pulse ‣ Signals that do not end in “Ck” to set up the data flow before each clock pulse arrives 0 1 8 14 15 22 23 A IR T3 M1 0x00 0x01 2 3 9 10 16 17 24 25 LoadCk Figure 12.2 X T4 M2 0x02 0x03 4 5 11 18 19 26 27 5 C SP T1 T5 M3 0x04 0x08 5 6 7 12 13 20 21 28 29 B PC T2 T6 M4 0xFA 0xFC 5 30 31 A CPU registers M5 0xFE 0xFF CBus ABus BBus Bus MARB MARCk MARA MDRCk MDR MDRMux AMux AMux MDRMux CMux 4 ALU ALU CMux Cin Cout C CCk Mem V VCk ANDZ Addr ANDZ Z ZCk Zout 0 Data 0 0 0 N NCk MemWrite MemRead Figure 12.2 (Expanded) 0 1 8 14 15 22 23 A IR T3 M1 0x00 0x01 2 3 9 10 16 17 24 25 LoadCk X T4 M2 0x02 0x03 4 5 11 18 19 26 27 5 C SP T1 T5 M3 0x04 0x08 5 6 7 12 13 20 21 28 29 B PC T2 T6 M4 0xFA 0xFC 5 30 31 A CPU registers M5 0xFE 0xFF CBus ABus BBus
    [Show full text]
  • Computer Organization and Architecture, Rajaram & Radhakrishan, PHI
    CHAPTER I CONTENTS: 1.1 INTRODUCTION 1.2 STORED PROGRAM ORGANIZATION 1.3 INDIRECT ADDRESS 1.4 COMPUTER REGISTERS 1.5 COMMON BUS SYSTEM SUMMARY SELF ASSESSMENT OBJECTIVE: In this chapter we are concerned with basic architecture and the different operations related to explain the proper functioning of the computer. Also how we can specify the operations with the help of different instructions. CHAPTER II CONTENTS: 2.1 REGISTER TRANSFER LANGUAGE 2.2 REGISTER TRANSFER 2.3 BUS AND MEMORY TRANSFERS 2.4 ARITHMETIC MICRO OPERATIONS 2.5 LOGIC MICROOPERATIONS 2.6 SHIFT MICRO OPERATIONS SUMMARY SELF ASSESSMENT OBJECTIVE: Here the concept of digital hardware modules is discussed. Size and complexity of the system can be varied as per the requirement of today. The interconnection of various modules is explained in the text. The way by which data is transferred from one register to another is called micro operation. Different micro operations are explained in the chapter. CHAPTER III CONTENTS: 3.1 INTRODUCTION 3.2 TIMING AND CONTROL 3.3 INSTRUCTION CYCLE 3.4 MEMORY-REFERENCE INSTRUCTIONS 3.5 INPUT-OUTPUT AND INTERRUPT SUMMARY SELF ASSESSMENT OBJECTIVE: There are various instructions with the help of which we can transfer the data from one place to another and manipulate the data as per our requirement. In this chapter we have included all the instructions, how they are being identified by the computer, what are their formats and many more details regarding the instructions. CHAPTER IV CONTENTS: 4.1 INTRODUCTION 4.2 ADDRESS SEQUENCING 4.3 MICROPROGRAM EXAMPLE 4.4 DESIGN OF CONTROL UNIT SUMMARY SELF ASSESSMENT OBJECTIVE: Various examples of micro programs are discussed in this chapter.
    [Show full text]
  • Chapter 2 - Computer Evolution and Performance
    Chapter 2 - Computer Evolution and Performance A Brief History of Computers (Section 2.1) on pp. 16-38 Let's take a quick look at the history of computers so that we know where it all began. Further, we will find that most things have dramatically changed while some have not. ENIAC (Electronic Numerical Integrator and Computer) Designed by: John Mauchly and John Presper Eckert Reason: Response to wartime needs Completed: 1946 Specifics: 30 tons, 15,000 sq ft, 18000 vacuum tubes, 5000 additions/sec decimal machine with 20 accumulators each accumulator could hold a 10-digit decimal number Programming the ENIAC involved plugging and unplugging cables. If however, the program could be stored somehow and held in memory along with the data, this process would not be necessary. This is known as the "stored-program concept." Much of the credit was given to John von Neumann who helped engineer a computer (IAS) that utilized this concept and was completed in 1952. What is amazing is that today, most computers have the same general structure and function. Wow!! IAS Computer Designed by: John von Neumann Reason: Incorporate the stored-program concept Completed: 1952 Specifics: 1000 words (40-bit words) of storage, both data and instructions are stored, binary representations A word of storage can represent either an instruction or a number. The format for each is as follows: Number: bit 0 is sign bit, bits 1-39 are the number Instruction: bits 0-7 opcode of left instruction bits 8-19 address of one of the words of memory bits 20-27 opcode of right instruction bits 28-39 address of one of the words of memory Note: An instruction word really contains two instructions (left and right instructions).
    [Show full text]
  • Chapter 4 Objectives
    Chapter 4 Objectives • Learn the components common to every modern computer system. • Be able to explain how each component Chapter 4 contributes to program execution. MARIE: An Introduction • Understand a simple architecture invented to to a Simple Computer illuminate these basic concepts, and how it relates to some real architectures. • Know how the program assembly process works. 2 4.1 Introduction 4.2 CPU Basics • Chapter 1 presented a general overview of • The computer’s CPU fetches, decodes, and computer systems. executes program instructions. • In Chapter 2, we discussed how data is stored and • The two principal parts of the CPU are the datapath manipulated by various computer system and the control unit. components. – The datapath consists of an arithmetic-logic unit and • Chapter 3 described the fundamental components storage units (registers) that are interconnected by a data of digital circuits. bus that is also connected to main memory. • Having this background, we can now understand – Various CPU components perform sequenced operations how computer components work, and how they fit according to signals provided by its control unit. together to create useful computer systems. 3 4 4.2 CPU Basics 4.3 The Bus • Registers hold data that can be readily accessed by • The CPU shares data with other system components the CPU. by way of a data bus. • They can be implemented using D flip-flops. – A bus is a set of wires that simultaneously convey a single bit along each line. – A 32-bit register requires 32 D flip-flops. • Two types of buses are commonly found in computer • The arithmetic-logic unit (ALU) carries out logical and systems: point-to-point, and multipoint buses.
    [Show full text]
  • (ISA) Evolution of Instruction Sets Instructions
    Computer Architecture’s Appendix B Changing Definition • 1950s to 1960s: Computer Architecture Course = Computer Arithmetic • 1970s to mid 1980s: Instruction Set Principles Computer Architecture Course = Instruction Set and Examples Design, especially ISA appropriate for compilers • 1990s: Computer Architecture Course = Design of CPU, memory system, I/O system, Multiprocessors 1 2 Instruction Set Architecture Evolution of Instruction Sets (ISA) Single Accumulator (EDSAC 1950) Accumulator + Index Registers (Manchester Mark I, IBM 700 series 1953) software Separation of Programming Model from Implementation instruction set High-level Language Based Concept of a Family (B5000 1963) (IBM 360 1964) General Purpose Register Machines hardware Complex Instruction Sets Load/Store Architecture (Vax, Intel 432 1977-80) (CDC 6600, Cray 1 1963-76) RISC (Mips,Sparc,HP-PA,IBM RS6000,PowerPC . .1987) 3 4 LIW/”EPIC”? (IA-64. .1999) Instructions Can Be Divided into Classifying ISAs 3 Classes (I) Accumulator (before 1960): • Data movement instructions 1 address add A acc <− acc + mem[A] – Move data from a memory location or register to another Stack (1960s to 1970s): memory location or register without changing its form 0 address add tos <− tos + next – Load—source is memory and destination is register – Store—source is register and destination is memory Memory-Memory (1970s to 1980s): 2 address add A, B mem[A] <− mem[A] + mem[B] • Arithmetic and logic (ALU) instructions 3 address add A, B, C mem[A] <− mem[B] + mem[C] – Change the form of one or more operands to produce a result stored in another location Register-Memory (1970s to present): 2 address add R1, A R1 <− R1 + mem[A] – Add, Sub, Shift, etc.
    [Show full text]
  • Memory Buffer Register (MBR)
    William Stallings Computer Organization and Architecture 10 th Edition Edited by Dr. George Lazik Chapter 1 + Basic Concepts and Computer Evolution © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved. Computer Architecture Computer Organization •Attributes of a system •Instruction set, number of visible to the bits used to represent programmer various data types, I/O •Have a direct impact on mechanisms, techniques the logical execution of a for addressing memory program Architectural Computer attributes Architecture include: Organizational Computer attributes Organization include: •Hardware details •The operational units and transparent to the their interconnections programmer, control that realize the signals, interfaces architectural between the computer specifications and peripherals, memory technology used © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved. + IBM System 370 Architecture IBM System/370 architecture Was introduced in 1970 Included a number of models Could upgrade to a more expensive, faster model without having to abandon original software New models are introduced with improved technology, but retain the same architecture so that the customer’s software investment is protected Architecture has survived to this day as the architecture of IBM’s mainframe product line © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved. + Structure and Function Hierarchical system Structure Set of interrelated The way in which subsystems components relate to each other Hierarchical nature of complex systems is essential to both Function their design and their description The operation of individual components as part of the Designer need only deal with structure a particular level of the system at a time Concerned with structure and function at each level © 2016 Pearson Education, Inc., Hoboken, NJ.
    [Show full text]
  • Memory Buffer Register
    Philadelphia University Department of Computer Science By Dareen Hamoudeh 1.REGISTERS WHAT IS REGISTER? register is a quickly accessible location available to a computer's central processing unit (CPU). Register are used to quickly accept, store, and transfer data and instructions that are being used immediately by the CPU. Almost all computers, load data from a larger memory into registers where it is used for arithmetic operations and is manipulated or tested by machine instructions. Manipulated data is then often stored back to main memory. Processor registers are normally at the top of the memory hierarchy, and provide the fastest way to access data. A register may hold an instruction, a storage address, or any kind of data (such as a bit sequence or individual characters). WHERE IS THE LOCATION OF REGISTERS TYPES OF REGISTERS There are various types of Registers those are used for various purpose. Among of the some Mostly used Registers named as MAR: Memory Address Register AC : Accumulator. DR: Data Register. AR: Address Register. PC: Program counter. MDR: Memory Data Register. Index register Memory Buffer Register. http://ecomputernotes.com/fundamental/input-output-and-memory/what-is-registers-function-performed-by-registers-types-of-registers TYPES OF REGISTERS VIDEOS How CPU works: https://www.youtube.com/watch?v=cNN_tTXABUA Inside the CPU: https://www.youtube.com/watch?v=r9gLVYkQy3Q Inside Microchip: https://www.youtube.com/watch?v=GdqbLmdKgw4 REGISTER CONSTRUCTION. Registers are normally measured by the number of bits they can hold, for example, an “8-bit register” or a “32- bit register”. A register is simply is: a collection of edge triggered flip-flops( each is capable to store one bit only).
    [Show full text]
  • MARIE: an Introduction to a Simple Computer
    00068_CH04_Null.qxd 10/18/10 12:03 PM Page 195 “When you wish to produce a result by means of an instrument, do not allow yourself to complicate it.” —Leonardo da Vinci CHAPTER MARIE: An Introduction 4 to a Simple Computer 4.1 INTRODUCTION esigning a computer nowadays is a job for a computer engineer with plenty of Dtraining. It is impossible in an introductory textbook such as this (and in an introductory course in computer organization and architecture) to present every- thing necessary to design and build a working computer such as those we can buy today. However, in this chapter, we first look at a very simple computer called MARIE: a Machine Architecture that is Really Intuitive and Easy. We then pro- vide brief overviews of Intel and MIPs machines, two popular architectures reflecting the CISC and RISC design philosophies. The objective of this chapter is to give you an understanding of how a computer functions. We have, therefore, kept the architecture as uncomplicated as possible, following the advice in the opening quote by Leonardo da Vinci. 4.2 CPU BASICS AND ORGANIZATION From our studies in Chapter 2 (data representation) we know that a computer must manipulate binary-coded data. We also know from Chapter 3 that memory is used to store both data and program instructions (also in binary). Somehow, the program must be executed and the data must be processed correctly. The central processing unit (CPU) is responsible for fetching program instructions, decod- ing each instruction that is fetched, and performing the indicated sequence of operations on the correct data.
    [Show full text]
  • Instruction Set Architecture (I)
    Instruction Set Architecture (I) 1 Today’s Menu: ISA & Assembly Language Instruction Set Definition Registers and Memory Arithmetic Instructions Load/store Instructions Control Instructions Instruction Formats Example ISA: MIPS Summary 2 Instruction Set Architecture (ISA) Application Operating System Assembly Language ||| Compiler Instruction Set Architecture Microarchitecture I/O System ||| Digital Logic Design Machine Language Circuit Design 3 The Big Picture assembly language program Assembly Language Interface the architecture presents to user, compiler, & operating system Register File Program Counter “Low-level” instructions that use the datapath & memory to perform basic types of operations Instruction register arithmetic: add, sub, mul, div logical: and, or, shift data transfer: load, store ALU Contr ol Lo gic (un)conditional branch: jump, branch on condition Memory Address Register from memory 4 Software Layers High-level languages such as C, C++, FORTRAN, JAVA are translated into assembly code by a compiler Assembly language translated to machine language by assembler Executable for (j = 1; j < 10; j++){ (binary) a = a + b Compiler Register File Program Counter } Instruction register ADD R1, R2, R3 SUB R3, R2, R1 0010100101 ALU Contr ol Lo gic Assembler 0101010101 Memory Address Register Memory Data Register 5 Basic ISA Classes Memory to Memory Machines Can access memory directly in instructions: e.g., Mem[0] = Mem[1] + 1 But we need storage for temporaries Memory is slow (hard to optimize code) Memory
    [Show full text]