1 / 170

Computer Organization

Computer Organization. 18CS34 Prof . Anand S. Hiremath, Dept. of CSE, BLDEA’s CET, Vijayapur http://ashiremath.wordpress.com ashiremath@bldeacet.ac.in. Introduction. Pre-requisite C programming For Problem Solving (18CSP13/23) Basic Electronics (18ELN14/24 ). Introduction.

takara
Download Presentation

Computer Organization

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Computer Organization 18CS34 Prof. Anand S. Hiremath,Dept. of CSE, BLDEA’s CET, Vijayapur http://ashiremath.wordpress.com ashiremath@bldeacet.ac.in

  2. Introduction • Pre-requisite • C programming For Problem Solving (18CSP13/23) • Basic Electronics (18ELN14/24)

  3. Introduction • Introduction to digital 1s and 0s

  4. Introduction • Outcome Assessment Questions • What are the two numeric digits used to represent states in a digital system? • What are the two terms used to represent the two logic levels? • What is the abbreviation for binary digit?

  5. Introduction • Digital Signals • The transition between the two states is called an edge. • At dawn, when the signal proceeds from HIGH to LOW, it is considered a falling edge, or negative edge.

  6. Introduction • Need for Timing Digital • To show the relationship between changes at the input and changes at the output in order to demonstrate the operation of the system. • This means the logic states must be observed over time. • Timing diagrams show the relationship, over time, between many digital “signals.”

  7. Introduction • Analog and Digital Representations • Analog representation a quantity is represented by a continuously variable, proportional indicator. • E.g. • Speedometer • Thermometers • Digital representation the quantities are represented not by continuously variable indicators but by symbols called digits. • E.g. • Digital Speedometer • Digital indoor/outdoor thermometer • The major difference between analog and digital quantities, then, can be simply stated as follows: • Analog ≡ continuous • Digital ≡discrete (step by step)

  8. Introduction • Outcome Assessment Questions: • Which of the following involve analog quantities and which involve digital quantities? • (a) Elevation using a ladder • (b) Elevation using a ramp • (c) Current flowing from an electrical outlet through a motor • (d) Height of a child measured by a yard stick ruler • (e) Height of a child measured by putting a mark on the wall • (f) Amount of rocks in a bucket • (g) Amount of sand in a bucket • (h) Time of day using a sundial • (j) Time of day using your cell phone

  9. Introduction • Digital and Analog systems • A digital system is a combination of devices designed to manipulate logical information or physical quantities that are represented in digital form; that is, the quantities can take on only discrete values. • These devices are most often electronic, but they can also be mechanical, magnetic, or pneumatic. • An analog system contains devices that manipulate physical quantities that are represented in analog form. • In an analog system, the quantities can vary over a continuous range of values. • For example, the amplitude of the output signal to the speaker in a radio receiver can have any value between zero and its maximum limit.

  10. Introduction • Advantages of Digital Techniques • Digital systems are generally easier to design • Information storage is easy • Accuracy and precision are easier to maintain throughout the system • Operations can be programmed • Digital circuits are less affected by noise • More digital circuitry can be fabricated on IC chips

  11. Introduction • Limitations of Digital Techniques • The real world is analog and digitizing always introduces some error. Processing digitized signals takes time. • To take advantage of digital techniques when dealing with analog inputs and outputs, four steps must be followed: • 1. Convert the physical variable to an electrical signal (analog). • 2. Convert the electrical (analog) signal into digital form. • 3. Process (operate on) the digital information. • 4. Convert the digital outputs back to real-world analog form.

  12. Introduction Diagram of a precision digital temperature control system.

  13. Introduction • Digital Number Systems • Decimal System • The decimal system is composed of 10 numerals or symbols. These 10 symbols are 0, 1, 2, 3, 4, 5, 6, 7, 8, 9. The decimal system, also called the base-10. • Decimal position values as powers of 10.

  14. Introduction • Decimal Counting

  15. Introduction • Binary System • Unfortunately, the decimal number system does not lend itself to convenient implementation in digital systems. • For example, it is very difficult to design electronic equipment so that it can work with 10 different voltage levels (each one representing one decimal character, 0 through 9). • On the other hand, it is very easy to design simple, accurate electronic circuits that operate with only two voltage levels. • For this reason, almost every digital system uses the binary (base-2) number system as the basic number system of its operations

  16. Introduction • Binary System • Binary position values as powers of 2.

  17. Introduction • Binary Counting

  18. Introduction • Parallel and Serial Transmission

  19. Introduction • Parallel and Serial Transmission • Parallel transmission uses one connecting line per bit, and all bits are transmitted simultaneously; • Serial transmission uses only one signal line, and the individual bits are transmitted serially (one at a time).

  20. Introduction • Memory • Difference between non-memory and memory circuits

  21. Introduction • Memory • When an input signal is applied to most devices or circuits, the output somehow changes in response to the input, and when the input signal is removed, the output returns to its original state. These circuits do not exhibit the property of memory because their outputs revert back to normal. • Certain types of devices and circuits do have memory. When an input is applied to such a circuit, the output will change its state, but it will remain in the new state even after the input is removed. This property of retaining its response to a momentary input is called memory.

  22. Introduction • Digital Computers

  23. Introduction • Digital Computers • Major Parts of a Computer • Input unit • Output unit • Memory unit • Arithmetic/logic unit • Control unit

  24. Module-1. Basic Structure of Computers,Machine Instructions and Programs

  25. Referred Books • Text Books: • Carl Hamacher, ZvonkoVranesic, SafwatZaky: Computer Organization, 5th Edition, Tata McGraw Hill, 2002. • Carl Hamacher, ZvonkoVranesic, SafwatZaky, NaraigManjikian : Computer Organization and Embedded Systems, 6th Edition, Tata McGraw Hill, 2012. • Reference Books: • William Stallings: Computer Organization & Architecture, 9th Edition, Pearson, 2015.

  26. The Computer Revolution • Progress in computer technology • Underpinned by Moore’s Law • Makes novel applications feasible • Computers in automobiles • Cell phones • Human genome project • World Wide Web • Search Engines • Computers are universal

  27. Classes of Computers • Desktop/laptop computers • General purpose, variety of software • Subject to cost/performance tradeoff • Workstations • More computing power used in engg. applications, graphics etc. • Enterprise System/ Mainframes • Used for business data processing • Server computers (Low End Range) • Network based • High capacity, performance, reliability • Range from small servers to building sized • Supercomputer (High End Range) • Large scale numerical calculation such as weather forecasting, aircraft design • Embedded computers • Hidden as components of systems • Stringent power/performance/cost constraints

  28. What You Will Learn • How programs are translated into the machine language • And how the hardware executes them • The hardware/software interface • What determines program performance • And how it can be improved • How hardware designers improve performance

  29. Understanding Performance • Algorithm • Determines number of operations executed • Programming language, compiler, architecture • Determine number of machine instructions executed per operation • Processor and memory system • Determine how fast instructions are executed • I/O system (including OS) • Determines how fast I/O operations are executed

  30. Functional Units

  31. Functional Units Arithmetic and Input logic Memory Output Control I/O Processor Figure 1.1. Basic functional units of a computer.

  32. Information Handled by a Computer • Instructions/machine instructions • Govern the transfer of information within a computer as well as between the computer and its I/O devices • Specify the arithmetic and logic operations to be performed • Program • Data • Used as operands by the instructions • Source program • Encoded in binary code – 0 and 1

  33. Memory Unit • Store programs and data • Two classes of storage • Primary storage • Fast • Programs must be stored in memory while they are being executed • Large number of semiconductor storage cells • Processed in words • Address • RAM and memory access time • Memory hierarchy – cache, main memory • Secondary storage – larger and cheaper

  34. Arithmetic and Logic Unit (ALU) • Most computer operations are executed in ALU of the processor. • Load the operands into memory • bring them to the processor • perform operation in ALU • store the result back to memory or retain in the processor. • Registers • Fast control of ALU

  35. Control Unit • All computer operations are controlled by the control unit. • The timing signals that govern the I/O transfers are also generated by the control unit. • Control unit is usually distributed throughout the machine instead of standing alone.

  36. The operations of a computer • The computer accepts information in the form of programs and data through an input unit and stores it in the memory. • Information stored in the memory is fetched under program control into an arithmetic and logic unit, where it is processed. • Processed information leaves the computer through an output unit. • All activities in the computer are directed by the control unit.

  37. Basic Operational Concepts

  38. Review • Activity in a computer is governed by instructions. • To perform a task, an appropriate program consisting of a list of instructions is stored in the memory. • Individual instructions are brought from the memory into the processor, which executes the specified operations. • Data to be used as operands are also stored in the memory.

  39. A Typical Instruction • Add LOCA, R0 • Add the operand at memory location LOCA to the operand in a register R0 in the processor. • Place the sum into register R0. • The original contents of LOCA are preserved. • The original contents of R0 is overwritten. • Instruction is fetched from the memory into the processor – the operand at LOCA is fetched and added to the contents of R0 – the resulting sum is stored in register R0.

  40. Separate Memory Access and ALU Operation • Load LOCA, R1 • Add R1, R0 • Whose contents will be overwritten?

  41. Memory MAR MDR Control R PC 0 R 1 Processor IR ALU R n - 1 n- general purpose registers Connections between the processor and the memory. Connection Between the Processor and the Memory

  42. Registers • Instruction register (IR) • Program counter (PC) • General-purpose register (R0 – Rn-1) • Memory address register (MAR) • Memory data register (MDR)

  43. Typical Operating Steps • Programs reside in the memory through input devices • PC is set to point to the first instruction • The contents of PC are transferred to MAR • A Read signal is sent to the memory • The first instruction is read out and loaded into MDR • The contents of MDR are transferred to IR • Decode and execute the instruction

  44. Typical Operating Steps (Cont’) • Get operands for ALU • General-purpose register • Memory (address to MAR – Read – MDR to ALU) • Perform operation in ALU • Store the result back • To general-purpose register • To memory (address to MAR, result to MDR – Write) • During the execution, PC is incremented to the next instruction

  45. Interrupt • Normal execution of programs may be preempted if some device requires urgent servicing. • The normal execution of the current program must be interrupted – the device raises an interrupt signal. • Interrupt-service routine • Current system information backup and restore (PC, general-purpose registers, control information, specific information)

  46. Bus Structures • There are many ways to connect different parts inside a computer together. • A group of lines that serves as a connecting path for several devices is called a bus. • Address/data/control

  47. Bus Structure • Single-bus Input Output Memory Processor Figure 1.3. Single-bus structure. • Multiple Buses

  48. Speed Issue • Different devices have different transfer/operate speed. • If the speed of bus is bounded by the slowest device connected to it, the efficiency will be very low. • How to solve this? • A common approach – use buffers. e.g.- Printing the characters

  49. Performance

  50. Performance • The most important measure of a computer is how quickly it can execute programs. • Three factors affect performance: • Hardware design • Instruction set • Compiler

More Related