

















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


















UNIVERSITY OF EXCELLENCE
Table of contents
Part 1 : Elements of a Basic Architecture
Chapter 1 : Introduction
1.1 Historical background 1.1.1 Automations and mechanical calculators 1.1.2 From external program to stored program 1.1.3 The different generations 1.2 introduction to internal operation 1.2.1 communicating with the machine 1.2.2 carrying out the instructions 1.3 future prospects
Chapter 2 : The Basic Modules
2.1 Memory 2.1.1 definitions 2.1.2 A few elements of technology 2.2 The processor 2.2.1 functional units 2.2.2 processor registers 2.2.3 the element of the processing unit 2.2.4 the elements of the control unit 2.2.5 the address caculation unit 2.3 Communications between modules 2.3.1 the PCI bus
UNIVERSITY OF EXCELLENCE
Chapter 1
Introduction
After providing some historical background, we will highlight the major components of a computer machine [MOR 81, ROS 69, LAV 75]. This will lead us to describe a category of calculators that we will refer to as classic architecture machines, or classic architecture uniprocessors. We will examine the functions performed by each of their modules, and then describe them in greater detail in the following chapters.
1.1. Historical background 1.1.1. Automations and mechanical calculators The first known mechanical calculators [SCI 96] were designed by Wilhelm Schickard (1592 – 1635) ( ≈ 1623), Blaise Pascal ( ≈ 1642) and Gottfried Wilhelm Leibniz (1646 – 1716) ( ≈ 1673): they operate in base 10 through a gear mechanism.
It is up to the user to put together series of operations. The need for a sequence of processes that is automated is what will eventually lead to the design of computers. The sequencing of simple tasks had already been implemented in the design of music boxes, barrel organs, self-playing pianos, in which cylinders with pins, cam systems and perforated paper tapes determined the melody. The loom, designed by Joseph-Marie Jacquard (1752 – 1834), is another example of an automaton.
UNIVERSITY OF EXCELLENCE
This machine, known as the analytical engine [MEN 42], autonomously performs sequences of arithmetic operatio ns. As with Jacquard’s loom, it is controlled by perforated tape. The user describes on this “program - tape” the sequence of operations that needs to be performed by the machine. The tape is fed into the machine upon each new execution. This is because Babbage’s machine, despite its ability to memorize intermediate results, had no means for memorizing programs, which were always on some external support. This is known as an external program machine. This machine introduces the concept of memory (referred to by Babbage as the store) and of a processor (the mill). Another innovation, and contrary to what was done before, is that the needles, which engaged based on the presence or the absence of holes in the perforated tape, do not directly engage the output devices. In a barrel organ, a note is associated with each hole in the tape; this is formally described by saying that the output is logically equal to the input. In the analytical engine, however, we can already say that a program and data are coded.
This machine is divided into three distinct components, with different functions: the automaton – calculator part, the data and the program. While each row of the perforated tape contains data that are “logical” in nature
- the presence or the absence of a hole – the same cannot be said for both the automaton, which is purely mechanical, and the calculation unit, which operates on base 10 representations.
1.1.1.1. Data storage The idea that it was necessary to automatically process data took hold during the 1890 census in the United States, a census that covered 62 million people. It was the subject of a call for bids, with the contract going to Herman Hollerith
UNIVERSITY OF EXCELLENCE
Hollerith suggested using a system of perforated cards already used by certain railway companies. The cards were 7.375 by 3.25 inches which, as the legend goes, correspond to the size of the $1 bill at the time. The Tabulating Machine Company, started by Herman Hollerith, would eventually become International Business Machines (IBM), in 1924.
In 1937, Howard Aiken , of Harvard University, gave IBM the suggestion of building a giant calculator from the mechanical and electromechanical devices used for punch card machines. Completed in 1943, the machine weighed 10, pounds, was equipped with accumulators capable of memorizing 72 numbers, and could multiply two 23-digit numbers in 6 s. It was controlled through instructions coded onto perforated paper tape.
Despite the knowledge acquired from Babbage, this machine lacked the ability to process conditional instructions. It did, however, have two additional features compared to Babbage’s analytical engine: a clock for controlling sequences of operations and registers, a type of temporary memory used for recording data. Another precursor was the Robinson, designed in England during World War II and used for decoding encrypted messages created by the German forces on Enigma machines.
1.1.2. From external program to stored program
In the 1940s, research into automated calculators was a booming field, spurred
UNIVERSITY OF EXCELLENCE
Since the Electronic Discrete Variable Automatic Computer (EDVAC) in 1945, under the direction of J. von Neumann [VON 45, GOL 63] (the first stored- program calculator), hundreds of machines have been designed. To organize the history of these machines, we can use the concept of generations of calculators, which is based essentially on technological considerations. Another classification could just as well be made based on software criteria, associated with the development of languages and operating systems for calculators. 1.1.3.1. The first generation (≈1938– 1953) Machines of this era are closer to laboratory prototypes than computers as we picture them today. These machines consist of relays, electronic tubes, resistors and other discrete components. The ENIAC, for example, abbreviated form for Electronic Numerical Integrator And Computer, was made up of 18, vacuum tubes, consumed around 150 kW, and was equipped with 20 memory elements (Figure 1.71).
UNIVERSITY OF EXCELLENCE
Because of the difficulties in the calculation part of the work, the processes were executed in series by operators working on a single binary element. Being very energy-intensive, bulky and unreliable, these machines had an extremely crude programming language, known as machine language. Program development represents a considerable amount of work. Only one copy of each of these machines was made, and they were essentially used for research purposes. This was the case with the ENIAC, for example, which was involved in the research program for developing the Bomba [LAU 83], a machine used for decrypting messages during World War II.
1.1.3.2. Second generation (≈1953–1963) The second generation saw the advent of machines that were easier to operate (the IBM-701, among others). Transistors (the first of which dates back to 1947) started to replacing vacuum tubes. Memory used ferrite toroids, and operating systems, the first tools designed to facilitate the use of computers, were created. Until then, machines were not equipped with development environments or with a user interface as we know them now. Pre-programmed input–output modules, known as Input Output Control Systems (IOCS) are the only available tools to facilitate programming. Each task (editing, processing, etc.) is executed automatically. In order to save time between the end of a job and the beginning of another, the batch processing system is introduced, which groups together jobs of the same type. At the end of each task, the operating system takes control again,
UNIVERSITY OF EXCELLENCE
This new era sets the stage for a spectacular increase in the complexity of operating systems. Along with this series of calculators emerges the concept of compatibility between machines. This means that users can acquire a more powerful machine within the series offered by the manufacturer, and still hold on to their initial software investment. The first multiprocessor systems (computers equipped with several “automaton–calculation” units) are born at the end of the 1960s. The development of systems for machines to communicate with one another leads to computer networks.
In the early 1970s, the manufacturing company IBM adopted a new policy (unbundling) regarding the distribution of its products, where hardware and software are separated. It then becomes possible to obtain IBM-compatible hardware and software developed by companies in the service industry. This policy led to the rise of a powerful software industry that was independent of machine manufacturers.
UNIVERSITY OF EXCELLENCE
1.1.3.4. Fourth generation (≈1975–) This fourth generation is tied to the systematic use of circuits with large, and later very large, scale integration (LLSI and VLSI). This is not due to any particular technological breakthrough, but rather due to the dramatic improvement in fabrication processes and circuit design, which are now computer assisted. The integration of the different processor modules culminated in the early 1970s, with the development of the microprocessor. Intel® releases the I4004. The processor takes up only a few square millimeters of silicon surface. The circuit is called a chip. The first microcomputer, built around the Intel® I8080 microprocessor, came into existence in 1971.
UNIVERSITY OF EXCELLENCE
We will adopt the convention of referring to the system consisting of the processor (calculator and automaton) + memory + exchange units as the Central Processing Unit (CPU).
It is important to note that the symbols “0” and “1” used in Figure 1.12 to represent data are notations used by convention. This facilitates the representation of logic values provided by the computing machine. They could have been defined as “ α ” and “ β ”, “ φ ” and “E”, etc. What emerges from this is a modular structure, the elements of which are the processor (calculation and automaton part), the memory, the exchange units, and connections, or buses, the purpose of which is to connect all of these modules together.
1.2.2. Carrying out the instructions The functional units in charge of carrying out a program are the automaton and thecalculator:
UNIVERSITY OF EXCELLENCE
Once it has been turned on, the computer executes a “fetch-execution” cycle, which can only be interrupted by cutting its power supply. The fetch operation consists of retrieving within the memory an instruction that the control unit recognizes – decodes – and which will be executed by the processing unit. The execution leads to (see Figure 1.14) (1) a local processing operation, (2) something being read from or written into memory, or (3) something being read from or written into an exchange unit. The control unit generates all of the signals involved in going through the cycle.
UNIVERSITY OF EXCELLENCE
configuration of these n lines codes the address of the word, whose m bits of content can then be read by the data bus. This is achieved using a n → 2n decoder located between the address bus and the actual memory, so that the values of the addresses scale from 0 to 2n − 1.
The delay between the settings of the address and the time and the time when the data becomes available on the data bus is called the access time. the information stored in the cell is called content of the address.
The name used for these memory words depends on their length. While a byte always refers to an eight-bit cell, the same is not true for a word, which can consist of 16 bits, 32 bits, etc. A 32-bit word is sometimes called a quadlet, and a half-byte is a nibble or nybble. When each byte has an address, the memory is said to be byte addressable and each of the bytes in a 32-bit memory word can be accessed individually. The addresses of words are multiples of four.
The unit of memory size is generally a byte, in which case it is expressed in kilobytes (kB), megabytes (MB) or gigabytes (GB), with: 1 kilobyte = 210 bytes = 1,024 bytes, 1 megabyte = 220 bytes = 1,048,576 bytes, 1 gigabyte = 230 bytes = 1,073,741,824 bytes.
UNIVERSITY OF EXCELLENCE
2.1.2. A few elements of technology
2.1.2.1. Concept
Memory design relies on any of the following three technologies:
- Each basic element consists of a flip-flop: this technique is implemented to produce what is known as volatile and static memories: volatile because once the power supply is shut down, the information is lost, and static because the information is stable as long as the power supply is maintained. - The basic element is comparable to a capacitor, which can be either charged or not charged: this concept applies to volatile and dynamic memories (Figure 2.2). The term dynamic means that the information is lost whenever the capacitor discharges.
This type of memory must periodically be refreshed, a task which can be accomplished using a read or write cycle.
- Producing the cell requires a phenomenon similar to the “breakdown” of a diode: this is how the so-called non-volatile memory is made. Once the content has beenprogrammed, it exists permanently regardless of whether the power is on or off.
Volatile memories are usually known as RAM (Random Access Memory) and non-volatile memories as ROM (Read-Only Memory). Depending on the techniques, other terms such as DRAM (Dynamic RAM), PROM (Programmable
UNIVERSITY OF EXCELLENCE
2.2.1.1. The control unit The control unit has three functions (see Figure 2.3):
- It fetches instruction stored in the memory: it sets the address of the instruction on the address bus, then, after a delay long enough to ensure that the address is in fact stable on the data bus (or the instruction bus, for machines equipped with distinct buses), it loads the instruction it has just obtained into a register. - It decodes the instruction. - It indicates to the processing unit which arithmetic and logic processes need to be performed, and generates all of the signals necessary to the execution of the instruction. This is the execution step. 2.2.1.2. The processing unit The processing unit ensures the execution of elementary operations “specified” by the control unit (“processing indications”). The information handled and the intermediate results are stored in memorization elements internal to the processor, known as registers. No operation is made directly with the memory cells: they are instead copied into registers, which may or may not be accessible to the programmer, before being processed. The control unit, the processing unit and the registers are connected to each other, which makes it possible to load or read in parallel all of their bits. These communication lines are known as internal buses (Figure 2.4).
UNIVERSITY OF EXCELLENCE
2.2.2. Processor registers 2.2.2.1. Working register Working registers are used to store results without accessing the memory. This simplifies the handling of data (there is no need for managing addresses) and the time it takes to access the information is shorter. In most classic architecture processors,the number of registers is in the order of 8 to 32.
2.2.2.2. Accumulator register In many classic architecture machines, the set of instructions favors certain registers known as accumulator registers or simply accumulators. In Intel® x series microprocessors, for example, all of the instructions for transfers between memory and registers, or between registers, can affect the accumulator register, denoted by AX. The same is not true for registers indexed SI or DI, which offer more limited possibilities for handling information.
2.2.2.3. Stack pointer Stack pointers are mainly used in the mechanism for calling functions or subroutines. The stack is a part of the memory which is managed (Figure 2.5) according to the content of the stack pointer register.