Upload
khangminh22
View
0
Download
0
Embed Size (px)
Citation preview
11/5/2018
2
Hardware Architecture
4
The First Computer
• ENIAC (Electronic Numerical Integrator And Calculator)• Developed at the University of Pennsylvania• Funded by the US Department of Defense• It became operational during the II world war• Built between 1943 and 1946• Made public in 1946
• The designers were J.P. Eckert and J. Mauchly
11/5/2018
3
5
ENIACENIAC
6
ENIAC
• General purpose machine used for the calculation of artillery shooting tables
• A "U" of 30 meters high 2m and 1m thick
• 30 tons
• 18,000 vacuum tubes (valves)
• 20 10-digit registers (each register over half a meter)
• 200 microsecs for an addition
• 180 KW of consumption. When it was put into operation for the first time, the entire west district of Philadelphia went in black-out.
• Manual programming through wires and switches
• Data introduced through punched cards
• Tedious and error-prone to program
11/5/2018
4
7
The Von Neumann Architecture
• John Von Neumann was part of the ENIAC group
• He wrote a memo based on ENIAC, proposing a computer called EDVAC (Electronic Discrete Variable Automatic Computer)
• Turned to history, even if the ideas were of others
• Key feature: stored program (in the central memo)
• All computers are based on this model, now universally known as the Von NeumanMachine
8
The Von Neumann Architecture
• This model is based on the following fundamental observations:
• the computer must perform arithmetic operations more frequently, so it is reasonable that it has one or more specialized devices for such operations
• the logical control of the device, i.e. the correct sequence with which to perform such operations, can be carried out more efficiently by a flexible central controller, which distinguishes between order of execution of the instructions (they depend on the problem to be solved, so they must be stored) and modalities of execution of the single instructions (they depend on the calculator, for which they are managed by the device itself)
• the sequence of instructions and the data on which it operates must be stored in memory• data and results must be able to be exchanged with the outside through input / output units
(input / output)• all the devices mentioned must be able to talk to each other through appropriate
connections
• Let's see briefly the resulting model
11/5/2018
5
The Von Neumann Architecture
(Central Processing Unit)
bus
Executes the instructions
Working Memory
Connection/ Communication
Hardware: the Von Neumann Architecture
(Central Processing Unit)
CPU (Central Processing Unit) is the brain of the computer, as it coordinates and manages all the various hardware devices for program execution. It is composed by:
The control unit (CU) deals with the interpretation and execution of instructions. It is the component of a computer's CPU that directs the operation of the processor. It tells the computer's memory, arithmetic/logic unit and input and output devices how to respond to the instructions that have been sent to the processor.
bus
11/5/2018
6
Hardware: the Von Neumann Architecture
(Central Processing Unit)
An Arithmetic Logic Unit (ALU) that is a combinational digital electronic circuit that performs arithmetic and bitwise operations on integer binary numbers. An ALU is a fundamental building block of many types of computing circuits, including the CPU of computers, FPUs, and graphics processing units (GPUs). A single CPU, FPU or GPU may contain multiple ALUs.
Several Registers - A processor register is a quickly accessible location available to a computer's CPU. Registers usually consist of a small amount of fast storage, although some registers have specific hardware functions, and may be read-only or write-only. An example of register is the Program Counter.
bus
Hardware: the Von Neumann Architecture
(Central Processing Unit)
A clock that scans the time intervals in which the devices inside the C.P.U. It determines the speed of the C.P.U., expressed as the frequency or number of intervals scanned in the unit of time (eg, 512MHz, 1GHz, 2GHz ...)
Some examples of CPU: Intel® Core ™ I7, AMD® Phenom II,
bus
11/5/2018
7
13
CPU
Instruction Registry (IR)
Data Registry (DTR)
Addresses Registry(MAR)
Program Counter(PC)
Status registry (PSW)
Interrupt Registry(INTR)
A
B
Control Unit(CU)Clock
ALU
Control:-Fetch-decode-execute
Synchronization
Logic and Arithmeticoperations
Word to read from or write in the Memory Memory address to access
Instruction in execution
Address of the nextinstruction
Other Registries
CPU stateFlag: C, Z, S, O
Operands Registries
Hardware: the Von Neumann ArchitectureRandom-access memory (RAM) is a form of computer data storage that stores data and machine code currently being used. A random-access memory device allows data items to be read or written in almost the same amount of time irrespective of the physical location of data inside the memory.
It stores the instructions (in machine language) that must be performed and the data on which they operate. It has the characteristic of being:
volatile: its contents are lost when the computer is turned off
fast (nanosecond order, ie 10-9 seconds)expensivemedium-small size, from a few hundred
megabytes (eg 512MB in mobile devices) to a few gigabytes (desktop and server machines)
(Central Processing Unit)
bus
11/5/2018
8
15
word
Space of addressing
2k cells
RAMData and
instructions
Address Registry (MAR)
k bit
Data Registry (DTR)
load
store
h bit
0
1
2k-1
h bit
Volatile
Data to read or write
Cell Address
Hardware: the Von Neumann Architecture
(Central Processing Unit)The input/output controller (alternatively referred to as an input/output interface, IOC, or PIOC for Peripheral input/output controller) is a device that interfaces between an input or output device and the computer or hardware device. The input/output controller on a computer is commonly located on the motherboard.
bus
11/5/2018
9
17
I/O Device: Mass Memory• Although it is a key component, it is not part of
the Von Neumann machine in the strict sense• It consists of hard disks, tapes, CDs and DVD
ROMs, ...• Compared to the central memory it has the
characteristic of being• non-volatile• slow (for hard disk order of milliseconds,
i.e., 10-3 seconds)• economic• large (for hard drives hundreds of gigabytes,
a few terabytes)
(Central Processing Unit)
bus
• In contrast to RAM, the time required to read and write data items variessignificantly depending on their physical locations on the recording medium, due tomechanical limitations such as media rotation speeds and arm movement.
18
I/O Device
• They allow the communication of thecomputer with the outside and inparticular the reading of data in inputand the return of the results of theelaborations in output.
• These include terminals (keyboardand screen), mice, printers, scanners,...
(Central Processing Unit)
bus
11/5/2018
10
19
System Bus
• Allows communication between the variouscomponents
• It is subdivided into• Data bus: for data transmission• Address bus: for the transmission of central
memory addresses• Control bus: for the transmission of
commands to the various units and controlinformation
(Central Processing Unit)
bus