Chapter 2 D12 IT
Chapter 2 D12 IT
Chapter 2 D12 IT
Components of CPU
ALU
mathematical operations; it does the arithmetic which needs to be done, and it also performs all the logical operations (which we can loosely describe as "comparisons", such as "is A larger than B?"). The ALU is kind of like a slave which does what the control unit dictates.
Control Unit
The control unit is the nucleus of the CPU. It is the part of the CPU
which coordinates all of the activities going on within the computer, and manages the flow of data as it travels from place to place inside the machine. The control unit also houses the instruction set, the list of basic instructions which the CPU can execute. The instruction set is built into the circuitry of the control unit. There are three main functions of the control unit: It reads & interprets program instructions. It oversees and directs the internal operations of the computer's components. It controls and manages the flow of programs and data as they travel backwards and forwards between RAM and the CPU.
Registers
Name of Register Functions
Memory Address Register (MAR) Holds the address of active memory location
Accumulator (ACC)
Instruction Register (IR)
Input/Output Register
must be present for the CPU to function correctly, just as in a biological analogy the lungs must be present (for oxygen storage) for the heart to function (to pump and oxygenate the blood) . As shown in the diagram, primary storage typically consists of three kinds of storage:
information that the arithmetic and logic unit needs to carry out the current instruction. They are technically the fastest of all forms of computer storage, being switching transistors integrated on the CPU's silicon chip, and functioning as electronic "flip-flops". Cache memory is a special type of internal memory used by many central processing units to increase their performance or "throughput". Some of the information in the main memory is duplicated in the cache memory, which is slightly slower but of much greater capacity than the processor registers, and faster but much smaller than main memory. Multi-level cache memory is also commonly used - "primary cache" being smallest, fastest and closest to the processing device; "secondary cache" being larger and slower, but still faster and much smaller than main memory. Main memory contains the programs that are currently being run and the data the programs are operating on. The arithmetic and logic unit can very quickly transfer information between a processor register and locations in main storage, also known as a "memory addresses". In modern computers, electronic solid-state random access memory (RAM) is used for main storage, and is directly connected to the CPU via a "memory bus" (shown in the diagram) and a "data bus".
Cache memory
stored data to be accessed at random, not just in sequence. RAM is the opposite of sequential access memory. Generally, RAM in a computer is considered main memory or primary storage: the working area used for loading, displaying and manipulating applications and data. This type of RAM is usually in the form of integrated circuits (ICs). These are commonly called memory sticks or RAM sticks because they are manufactured as small circuit boards with plastic packaging and are about the size of a few sticks of gum. Most personal computers have slots for adding and replacing memory sticks.
Types of ROMs
PROMs (Programmable Read-Only Memory)
Memory) EAROMs (Electrically Alterable Read-Only Memory) EEPROM (Electrically Erasable Programmable Read-Only Memory)
PROMs
PROMs (Programmable Read-Only Memory) can be written to
(programmed) via a special device, a PROM programmer. The writing often takes the form of permanently destroying or creating internal links (fuses or antifuses) with the result that a PROM can only be programmed once.
EPROMs
EPROMs (Erasable Programmable Read-Only Memory) can be erased
by exposure to ultraviolet light then rewritten via an EPROM programmer. Repeated exposure to ultraviolet light will eventually destroy the EPROM but it generally takes many (greater than 1000) exposures before the EPROM becomes unusable. EPROMs can be easily identified by the circular 'window' in the top which allows the UV light to enter. Once programmed, this window is typically covered by a label to prevent accidental erasure.
EAROMs
EAROMs (Electrically Alterable Read-Only Memory) can be modified a
bit at a time, but writing is intended to be an infrequent operation; most of the time the memory is used as a ROM. EAROM may be used to store critical system setup information in a non-volatile way. For many applications, EAROM has been supplanted by CMOS RAM backed-up by a lithium battery.
EEPROM
EEPROM such as Flash memory (Electrically Erasable Programmable
Read-Only Memory) allow the entire ROM (or selected banks of the ROM) to be electrically erased (flashed back to zero) then written to without taking them out of the computer (camera, MP3 player, etc.). Flashing is much slower (milliseconds) than writing to RAM (nanoseconds) (or reading from any ROM).