










Prepara tus exámenes y mejora tus resultados gracias a la gran cantidad de recursos disponibles en Docsity
Gana puntos ayudando a otros estudiantes o consíguelos activando un Plan Premium
Esta página no es visible en la vista previa
¡No te pierdas las partes importantes!











Disseny de sistemes electrònics - Joan Oliver 2
Disseny de sistemes electrònics - Joan Oliver 3
Byte multiples SI prefix (SI) Binary prefix (IEC 60027-2) Name Symbol Multipl e
Name Symbol Multiple
Bit A value: 0/ Byte 8 bits = 2 3 K (quilo) 2 10 = 1024 1 1Kb = 1024 bits, 1KB = 1024 Bytes M (mega) 2 20 = 1024 2 = 1 048 576
Disseny de sistemes electrònics - Joan Oliver 4
M (mega) 2 = 1024 = 1.048.576 1MB = 1024 Bytes G (giga) 2 30 = 1024 3 = ... T (tera) 2 40 = 1024 4 P (peta) 2 50 = 1024 5 E (exa) 2 60 = 1024 6 Z (zetta) 2 70 = 1024 7 Y (iota) 2 80 = 1024 8
Disseny de sistemes electrònics - Joan Oliver 7
Disseny de sistemes electrònics - Joan Oliver 8
CC ontains the electronics responsible for the execution of transactions andi h l i ibl f h i f i d records (small memory) which allows to save data temporarily, either to work with it, either to transmit it
Module responsible for synchronizing operations performed on the processor and of the sequencing of instructions. Processor operations are timed by a clock. The period of the clock is the cycle time
Disseny de sistemes electrònics - Joan Oliver 9
The period of the clock is the cycle time The clock frequency is the inverse of the cycle time. Usually measured in MHz or GHz. The instruction execution implies the control of the sequencing of the operations. The execution of an instruction usually involves several clock cycles.
Each byte uses a unique address In big systems the operating system is the responsible to manage the address space of each process (a process can be seen as a piece of algorrihtm)
Disseny de sistemes electrònics - Joan Oliver 10
They assign the location were programs are saved They assign the location were data is stored.
Components of the computer: the memory chipComponents of the computer: the memory chip
Disseny de sistemes electrònics - Joan Oliver 13
Components of the computer: memory and wordComponents of the computer: memory and word
◦ Word
◦ DataData sizesize (in(in integerinteger numbernumber ofof bits)bits) ◦ The CPU usually works with words that contain a power of 2 bits.
◦ Actual processors work with 32 bit words (
bytes) or 64 bit words (8 bytes).
Disseny de sistemes electrònics - Joan Oliver 14
32 bits Address space limited to 4GB Potential address space in 64 bit-words:
264 = 18EB (~1.8x2 19 bytes)
◦ Addresses specify the location of bytes in memory ◦ Words with more than one byte use successive memory positions ◦ Thus, assuming that the word uses 32-bit words, words differ in 4 successive memory locations 0009 0010 0011 0012 0013 0014 0015 Disseny de sistemes electrònics - Joan Oliver 15
◦ E.g., using 32-bit words, which is the address of word 2?
0x
◦ Thus, given a 16- Adreça Bytes byte memory and considering the
64 bits word
32 bits word
8 bits word AddrAddr
considering the following memory organizations, which will be the memory addresses of the successive words starting at the word 0?
0000
0000
0004
0004
AddrAddr
Disseny de sistemes electrònics - Joan Oliver 16
0008
0008
0012
0012
8-bit AVR (Atmel)
Processor ◦ It is the central processing unit integrated in a chip.
8 bit AVR (Atmel) architecture
Disseny de sistemes electrònics - Joan Oliver 19
p ◦ Usually it requires of other functional units to communicate with the exterior. ◦ I.e., Pentium. Microcontroler ◦ Chip that works alone as a little computer ◦ Therefore, it contains some or all of the functional units of the computer, as memory and input/output modules.
Several parameters measure the performances/capacity of a computer:
◦ Storage capacity. Ability of a memory unit to store data temporarily or permanently (MB GBpermanently (MB, GB, ...) ) ◦ Memory access time. Time interval elapsed between the moment that an address is given to request/write data in memory and the finishing time of the read/write data operation. ◦ Word. Set of bits that comprise the data with which the ALU operates. ◦ Word-length is the number of bits the word have. Usually coincides with the number of bits of the processor registers and the width of the bus. The word length in memory does not have to match with the length of
Disseny de sistemes electrònics - Joan Oliver 20
g y g the word of the processor. In a certain way, it determines the speed of the processor. I.e., a double-precision operation (with respect to the word length) will require more memory accesses to grab the data, and more cycles to execute the operation. ◦ Bandwidth. Amount of information transferred per second between units. For example, between processor and memory.
The performance of the computer is measured in terms of its power capability. In the measure of the computing power requirements of a program, it must be considered: ◦ Runtime. Duration of the program. Depends on the number of instructions, the number of cycles per instruction and the frequency (or period) of the clock.
◦ The performance (speed) of a program on a computer is measured as the inverse of the runtime.
A computer architecture must maximize PS OPS f
f
t n·n·T nI·^ nc E I c
t E
^1
Disseny de sistemes electrònics - Joan Oliver 21
◦ MIPS and MFLOPS measure the operating speed of a computer ◦ If tE is the mean-time instruction execution time, the performance of a computer is given by
Care! These parameters may not be representative in the comparison of different computers, as their architecture could be designed for different applications!
Mflops t· 10
MIPS,R n t· 10
R n 6 E
Ofloat Ofloat 6 E
I I
Technology? Architecture? SW? HW?
Disseny de sistemes electrònics - Joan Oliver 22
Machine code ◦ Set of instructions interpreted by the electronic circuitry of the computer. ◦ Depends entirely on the processor.Each architecture has its own set of instructionsinstructions. ◦ It is the lowest level of programming. ◦ The instructions are strings of 0's and 1's. ◦ The instruction consists of an operation code and, when required, address and/or operand fields. ◦ It is an efficient language, but very unreliable and difficult to transport
Low level languages (assembler) M i b d di hi l f th i t ti th t h l t
Disseny de sistemes electrònics - Joan Oliver 25
◦ Mnemonics-based coding machine language of the instructions that helps to work with the computer in a more familiar coding. Processor dependent language. ◦ In order to be executed by the computer it must be translated into machine language. ◦ It is useful to work with him in microcontrollers.
High level language
◦ Languages more similar to regular speech. They solve the problems of human understanding of the machine languageg g g ◦ They are designed considering the programming task, making them portable and independent of the machine. ◦ The programs are easier to debug, the learning is easier and they help to reduce the time to create programs ◦ In return, they require more memory and execution time. ◦ E.g.: C/C++, Python, Fortran, Lisp, ...
Compilers
Disseny de sistemes electrònics - Joan Oliver 26
◦ They take the original program written in high level (source) and translate it into object code that is stored in a file. ◦ Linking with other programs (libraries) the computer will tranlate it into machine code. ◦ The translation requires complete files
Translators
◦ To run the program the translators take the source code and excute it instruction by instruction, without generating any object code. I.e., to run the program always be translatedl b l d ◦ E.g.: Basic, Python, ...
Operating system
◦ Another type of program specialized in the task of computer management with the mission to sort the information contained and to improve its performance. ◦ This program consists of a series of modules or subroutines that control the overall operation in order to help the user to use more efficiently and
Disseny de sistemes electrònics - Joan Oliver 27
p p y comfortable the computer. ◦ These programs often use a specific language called control program, and their instructions are called commands. ◦ E.g.: UNIX,Windows, Linux, Mac OS, ...
Disseny de sistemes electrònics - Joan Oliver 28
S XX Hollerith collects Babbage ideas W hWith the concept of the perforated h f h f d card, he creates the tabulating machine used to make the United States census 1924 Hollerith founds the International Business Machines.
Disseny de sistemes electrònics - Joan Oliver 31
Early XX s. Boole Algebra Vacuum tube Relays + gears 1939 Mark I i Mark II
Disseny de sistemes electrònics - Joan Oliver 32
2d compuer generation (transistors)
1947 J. Bardeen, W. Shockley i W.H. Brattain invented the transistor. It iIt is used immediately in computer industry d i di t l i t i d t
Ending the 40’s Introduction of the ferrite memory Introduction of the high level languages
Disseny de sistemes electrònics - Joan Oliver 33
3d computer generation (Integrated circuit) 1960 Firs integrated circuit More reliable Birth of the PDP11, the first minicomputer (at a only! 20.000$)
Disseny de sistemes electrònics - Joan Oliver 34