Pages

Search This Blog

Tuesday, 7 February 2012

Basic information about computer

Basic Computer Structure and
Knowledge

The 5 Component Model

A computer system can be divided into 5 components:
  1. Hardware
  2. Software
  3. Data
  4. Procedures
  5. Personnel
In studying Computer Systems' Architecture, only the first 3 of these are of direct interest.

Introduction

This Essay is meant as a preparation for the next Essay, which is about the ontological status of ARTIFICIAL LIFE (a-life), mainly that brand of a-life that is computer-generated. For an assessment of the ontological status of the creations of a-life it is paramount to know something about the general and basic structure of a computer, in our case a digital computer. Only after possessing some insights into the structure of these interesting machines can we rationally speak about the role and nature of the substrate of artificial-life creatures in order to assess the reality-status of those creatures.
For this purpose we do not need a description of all the details and design features of modern computers. Just a general lay-out of the very basics is necessary. I will devote much attention to the general workings of Boolean logic (hardware) circuits (but only a very simple example of them will be treated of here [Part Two of this Essay]). Thereby it is important to realize that the computer-hardware is a physical device that obeys the laws of physics. Further one must realize that a computer can simulate phenomena of the outside world, and although these simulations are not the same as the phenomena which are being simulated, those simulations are something in their own right. What they are (in their own right) depends on their general and detailed structure and/or behavior. In the next Essay (about artificial life) these subjects will be adressed fully.
In Part One of this Essay I will treat of the general CONCEPT of a digital computer, in terms of Turing machines. A concept already worked out in the 19-thirties.
There are two main types of computers, analog computers and digital computers. Digital computers are discrete machines having access to a finite number of internal states only, while analog machines have access, in principle, to an infinite number of internal states and could therefore be expected to outperform digital machines. Examples of this enhanced ability of analog computers would include solving halting-problems (i.e. in principle be able to determine in advance whether any program, fed into the computer, will or will not yield a definite result in a finite number of steps), and generating non-computable numbers. For a digital computer one cannot write a test-program that could determine for any other program, to be run on such a computer, whether that program (to be tested) will, when run, give a definite result after a finite number of steps. Also a digital computer cannot compute certain numbers (so called non-computable numbers).
Further we have serial machines and parallel machines. While a serial machine can only perform one computational step after another, a parallel machine can execute more than one such steps simultaneously. Parallel machines accordingly consist of more than one processor, which operate in harmony. Many processes in Nature are in fact proceeding in a parallel fashion, and can therefore adequately be simulated by such machines. But it is possible to simulate such a parallel machine on a serial machine.
In our discussions and explanations we will confine ourselves mainly to DIGITAL SERIAL COMPUTING MACHINES, but the principle (concept) expounded covers parallel machines as well.

The Digital (serial) Computer

The main components of a digital computer are :
  • Input devices (keyboard, mouse, etc).
  • Memory board.
  • Central Processing Unit (processor).
  • Output devices (video terminal, printer, etc.).
Besides these main components we find slow secondary storing divices, such as floppy disks and hard disks. These can contain data and programs that can be used as input. They also can receive output. Further there may be one ore more control units that check and regulates information-flow (information-traffic).
Figure 1. Von Neumann's computer architecture -- the layout of a typical serial machine. Except with respect to input and output devices, the information-flow is in a back-and-forth fashion.
To program such a computer, in order that it will solve a certain problem or generate some desired result, the programmer first writes an algorithm, which is a solution of the problem in the form of a sequence of steps, written in ordinary language. This algorithm is then coded into a suitable programming language that will enable the computer to ' understand ' and successfully execute the corresponding instructions. Usually, this involves one of the ' higher ' programming languages, so called because they are reasonable close to human language. But because the Central Processing Unit (CPU) is composed of a set of Boolean logic circuits, it is capable only of performing elementary arithmetic operations such as addition, subtraction, multiplication, and so on. Thus the original programming language fed into the computer must be first converted by means of an interpreter (translates one line of code and executes it, then translates the next line, etc.), or a compiler (translates the whole program and then executes it) into a machine-readable assembly language (instructions, coded in this assembly language are then directly translated into machine-code, that consists of the electronical equivalents of 0's and 1's) . Only then the machine is able to execute the fed-in instructions.
The input is coded up in memory, which is a grid of electronic on-off switches. The processor, which is a chip of integrated circuitry, alters what is in the memory, resulting in a different on-off pattern of switches, and then the output decodes and displays the new contents of the memory. So the actual computation consists of the processor's activities on the memory. Accordingly the processor and the memory stand in mutual contact with each other.Virtually all computers, from home desktop machines to giant research systems, all share a basic structure. They have a central processor that computes and performs logic, memory that holds data, and input-output devices.

Read more: The Basic Structure of a Computer | eHow.com http://www.ehow.com/facts_5817874_basic-structure-computer.html#ixzz1lg44fWOA
  1. Central Processor

    • A computer's central processing unit (CPU) is its active "brain." It performs arithmetic, compares data, and moves data to and from the other parts.

    Memory

    • High-speed random-access memory (RAM) is the CPU's "scratch pad." The CPU carries out programs loaded in RAM and manipulates data stored in RAM.

    Buses

    • Most computers have several pathways to move data from RAM to the CPU and other parts. These paths are called buses and they move hundreds of millions of data characters per second.

    Input/Output

    • Keyboards, mice, displays and printers are all types of input/output (I/O) devices. Data flows from keyboards and mice through the buses and into the CPU and RAM. Results of calculations flow back to the display and printer.

    Hard Disk

    • A hard disk drive (HDD) is the computer's long-term "filing cabinet." It stores all your files and programs.


      Hardware

      • Processor
        • a.k.a. CPU / Central Processing Unit
        • Components:
          1. ALU / Arithmetic Logic Unit: arithmetic & Boolean logic operations
          2. CU / Control Unit: instruction processing sequencing and control
          3. Interface Unit: (internal) bus structure
        • Alternate View
          1. Execution Unit: instruction circuits (including ALU)
          2. Control Unit: instruction retrieval, sequencing, and EU sub-circuit selection
          3. Registers: limited, quick-access data "containers" and "flags"
          4. Internal Bus Interface
      • Input & Output Devices
        • Actual electrical or electro-mechanical IO devices (e.g. keyboards, printers, video monitor) will not be considered as significant in our study of Computer Systems' Architectures.
      • Input & Output Interface
        External Bus Structure
        collection of "wires" that carries power and signals between different computer components
        Channel
        separate, special purpose IO processor connecting an IO device to the CPU (or "main memory"); may perform signal conversion, timing control, buffering, etc.
        Communications
        direct/indirect connection to other computer systems based on pre-agreed upon "protocol" (shared rules for how communication is to take place
      • Storage / Memory
        • (Main) Memory / Primary Storage
          addressed cells
          each containing a binary pattern
          units:
          byte
          (typically 8 "bits") - character
          word
          (typically 32 "bits" but many different sizes are found on different computer systems) - basic numeric unit; basic unit of data transfer
          Kbytes
          210 bytes (1024)
          Mbytes
          220 bytes (1,048,576)
          Gbytes
          230 bytes (1,300,109,824)
          usage:
          • "active" data and instructions (i.e. instructions and data currently being processed
          • John vonNeumann & stored program concept vs. Babbage's engine with separate data and instruction stores
          RAM vs. ROM
          ROM is non-modifiable (by normal computer operation)
        • (Secondary) Storage
          • long-term (inactive) data and program storage
          • examples: disk, tape, CD
          • units: typically stored in "blocks" of multiple words/bytes (physical records)

        • REGISTERSMAIN MEMORYSECONDARY STORAGE
          SPEEDvery fastfastslow
          DURATIONvery short-termshort-term (while program is active)long-term
          POWER DOWN EFFECTdata lostRAM- data lost; ROM - data maintainedmaintained
          SIZE OF UNIT TRANSFERREDbit, byte, or wordbyte or wordphysical record most common
          ALU ACCESSyesindirect onlyno


      Software

      • System Software
        • Operating System
        • Utilities (may be built into OS or external programs)
      • Application Software
        • Application tools: word processors, spreadsheet managers, etc.
        • Corporate applications: in-house systems e.g. inventory management
      • High-level vs. Machine-level Software
        • High-level: "source" instructions in a language such as COBOL
        • Machine-level: binary patterns with no immediate human meaning
        • High-level instructions must be converted into Machine-level instructions before they can be processed by a "processor"; this conversion is a one-to-many process
      • Instruction Classes
        • data transfer (copying data)
        • data transform (modifying data)
        • instruction flow control (changing the default sequence)


      Data

      One of the major requirements of any computer system is the ability to represent and manipulate values ("data"). In general, digital computers (the only type considered in this course) represent values as patterns of "off" and "on" signals. Each value requires a different pattern (or, at least, a pattern which is different from any other value of the same type). Different types of values generally are represented using different "encoding schemes". An "encoding scheme" specifies how many "off" and "on" signals are required for each value, and provides a unique pattern of signals for each possible value.

      Data vs. Information

      Two terms common in any discussion of computer systems are "data" and "information". The difference in meaning between these two terms is based on the concept that "information" is "data" which has "meaning" to someone (or something) outside of the computer system. "Information" is "data" which has meaning. The most common task of a computer system (especially when the input source and the output destination are the same) is to transform data into information. In fact, this is sometimes used as the basis for alternative definitions of a computer system .
      The concept of "meaning" can be difficult. Generally, we think of "meaning" as implying that something with intelligence exists for which the "data" has meaning. When the output of a computer system is the automated control of some other system (as in CAD, Computer Aided Manufacturing), we end up debating, the unresolved question of what is meant by "intelligence".


      1. The IPO(S) Model

      A computer system can be thought of as a collection of components which together are capable of 3 operations: Input, Processing, and Output. A fourth operation, Storage, is also required for practical computer systems. Note that the IPO(S), Input-Process-Output(-Storage), model is applied to at least two different areas:
      1. the collection of "equipment" that makes up a computer system
      2. the "actions" that a computer system is capable of performing.

      Input:

      A computer system must include a method for accepting "data" and "instructions" from outside the system. Power or energy sources required to enable operation of the computer system are not "inputs".

      Processing:

      A computer system must include the ability to change or "transform" data which has been input. These "transformations" typically include (but are not limited to)
      • selecting subsets of the data
      • counting and accumulating totals of selected data values
      • re-arranging the sequence or "format" of data

      Output:

      A computer system must include the ability to send processed data to outside the system in a form that can be used by the "outside world". This "outside world" might be the human "users" of the computer system, but alternatively could be electrical or mechanical controls for automated equipment, or the "inputs" for some other system.

      Storage:

      We would not normally consider a collection to be a computer system unless it included some form of memory of previous input or processed data. For example, system composed of an electrical power supply, an on/off switch, a light bulb, and appropriate wiring to connect the other three components would not normally be considered to be a computer system (although it contains IPO elements of a basic form). Replacing the on/off switch with a "toggle button", which would reverse the current on/off "state" of the light, would give us something closer to a computer system. For the purposes of this course memory (or "storage") will be considered to be an essential element of any computer system.


No comments:

Post a Comment