Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Budditha Hettige
Department of Statistics and Computer Science University of Sri Jayewardenepura
1
Introduction
Budditha Hettige
http://www.dscs.sjp.ac.lk/~budditha/index.html
What is Computer?
Is a machine that can solve problems for people by carrying out instructions given to it The sequence of instructions is call Program The language machine can understand is call machine language
Budditha Hettige
http://www.dscs.sjp.ac.lk/~budditha/index.html
Budditha Hettige
http://www.dscs.sjp.ac.lk/~budditha/index.html
Disadvantages
Human cannot identify Machine depended (Hardware depended)
Budditha Hettige
http://www.dscs.sjp.ac.lk/~budditha/index.html
More on Machines
Machine defines a language
Set of instructions carried out by the machine
Language
Machine
Language
Budditha Hettige
http://www.dscs.sjp.ac.lk/~budditha/index.html
Machine
Budditha Hettige
http://www.dscs.sjp.ac.lk/~budditha/index.html
Budditha Hettige
http://www.dscs.sjp.ac.lk/~budditha/index.html
Interpretation
Each instruction in L1 can execute through the relevant L0 instructions directly Program is call interpreter
Budditha Hettige
http://www.dscs.sjp.ac.lk/~budditha/index.html
Machine Language
Budditha Hettige
http://www.dscs.sjp.ac.lk/~budditha/index.html
10
Multilevel Machine
Virtual Machine Ln
Machine Language L0
Budditha Hettige
http://www.dscs.sjp.ac.lk/~budditha/index.html
11
Six-Level Machine
Computer that is designed up to the 6th level of computer architecture
Budditha Hettige
http://www.dscs.sjp.ac.lk/~budditha/index.html
12
13
Microarchitecture level
A collection of 8-32 registers that form a local memory and a circuit called an ALU (Arithmetic Logic Unit) that is capable of performing simple arithmetic operations; The registers are connected to the ALU to form a data path over which the data flow; The basic operation of the data path consists of selecting one or two registers having the ALU operate on them; On some machines the operation of the data path is controlled by a program called a microprogram, on other machine it is controlled by hardware.
Budditha Hettige
http://www.dscs.sjp.ac.lk/~budditha/index.html
14
Data Path
Budditha Hettige
http://www.dscs.sjp.ac.lk/~budditha/index.html
15
Budditha Hettige
http://www.dscs.sjp.ac.lk/~budditha/index.html
16
Budditha Hettige
http://www.dscs.sjp.ac.lk/~budditha/index.html
17
18
19
20
Budditha Hettige
http://www.dscs.sjp.ac.lk/~budditha/index.html
21
22
Budditha Hettige
http://www.dscs.sjp.ac.lk/~budditha/index.html
Exercises
1. Explain each of the following terms in your own words
Machine Language Instruction
2. What are the differences between Interpretation and translation? 3. What are Multilevel Machines? 4. What are the differences between two-level machine and the six-level machine
Budditha Hettige
http://www.dscs.sjp.ac.lk/~budditha/index.html
24