
Chapter 2 in the Computers text.
This lecture introduces some of the key components of computers, so that you will understand them a little better and know how they interact with each other. There are a number of terms needed to describe computers; these terms are frequently used and probably should be understood, at least in a superficial way, if you are going to be making frequent use of computers in your daily lives.
The most common way of describing a general purpose computer is to say that it consists of the following five components:
There are a great many I/O devices, some of which we will consider in more detail in a little while. For now, remember that the purpose of an Input device is to accept data from the outside world (humans interacting with computers) and convert the data to an internal form (represented in bytes) for storage and manipulation inside the computer. The most common input devices are the Keyboard and Mouse.
The purpose of Output devices is the opposite: the data stored inside a computer must be converted to some form of representation that is human-readable, and output devices perform this function. Typical output devices are Displays and Printers. Typical names for displays are Cathode Ray Tube (CRT), Video Display Unit (VDU), Liquid Crystal Display (LCD), or even Video Display Terminal. Printers come in many different types, including dot matrix, ink jet, and laser printers, the kind available in your computer classroom.
The CPU is the heart of a computer. It is the component that does calculations, operates on text data, accepts controls input and output to I/O devices as well as to auxiliary storage, and in fact is in control of all operations that are performed on computers. CPUs are very complex. In the early days, they were room-sized devices that had thousands of separate components (vacuum tubes, resistors, wires, and more). Nowadays, the same results can be obtained from very small Chips, some no larger that your little fingernail, which contain the equivalent of thousands of transistors interconnected in complex ways. We saw an example of the basic design of such a CPU in class.
CPUs contain Registers, storage areas which can hold Data or Instructions. You can think of a register as being similar to a scratch piece of paper on your desk when you are balancing your checkbook. You use the paper to add figures, transfer the results to your checkbook, and maybe write a note on your bank statement. The register is that piece of scrap paper you used for checking numbers. Typically, a computer will have a register that contains the current instruction (instruction register), another register that tells the computer where to find the next instruction (program counter), and several data registers. All of these registers consist of one, two or more bytes capacity. The number of bytes in a register is usually referred to as the Word Size of that particular computer. Computer Words are NOT related to human words; they are just a convenient way of grouping sets of bytes to visualize how a particular computer manipulates data. Typical word sizes for early PCs are 1 or 2 bytes (8 or 16 bits) and for the newer, faster PCs, 4 bytes or even 8 bytes (32 or 64 bits). Larger workstations and "mainframe" computers have word sizes of 8 bytes or more. The larger the word size, the more information can be processed at once in the CPU.
There are two basic kinds of information that can be used by a computer: instructions and data; and both types of information can be stored in memory. In either case, the information is stored as groups of bytes. The data stored might be numbers, text, or even a representation of graphic images, since computers are capable of doing remarkable things with visual images as well as with numbers and words.
The memory of a computer is described in terms of the number of bytes available. Typical memory sizes are approximately 640,000 bytes, which is called 640KB, 1 million bytes (1MB), and, in newer systems, 2MB, 4MB, 16MB and even more. If we consider how much data can be stored in 1MB of memory, it is convenient to think that one character of the English alphabet requires one byte of storage. If we were storing a report, then 1 MB of memory might hold about 200,000 English words (assuming 5 characters per word average). Computer memory comes in two basic types: Random Access Memory (RAM), which is used to manipulate instructions and data; and Read-Only Memory (ROM) which is used to store basic instructions that come with the computer (such as the diagnostics of the Boot program).
An important point to remember about the memory of a computer: whereas ROM never changes, RAM is volatile, (sometimes called dynamic), which means that, when the computer is turned off, all data and instructions currently in memory are erased for ever. You need to know this, because often, when you have worked with something important, like a term paper, if you forget to save the paper on auxiliary storage (usually a floppy disk), it is gone, vanished, not there, and you may be very sorry to have lost it.
One other important fact to remember about the main memory of a computer: it is much faster for the CPU to access data stored in memory than data stored in Auxiliary Storage devices. Therefore, in order to work with data, the computer almost always loads it into memory, works on it, and then files it away on auxiliary storage for more permanent safekeeping.
How do these components talk to each other? For that matter, what would they want to say to each other? There are several types of messages that might be sent, typical ones would include:
Look at these operations. In each case, there is some instruction, there is a set of data, and there is a need to address some location in memory. Communication between devices always requires these three components, and the message constructed to perform these operations must go on the Bus. It stands to reason, therefore, that the Bus will have a set of lines used to transmit instructions (these are called Control lines), one set to identify memory addresses (Address lines), and a third set to move data between components (Data lines). You will have a chance to study a chip and see how it must use tiny wires to connect from the chip itself to the outside world via the pins on the outside of the ceramic housing of the chip.
These, then, are the main components of a general purpose computer. When you open up a computer, you will be able to see different parts, and perhaps add new components to your system if you are upgrading it. Understanding a little about what these components are and how they talk to each other will help you become more knowledgeable about the care and feeding of the system that is destined to play an important role in your career.
Note: A video of this information is available for viewing in the media center in 1101 Hart Hall under ECS015, Title: Video 2 - Computer components.
The CPU is where the processing of data occurs in a computer. The CPU is physically located on the motherboard in the system unit of the computer.
The Four Primary Hardware Components of Computers are Input, Output, Processing, and Storage (Fig 1-4 in Long & Long). This lecture describes the hardware components in the processing category - main memory and the central processing unit.
The CPU is shown in Figs 2-5 and 2-6 of the Computers (Long & Long) text. The Central Processing Unit (CPU) contains:
See Fig 2-6, the machine cycle, in your computers text.
The machine cycle has 4 steps:
Computer processing speeds are measured in Megahertz (MHz) which equals one million machine cycles per second (also called the clock speed of the computer), and MIPS, which equals one million instructions per second. Some instructions may take more than one machine (clock) cycle to execute on a CPU.
CISC stands for Complex Instruction Set Computer. A CISC CPU has many complex instructions built in (in its instruction set). Some of the complex instructions may take longer than 1 clock cycle to execute.
RISC stands for Reduced Instruction Set Computer. A RISK CPU has a simplified instruction set (fewer instructions). All instructions execute quickly. RISC chips run at speeds typically 4-10 times faster than CISC chips. However, a RISC chip may need to execute multiple instructions for complex actions that can be done in one instruction by a CISC chip.
The Intel series of chips (including the Pentium and Pentium Pro) are all CISC.
Many workstations use RISC CPUs, for example the Sun SPARC and the Digital Equipment Corporation (DEC) ALPHA.
Some PCs, like Macintosh powerbooks, are using the PowerPC chip (made by group of companies including Motorola) that is a RISC design.
Buffers are used to store data to even out input, output, and access times with various storage devices.
A cache is a buffer area that is used to the amortize the overhead of accessing a slower device. Extra data is read from the slower device into the cache where it can be accessed more quickly.
As an analogy, if you are sitting on your couch watching TV, a cooler by your side with a beverage in it would be a cache for the refrigerator in the kitchen. You would fill the cooler (small, but fast to access) as needed from the refrigerator (large, but slower to access). The special storage places within the CPU called registers are analogous to having an open can in your hand - it is fastest to get a drink from there.
ROM stands for Read Only Memory. ROM cannot be changed, but can be read many times. ROM is non-volatile, meaning that it does not lose its data when the power goes off. ROM is present on the motherboard of the computer to store information used during the boot process. Reference the lecture notes on the boot process for more details.
A bit is a binary digit (a 0 or 1).
A byte is 8 bits (in a row) and usually encodes a single
character (in languages with small character sets).
A kilobyte (KB) is 1024 bytes (2^10) or approximately 1,000 bytes.
A megabyte (MB) is 1024 KB, or approximately 1,000,000 bytes.
A gigabyte (GB) is 1024 MB, or approximately 1,000,000,000 bytes.
A terabyte (TB) is 1024 GB, or approximately 1,000,000,000,000 bytes.
Information is measured in bits and bytes, similar to measuring the size of rooms in a house using square feet. Each room is different, but each room can be measured and described by its size. In the same manner, main memory and secondary storage can be described by how much information they hold and the other properties we will see shortly.
Go to the index of
lectures for ECS15 - Fall 1997 .
Go to the homepage for ECS15 - Fall 1997 .
