Docsity

Introducción a la informática: Bit, Byte y Memoria, Apuntes de Ingeniería de Telecomunicaciones

Toggle sidebar
bg1
01/12/2015
1
Fonaments d’InformàticaFonaments d’Informàtica
IntroductionIntroduction
t
o Com
p
uter S
y
stems
t
o Com
p
uter S
y
stems
pypy
Graus de Telecomunicacions:Graus de Telecomunicacions:
Sistemes de TelecomunicacióSistemes de Telecomunicació
Sistemes ElectrònicsSistemes Electrònics
Joan Oliver
Departament de Microelectrònica i Sistemes
Electrònics
ContentsContents
Introduction
The computer
:
basic architecture
Memory
Processor vs microcontroller
Performance
Lan a es
Lan
gu
a
g
es
2Disseny de sistemes electrònics - Joan Oliver
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12

Vista previa parcial del texto

¡Descarga Introducción a la informática: Bit, Byte y Memoria y más Apuntes en PDF de Ingeniería de Telecomunicaciones solo en Docsity!

Fonaments d’InformàticaFonaments d’Informàtica

IntroductionIntroduction to Computer Systemsto Computer Systemspp yy

Graus de Telecomunicacions:Graus de Telecomunicacions:

Sistemes de TelecomunicacióSistemes de Telecomunicació

Sistemes ElectrònicsSistemes Electrònics

Joan Oliver

Departament de Microelectrònica i Sistemes

Electrònics

ContentsContents

 Introduction

 The computer: basic architecture

 Memory

 Processor vs microcontroller

 Performance

 LanLan guagesa es

Disseny de sistemes electrònics - Joan Oliver 2

IntroductionIntroduction

 Computer Science – Computer Engineering

 in catalan

Informa ció + auto màtica  Informàtica

 Computer  ordinador (in catalan)

◦ From the Diccionari de la Llengua Catalana

 Màquina electrònica digital que permet el processament automàtic,

l’obtenció, l’emmagatzematge, la transformació i la comunicació de la

informació mitjançant programes preestablerts

Disseny de sistemes electrònics - Joan Oliver 3

◦ ...data? (a basic term)

 It can be defined as a set of symbols used to express or represent

a numeric value, an object, an event, an idea, in the appropriate

form to be processed

Introduction(II)Introduction(II)

Bit  Elemental data of the computer

Elementary unit of information

It grabs two values: 0 ò 1  Binary code  Bit = Bi nary Digi t

Byte multiples SI prefix (SI) Binary prefix (IEC 60027-2) Name Symbol Multipl e

Name Symbol Multiple

The computer only works with binary data. Therefore, the input/output

requires encoding / decoding of binary data

Units in computation...

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

The computer: The hardwareThe computer: The hardware

Disseny de sistemes electrònics - Joan Oliver 7

The hardware in an embedded systemThe hardware in an embedded system

RASPBERRY

Disseny de sistemes electrònics - Joan Oliver 8

Components of the computer: CPUComponents of the computer: CPU

◦ Central process unit (CPU)

 Arithmetic logic unit (ALU) – Data path

 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

 Control unit

 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.

Components of the computer: memoryComponents of the computer: memory

◦ Memory organizes in bytes

◦ MemoryMemory positionspositions areare adressedadressed usingusing anan

address bus

 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)

◦ The compiler and the process that

controls the system at operating time

Disseny de sistemes electrònics - Joan Oliver 10

y p g

are the responsibles of the memory

assignament.

 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)

Memory and wordMemory and word

◦ Word and memory^ Bytes^ Adreça

organization 0001

g

◦ 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

Memory and word (II)Memory and word (II)

◦ 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?

Addr

0000

Addr

0000

Addr

0004

Addr

0004

AddrAddr

Disseny de sistemes electrònics - Joan Oliver 16

Addr

0008

Addr

0008

Addr

0012

Addr

0012

Processor vs microcontrolerProcessor vs microcontroler

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.

Performance of the computerPerformance of the computer

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.

Performance of the computer (II)Performance of the computer (II)

 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 

Computer conceptual levelsComputer conceptual levels

Technology? Architecture? SW? HW?

Disseny de sistemes electrònics - Joan Oliver 22

Languages (III)Languages (III)

 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.

Languages (IV)Languages (IV)

 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

Languages (V)Languages (V)

 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, ...

Languages (VI)Languages (VI)

 Compilation process in gcc

Disseny de sistemes electrònics - Joan Oliver 28

A brief historic introduction (II)A brief historic introduction (II)

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

A brief historic introduction (III)A brief historic introduction (III)

1st computer generation

(vaccum tubes)

1943  J. Eckert & J. Mauchly

(Pennsylvania University) 

ElectronicElectronic NumericalNumerical IntegratorIntegrator andand

Computer (ENIAC). Destined to

calculate trajectories. Ended in

 25 m. long, 2.7 m. high & 60 cm.

wide, 18.000 vacuum tubes  1900

additions/segon

1945 J. V. Neumann, J. P. Eckert & J. Mauchly  EDVAC. Using binary code.

John von Neumann architecture. Assembler.

Disseny de sistemes electrònics - Joan Oliver 32

J

50’s  UNIVACs. General purpose computers. Ability to compute

matrices, logistic problems, etc. Despite being expensive (>1 million dolar),

it produced 48 units ...a success!

 General caracteristics: Large machines and heavy. High energy

consumption. The system stopped often due to system component failures.

Input/output using punch cards. Programming in assembler. Information

stored on magnetic drum s.

A brief historic introduction (IV)A brief historic introduction (IV)

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

IBM701 (1952) IBM7094II (1964)

Technology:

Memory:

Cycle time:

Capacity mem:

O d

Vacuum tubes

Vacuum tubes

30 seg

2 K

Transistors

Ferrites

1.4 seg

32 K

Disseny de sistemes electrònics - Joan Oliver 33

Opcodes:

Arithmetic:

Fixed point

Double floating point precision

3d computer generation (Integrated circuit) 1960  Firs integrated circuit  More reliable  Birth of the PDP11, the first minicomputer (at a only! 20.000$)

A brief historic introduction (V)A brief historic introduction (V)

70’s and on...

 New integrated circuits technologiesg g

 Intel 4004  2300 transistors  First

processor in a chip

 Semiconductor memory

Supercomputers (ending the 70’s)

Early 80’s  Commodore  Only 300$!

IBM  PC

Disseny de sistemes electrònics - Joan Oliver 34

IBM  PC

90’s  Home introduction of the PC

2000...  Embedded systems