Professional Documents
Culture Documents
Computer Architecture (General Approach)
Computer Architecture (General Approach)
Computer Architecture (General Approach)
a. Инициализация:
Initialization
b. Выборка команды:
Command Sample
c. Увеличение
содержимого
счетчика команд:
Increasing the contents
of the command
counter
d. Дешифрация и
выполнение
команды: Decoding
and command
execution
e. Окончание работы:
End of work
Memory functions:
• receiving information from other parts of the computing device;
Storage of information (External storage device VCU - External storage);
• delivery of information upon request to other parts of the computing
device.
Processor functions:
• data processing according to a given program by performing arithmetic
and logical operations;
• program control of the operation of the components of the computing
device;
• short-term storage of a number or command;
• performing some operations on them.
The processor has a number of special storage cells called registers. The main
element of the register is an electronic circuit called a flip-flop, which is capable
of storing one binary digit (bit). The register is a set of triggers connected to each
other in a certain way by a common control system. The register has two
functions:
1) short-term storage of a number or command;
2) performing some operations on them.
A register differs from a memory location in that it can not only store binary code,
but also convert it.
There are several types of registers, differing in the type of operations
performed. Some important registers have special names, for example:
• command counter - CU register, the content of which corresponds to the
address of the next executed command; serves for automatic selection of
a program from sequential memory cells;
• adder - ALU register, participating in the execution of each operation;
• command register - CU register for storing the command code for the
period of time required for its execution.
The basic idea of sequential processing, describing the course of computations
according to a given algorithm, lies at the heart of most modern computing
devices. The calculation algorithms themselves are set from the outside - by
programmers. The computer is the executor.
The format of the three-address command of the von Neumann machine is:
The main steps of the machine cycle when executing a command in the order in
which they are executed:
1. Fetching (reading) a command from memory for subsequent execution. In the
case of a long command, multiple memory accesses are possible. The command
is placed in the command register.
2. Formation of executive (physical) addresses of operands, taking into account
the methods of their addressing (from memory).
3. Calling (reading) operands from memory and placing them in the
corresponding registers of the arithmetic-logical unit of the central processor.
4. Performing an operation by an arithmetic logic device in accordance with the
operation code stored in the command register.
5. Formation of the result in accordance with the command code and the
formation of results signs in the register of signs (flags) for writing to memory.
6. Changing the value (if necessary) of the command counter.
At present, they strive to increase the speed of data processing by increasing the
degree of parallelism of computations - a multiprocessor computer with multi-
core processors. This desire is due to the development of computer
communications, which have united computers into a single world Internet
network, in which most of the traffic is no longer sequences of symbols, but
images - pictures, music, speech, video. The advancement of modern broadband
communication lines brings processing tasks to the fore. von Neumann
microprocessors have a complex hierarchical architecture, and the number of
gates on a chip grows rapidly with the bit width of the input data. The
advancement of semiconductor integrated technology has provided several
decades of exponential growth in the performance of von Neumann computers,
mainly through increased clock speeds, and to a lesser extent through the use
of parallelism.
The processor determines which commands should be executed next, and then
moves them from memory to the CU. The most common types of basic
instructions are "load", "store", "add", "subtract" and others. CPU
always maintains an internal registry that keeps track of where the next
command should run from. This registry is called the command counter. After
the processor has determined the point from which to start the cycle, the
instruction is moved from memory to the aforementioned register - this process
is called instruction fetching. When the processor receives an instruction, it
needs to determine the exact type of that instruction. This process is called
decoding. Each instruction has a special set of bits that allows the processor to
recognize its type. The decoding process is one of the most difficult and takes
up a huge amount of memory. Most often, processors decode instructions
related to memory, arithmetic, and branch. Registers are used to store the
values currently in use and can be thought of as a kind of zero-level cache.
The simplest to understand are arithmetic commands. These commands are
sent to the Arithmetic Logic Unit (ALU) for further processing. The device is a
circuit that most often operates with two values marked with a signal and
produces the result:
The arithmetic logic unit (ALU) processes the type of operation depending on its
code, which the CU sends to the ALU and which, in addition to basic arithmetic,
can perform bitwise operations on values such as AND, OR, NOT and XOR. In
addition, the ALU displays information about the calculation performed for the
control unit (for example, whether it turned out to be positive, negative, equal
to zero, or caused an overflow). ALU is most often associated with arithmetic
operations, but there are also instructions for memory or transition. If the
processor needs to calculate the memory address given as a result of the last
calculation, or if it is necessary to calculate the transition to add to the program
counter, if the instruction requires it (example: "if the previous result is negative,
go 20 instructions forward").
The most common are the following architectural solutions:
Classical architecture (von Multi-machine computing system:
Neumann architecture, several processors that are part of the
uniprocessor computer): one computing system do not have a common
arithmetic logic unit (ALU), RAM, but each has its own (local) one.
through which the data stream Each computer in a multi-machine system
passes, and one control unit (CU), has a classic architecture. However, the
through which the instruction effect of using such a computing system
stream passes - the program. can be obtained only when solving
problems that have a very special
structure: it must be broken down into as
many loosely coupled subtasks as there
are computers in the system.
Multiprocessor architecture: