Computer Hardware and Software
Definition: A computer is a general-purpose processor of symbolic information.
Before a computer can perform any other function, it must have data to work with. Input is the data you put into the computer.
Processing includes the various operations the computer performs on a given set of data.
Storage involves recording data in some form that cane be found and used again.
After the computer processes data, it presents it in an intelligible form for the user. This function is called the output.
See Figure 1.
It uses the Binary Number System
as compared to
In the
case, 6 represents the value of 600,
in the
case 6 represents the value of 60.
Similar to the decimal system , the binary numbering system is also a positional numbering system.
Thus, the value thirty seven which is represented as 37 in decimal would be represented in Binary (using only 0 and 1) as:
A binary digit, which can take a value of 0 or 1 is referred to as a bit.
There are two other numbering systems that are used mainly by systems programmers:
Hexadecimal has a base of 16, i. e. any value can be represented by only 16 digits 0 - F.
Octal and Hexadecimal provide a shorthand method for reducing the long string of 0's and 1's in the binary system.
It is easy to convert from decimal system to Binary, Octal, or hexadecimal. The following are examples.
Decimal to Binary:
Fractions can also be represented in binary.
For example,
Decimal to Octal:
0+0=0
0+1=1
1+0=1
1+1=0 and carry 1
Examples:
which is the same as:
Thus, the Binary system can be, and is used by the computer to represent any value in the decimal system and the computer is able to perform arithmetic operations on the Binary representation.
A - 1000001
A - 11000001
Is the heart of the computer. (The cost of CPU may range anywhere between $10 and $1,000,000.)
- directs the flow of operations and maintains order in the computer.
- coordinates the flow of data in and out of ALU, primary storage, secondary storage and various I/O devices.
- high-speed storage areas used to temporarily hold small units of program instructions and data
- to temporarily store specific types of data (the current program instruction, the address of the next instruction, current data, etc.)
- There are general purpose registers, which are available to applications programmers and special- purpose registers such as the instruction counter and instruction register.
- The size of a register and the number of registers on a computer varies from one to another. Typically, the word size used on a given computer matches the register size. Common word sizes include: 8, 16, and 32 bits.
Main memory holds instructions of the program(s) that are currently being executed and the related data. It is made up of on - off type of devices (representing a bit). A group of bits, typically 8 is referred to as byte and a collection of bytes is referred to as word.
Memory size is measured in terms of kilobytes (K) (1024 bytes), megabytes (MB), or gigabytes (G).
Each memory cell has an address.
Data is moved around within the computer in groups of bits, usually in multiples of bytes. Data Bus line width should match the CPU wordlength for optimum performance. The size of the address bus limits the size of the primary storage capacity. ( Common word sizes include: 8, 16, and 32 bits.)
A machine instruction - operation code (opcode), number of characters in the first field, number of characters in the second field, location of the first field, and location of the second field.
Ex: A 44 7000 9000
The first two steps are referred to as the instruction cycle. The time taken to perform these two steps is called the Instruction time (I-time).
The latter two steps are referred to as the execution cycle. The time taken to perform these two steps is called the Execution time (E-time). These four steps are called the machine cycle.
It has four types of keys: function keys, alphanumeric keys, numeric keys, additional cursor control keys
Usually consists if a ball; the ball's rolling motions are converted into electrical signals.
Example: dot-matrix
Example: laser and inkjet printers.
Specifications:
1. Display quality, which depends on resolution. Resolution is defined as number of pixels (picture elements) per square inch.
2. color or monochrome
It displays only one screen color. They are available in 3 colors - white, green and amber.
The following are the different types of color displays.
Why?
The most commonly used secondary storage devices are: magnetic disks and magnetic tapes.
total storage = # of disk sides
# of tracks
# of sectors
sector size in bytes
each sector stores 512 bytes
| Disk size | sides | tracks/side | sectors/track | total sectors | capacity |
| double density 5 1/4'' | 2 | 40 | 9 | 720 | 360 KB |
| High density 5 1/4'' | 2 | 80 | 15 | 2400 | 1.25 MB |
| double density 3 1/2'' | 2 | 80 | 9 | 1440 | 720 KB |
| High density 3 1/2'' | 2 | 80 | 18 | 2880 | 1.44 MB |
can only serve as sequential storage devices.
- capacity is 550 MB (5 1/4''), approximately 150,000 printed pages about 250 big books. Electronic Encyclopedia with 33,000 articles and a total of 9 million words is available on a single CD-ROM.
- access time is large
- capacity is 2 GB
- Ex: DMV of California uses to store pictures, finger prints and signatures
Computers are classified according to characteristics, cost and
purpose.
| Characteristics | Micro | Workstation | Mini | Mainframe | super |
| Processor speed | 4MIPS | 8MIPS | 31MIPS | 102MIPS | 2.7Gflops |
| Main Memory(MB) | 1-16 | 16-64 | 128-192 | 128-2048 | over 256 |
| Price | 2-12K | 5-20K | over 700K | over 13M | 5M-20M |
Microcomputers
Microcomputers are built around a microprocessor. The microprocessors
manufactured by Intel Corporation have become the standard CPU's
around which IBM and its compatible microcomputers are built.
Evolution of Microprocessors:
Please see Table 1.
Hardware Multitasking: Allows the computer to work on more than
one program at a time. For example, if you need to move data from a
spreadsheet to a word processor, the multitasking capability allows you to move back and forth between the applications without completely backing out of either program.
Math Coprocessor: For heavy duty mathematical calculations such
as CAD operations, large spreadsheet, math or database calculations, a
math coprocessor chip is added to the system board. 486 has a built-in
math coprocessor.
Cache Controller: Cache memory is a special high -speed memory used to enable quick and easy access. Data and instructions are transferred from the main memory prior to their use by the processor. Cache controller directs the cache memory.
Consists of computer programs that control the operations of the computer system
manages the resources of a computer system and makes its operations more efficient and effective.
Examples include assemblers, compilers, linkage editor, text editors, and OS.
consists of programs written to solve particular user oriented programs
An OS is a master control program which is loaded into a computer's memory. Its purpose is two-fold:
Some of the services offered by an OS include:
Multiprogramming
An extreme speed disparity between the CPU and its I/O devices. Since the CPU cannot process data that it does not have yet, processing must wait for the completion of an input operation. In addition, in order to avoid possible errors, the CPU waits for the completion of an output operation. Thus, the CPU might process instructions for few microseconds, wait for hundred microseconds as an I/O operation takes place.
Multiprogramming (or multitasking) is a technique for having a number of programs placed in memory and the CPU switches its attention from one program to another, taking advantage of the time that it would otherwise spend waiting for I/O. Although we may have more than one program in main memory, the CPU works only on one program at a time.
Some of the popular OSs are:
Virtual memory is where the program to be executed is divided into segments (pages). Pages are brought into memory as needs arise. Thus, only part of (not the whole) the program executing reside in the main memory. this results in having the CPU process more programs concurrently.
A translator converts a statement from a high level programming language into machine language.
Translators are of two types:
translates one instruction at a time
useful when small programs to be run only once or few times
it is a two stage process
useful for larger programs that are to be run number of times
Programs used to merge and sort files, keep track of computer jobs being run, keep track of number of users and resource utilization etc.
This document was generated using the LaTeX2HTML translator Version 96.1 (Feb 5, 1996) Copyright © 1993, 1994, 1995, 1996, Nikos Drakos, Computer Based Learning Unit, University of Leeds.
The command line arguments were:
latex2html -split 0 -html_version 3.0 hwsw.tex.
The translation was initiated by Vijay & on Mon Jan 19 17:28:26 EST 1998