SlideShare a Scribd company logo
1 of 24
Computer System Architecture
CSC 203 1.5
Computer System Architecture
Budditha Hettige
Department of Statistics and Computer Science
University of Sri Jayewardenepura
1
Budditha Hettige
http://www.dscs.sjp.ac.lk/~budditha/index.php
Computer System Architecture
IntroductionIntroduction
Budditha Hettige http://www.dscs.sjp.ac.lk/~budditha/index.php 2
Computer System Architecture
What is Computer?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
3Budditha Hettige http://www.dscs.sjp.ac.lk/~budditha/index.php
Computer System Architecture
What is Machine Language?What is Machine Language?
• Machine language(ML) is a system of instructions and
data executed directly by a computer's Central Processing
Unit
• The codes are strings of 0s and 1s, or binary digits (“bits”)
• Instructions typically use some bits to represent
– Operations (addition )
– Operands or
– Location of the next instruction.
4Budditha Hettige http://www.dscs.sjp.ac.lk/~budditha/index.php
Computer System Architecture
Machine Language contd..Machine Language contd..
• Advantages
– Machine can directly access (Electronic circuit)
– High Speed
• Disadvantages
– Human cannot identify
– Machine depended
(Hardware depended)
5Budditha Hettige http://www.dscs.sjp.ac.lk/~budditha/index.php
Computer System Architecture
More on MachinesMore on Machines
• Machine defines a language
– Set of instructions carried out by the machine
• Language defines by the machine
– Machine executing all the program, writing in the
language
Machine LanguageLanguageLanguageLanguage
6Budditha Hettige http://www.dscs.sjp.ac.lk/~budditha/index.php
Computer System Architecture
Two Layer (Level) MachineTwo Layer (Level) Machine
• This machine
contains only New
Language (L1) and
the Machine
language (LO)
Virtual Machine (L1)
Machine Language (L0)
Translate/
Interpreter
MachineMachine
Virtual
Machine
(L1)
Machine
Language
(L0)
7Budditha Hettige http://www.dscs.sjp.ac.lk/~budditha/index.php
Computer System Architecture
Translation (LTranslation (L11 →→ LL00))
1. Replace each instruction written in L1 in to LO
2. Program now execute new Program
3. Program is called compiler/ translator
8Budditha Hettige http://www.dscs.sjp.ac.lk/~budditha/index.php
Computer System Architecture
InterpretationInterpretation
• Each instruction in L1 can execute through the
relevant L0 instructions directly
• Program is call interpreter
9Budditha Hettige http://www.dscs.sjp.ac.lk/~budditha/index.php
Computer System Architecture
Multi Level MachineMulti Level Machine
10Budditha Hettige http://www.dscs.sjp.ac.lk/~budditha/index.php
High-level Language Program (C, C++)
Assembly Language Program
Machine Language
Computer System Architecture
Multilevel MachineMultilevel Machine
11Budditha Hettige http://www.dscs.sjp.ac.lk/~budditha/index.php
Virtual Machine Ln
Virtual Machine Ln-1
.
.
.
Machine Language L0
Computer System Architecture
Six-Level MachineSix-Level Machine
• Computer that is designed up to the 6th level of computer
architecture
12Budditha Hettige http://www.dscs.sjp.ac.lk/~budditha/index.php
Computer System Architecture
Digital Logic LevelDigital Logic Level
• The interesting objects at this level are gates;
• Each gate has one or more digital inputs (0 or 1)
• Each gate is built of at most a handful of
transistors
• A small number of gates can be combined to
form a 1-bit memory, which can store a 0 or 1;
• The 1-bit memories can be combined in groups
of, for example, 16, 32 or 64 to form registers
• Each register can hold a single binary number
up to some maximum;
• Gates can also be combined to form the main
computing engine itself.
13Budditha Hettige http://www.dscs.sjp.ac.lk/~budditha/index.php
Computer System Architecture
Microarchitecture levelMicroarchitecture 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.
14Budditha Hettige http://www.dscs.sjp.ac.lk/~budditha/index.php
Computer System Architecture
Data PathData Path
15Budditha Hettige http://www.dscs.sjp.ac.lk/~budditha/index.php
Computer System Architecture
Instruction Set Architecture LevelInstruction Set Architecture Level
• The ISA level is defined by the
machine’s instruction set
• This is a set of instructions carried
out interpretively by the
microprogram or
hardware execution sets
16Budditha Hettige http://www.dscs.sjp.ac.lk/~budditha/index.php
Computer System Architecture
Operating System LevelOperating System Level
• Uses different memory organization, a new set of
instructions, the ability to run one or more
programs concurrently
• Those level 3 instructions identical to level 2’s
are carried out directly by the microprogram (or
hardwired control), not by the OS;
• In other words, some of the level 3 instructions
are interpreted by the OS and some of the level 3
instructions are interpreted directly by the
microprogram;
• This level is hybrid
17Budditha Hettige http://www.dscs.sjp.ac.lk/~budditha/index.php
Computer System Architecture
Assembly Language LevelAssembly Language Level
• This level is really a symbolic form
for the one of the underlying
languages;
• This level provides a method for
people to write programs for levels 1,
2 and 3 in a form that is not as
unpleasant as the virtual machine
languages themselves;
• Programs in assembly language are
first translated to level 1, 2 or 3
language and then interpreted by the
appropriate virtual or actual machine;
• The program that performs the
translation is called an assembler.
18Budditha Hettige http://www.dscs.sjp.ac.lk/~budditha/index.php
Computer System Architecture
Between Levels 3 and 4Between Levels 3 and 4
• The lower 3 levels are not for the
average programmer – Instead they
are primarily for running the
interpreters and translators needed
to support the higher levels;
• These are written by system
programmers who specialise in
developing new virtual machines;
• Levels 4 and above are intended for
the applications programmer
• Levels 2 and 3 are always
interpreted, Levels 4 and above are
usually, but not always, supported
by translation;
19Budditha Hettige http://www.dscs.sjp.ac.lk/~budditha/index.php
Computer System Architecture
Problem-oriented Language LevelProblem-oriented Language Level
• This level usually consists of
languages designed to be used by
applications programmers;
• These languages are generally called
higher level languages
• Some examples: Java, C, BASIC,
LISP, Prolog;
• Programs written in these languages
are generally translated to Level 3 or
4 by translators known as compilers,
although occasionally they are
interpreted instead;
20Budditha Hettige http://www.dscs.sjp.ac.lk/~budditha/index.php
Computer System Architecture
Multilevel Machines: HardwareMultilevel Machines: Hardware
• Programs written in a computer’s true machine language (level 1)
can be directly executed by the computer’s electronic circuits (level
0), without any intervening interpreters or translators.
• These electronic circuits, along with the memory and input/output
devices, form the computer’s hardware.
• Hardware consists of tangible objects:
– integrated circuits
– printed circuit boards
– Cables
– power supplies
– Memories
– Printers
• Hardware is not abstract ideas, algorithms, or instructions.
21Budditha Hettige http://www.dscs.sjp.ac.lk/~budditha/index.php
Computer System Architecture
Multi level machine SoftwareMulti level machine Software
• Software consists of algorithms (detailed instructions
telling how to do something) and their computer
representations-namely, programs
• Programs can be stored on hard disk, floppy disk, CD-
ROM, or other media but the essence of software is the set
of instructions that makes up the programs, not the physical
media on which they are recorded.
• In the very first computers, the boundary between hardware
and software was crystal clear.
• Over time, however, it has blurred considerably, primarily
due to the addition, removal, and merging of levels as
computers have evolved.
• Hardware and software are logically equivalent
22Budditha Hettige http://www.dscs.sjp.ac.lk/~budditha/index.php
Computer System Architecture
The Hardware/Software BoundaryThe Hardware/Software Boundary
• Any operation performed by software can also be
built directly into the hardware;
• Also, any instruction executed by the hardware
can also be simulated in software;
• The decision to put certain functions in hardware
and others in software is based on such factors as:
– Cost
– Speed
– Reliability and
– Frequency of expected changes
23Budditha Hettige http://www.dscs.sjp.ac.lk/~budditha/index.php
Computer System Architecture
ExercisesExercises
1. Explain each of the following terms in your
own words
– Machine Language
– Instruction
1. What are the differences between
Interpretation and translation?
2. What are Multilevel Machines?
3. What are the differences between two-level
machine and the six-level machine
24Budditha Hettige http://www.dscs.sjp.ac.lk/~budditha/index.php

More Related Content

What's hot (20)

Computer hardware
Computer hardwareComputer hardware
Computer hardware
 
Motherboard, It's Functions and It's Components
Motherboard, It's Functions and It's ComponentsMotherboard, It's Functions and It's Components
Motherboard, It's Functions and It's Components
 
Risc and cisc eugene clewlow
Risc and cisc   eugene clewlowRisc and cisc   eugene clewlow
Risc and cisc eugene clewlow
 
History of CPU Architecture
History of CPU ArchitectureHistory of CPU Architecture
History of CPU Architecture
 
Modern cpus
Modern cpusModern cpus
Modern cpus
 
Aufbau Und Aufgaben Des Prozessors (Cpu)
Aufbau Und Aufgaben Des Prozessors (Cpu)Aufbau Und Aufgaben Des Prozessors (Cpu)
Aufbau Und Aufgaben Des Prozessors (Cpu)
 
How Operating system works.
How Operating system works. How Operating system works.
How Operating system works.
 
Embedded Linux
Embedded LinuxEmbedded Linux
Embedded Linux
 
Processor types
Processor typesProcessor types
Processor types
 
Generation of computer
Generation of computerGeneration of computer
Generation of computer
 
Computer hardware
Computer hardwareComputer hardware
Computer hardware
 
graphics processing unit ppt
graphics processing unit pptgraphics processing unit ppt
graphics processing unit ppt
 
A presentation on Motherboard
A presentation on MotherboardA presentation on Motherboard
A presentation on Motherboard
 
Comuputer processor
Comuputer processorComuputer processor
Comuputer processor
 
Presentation about computer hardware
Presentation about computer hardwarePresentation about computer hardware
Presentation about computer hardware
 
System Administration
System AdministrationSystem Administration
System Administration
 
Introdução a Informática Básica
Introdução a Informática BásicaIntrodução a Informática Básica
Introdução a Informática Básica
 
Operating system
Operating systemOperating system
Operating system
 
Cpu presentation
Cpu presentationCpu presentation
Cpu presentation
 
Final computer generations
Final computer generationsFinal computer generations
Final computer generations
 

Similar to Computer System Architecture Lecture Note 1: introduction

Organization of modern digital computers
Organization of modern digital computersOrganization of modern digital computers
Organization of modern digital computersDrRamaPrasathAssista
 
Embedded programming Embedded programming (1).pptx
Embedded programming Embedded programming (1).pptxEmbedded programming Embedded programming (1).pptx
Embedded programming Embedded programming (1).pptxlematadese670
 
Mba i-ifm-u-2-computer software
Mba i-ifm-u-2-computer softwareMba i-ifm-u-2-computer software
Mba i-ifm-u-2-computer softwareRai University
 
Computer
ComputerComputer
ComputerCAFE91
 
avicHomphs-150226100804-conversion-gate01 (1)(1).pdf
avicHomphs-150226100804-conversion-gate01 (1)(1).pdfavicHomphs-150226100804-conversion-gate01 (1)(1).pdf
avicHomphs-150226100804-conversion-gate01 (1)(1).pdfRajDhrub
 
computer hardware and software
computer hardware and softwarecomputer hardware and software
computer hardware and softwareavinash gupta
 
The functionality of a pc
The functionality of a pcThe functionality of a pc
The functionality of a pcWaleed Alharbi
 
Neethu Narayanan- Operating System
 Neethu Narayanan- Operating System Neethu Narayanan- Operating System
Neethu Narayanan- Operating System19940213
 
Bca i-fundamental of computer-u-2- application and system software
Bca  i-fundamental of  computer-u-2- application and system softwareBca  i-fundamental of  computer-u-2- application and system software
Bca i-fundamental of computer-u-2- application and system softwareRai University
 
Bba i-introduction to computer-u-2- application and system software
Bba  i-introduction to computer-u-2- application and system softwareBba  i-introduction to computer-u-2- application and system software
Bba i-introduction to computer-u-2- application and system softwareRai University
 
Bsc cs 1 fit u-2 application and system software
Bsc cs 1 fit u-2 application and system softwareBsc cs 1 fit u-2 application and system software
Bsc cs 1 fit u-2 application and system softwareRai University
 
computer programing and utilization
computer programing and utilizationcomputer programing and utilization
computer programing and utilizationTushar Limbasiya
 
Mca i-fundamental of computer-u-2- application and system software
Mca  i-fundamental of  computer-u-2- application and system softwareMca  i-fundamental of  computer-u-2- application and system software
Mca i-fundamental of computer-u-2- application and system softwareRai University
 
Introduction to Operating System
Introduction to Operating SystemIntroduction to Operating System
Introduction to Operating SystemRashmi Bhat
 

Similar to Computer System Architecture Lecture Note 1: introduction (20)

CSC204PPTNOTES
CSC204PPTNOTESCSC204PPTNOTES
CSC204PPTNOTES
 
Organization of modern digital computers
Organization of modern digital computersOrganization of modern digital computers
Organization of modern digital computers
 
Embedded programming Embedded programming (1).pptx
Embedded programming Embedded programming (1).pptxEmbedded programming Embedded programming (1).pptx
Embedded programming Embedded programming (1).pptx
 
Week 01.pdf
Week 01.pdfWeek 01.pdf
Week 01.pdf
 
E.s unit 6
E.s unit 6E.s unit 6
E.s unit 6
 
Mba i-ifm-u-2-computer software
Mba i-ifm-u-2-computer softwareMba i-ifm-u-2-computer software
Mba i-ifm-u-2-computer software
 
Computer
ComputerComputer
Computer
 
avicHomphs-150226100804-conversion-gate01 (1)(1).pdf
avicHomphs-150226100804-conversion-gate01 (1)(1).pdfavicHomphs-150226100804-conversion-gate01 (1)(1).pdf
avicHomphs-150226100804-conversion-gate01 (1)(1).pdf
 
computer hardware and software
computer hardware and softwarecomputer hardware and software
computer hardware and software
 
The functionality of a pc
The functionality of a pcThe functionality of a pc
The functionality of a pc
 
main
mainmain
main
 
Clifford sugerman
Clifford sugermanClifford sugerman
Clifford sugerman
 
Neethu Narayanan- Operating System
 Neethu Narayanan- Operating System Neethu Narayanan- Operating System
Neethu Narayanan- Operating System
 
Bca i-fundamental of computer-u-2- application and system software
Bca  i-fundamental of  computer-u-2- application and system softwareBca  i-fundamental of  computer-u-2- application and system software
Bca i-fundamental of computer-u-2- application and system software
 
Bba i-introduction to computer-u-2- application and system software
Bba  i-introduction to computer-u-2- application and system softwareBba  i-introduction to computer-u-2- application and system software
Bba i-introduction to computer-u-2- application and system software
 
Bsc cs 1 fit u-2 application and system software
Bsc cs 1 fit u-2 application and system softwareBsc cs 1 fit u-2 application and system software
Bsc cs 1 fit u-2 application and system software
 
OPERATING SYSTEM
OPERATING SYSTEMOPERATING SYSTEM
OPERATING SYSTEM
 
computer programing and utilization
computer programing and utilizationcomputer programing and utilization
computer programing and utilization
 
Mca i-fundamental of computer-u-2- application and system software
Mca  i-fundamental of  computer-u-2- application and system softwareMca  i-fundamental of  computer-u-2- application and system software
Mca i-fundamental of computer-u-2- application and system software
 
Introduction to Operating System
Introduction to Operating SystemIntroduction to Operating System
Introduction to Operating System
 

More from Budditha Hettige

Graphics Programming OpenGL & GLUT in Code::Blocks
Graphics Programming OpenGL & GLUT in Code::BlocksGraphics Programming OpenGL & GLUT in Code::Blocks
Graphics Programming OpenGL & GLUT in Code::BlocksBudditha Hettige
 
Introduction to Computer Graphics
Introduction to Computer GraphicsIntroduction to Computer Graphics
Introduction to Computer GraphicsBudditha Hettige
 
Computer System Architecture Lecture Note 9 IO fundamentals
Computer System Architecture Lecture Note 9 IO fundamentalsComputer System Architecture Lecture Note 9 IO fundamentals
Computer System Architecture Lecture Note 9 IO fundamentalsBudditha Hettige
 
Computer System Architecture Lecture Note 8.1 primary Memory
Computer System Architecture Lecture Note 8.1 primary MemoryComputer System Architecture Lecture Note 8.1 primary Memory
Computer System Architecture Lecture Note 8.1 primary MemoryBudditha Hettige
 
Computer System Architecture Lecture Note 8.2 Cache Memory
Computer System Architecture Lecture Note 8.2 Cache MemoryComputer System Architecture Lecture Note 8.2 Cache Memory
Computer System Architecture Lecture Note 8.2 Cache MemoryBudditha Hettige
 
Computer System Architecture Lecture Note 7 addressing
Computer System Architecture Lecture Note 7 addressingComputer System Architecture Lecture Note 7 addressing
Computer System Architecture Lecture Note 7 addressingBudditha Hettige
 
Computer System Architecture Lecture Note 6: hardware performance
Computer System Architecture Lecture Note 6: hardware performanceComputer System Architecture Lecture Note 6: hardware performance
Computer System Architecture Lecture Note 6: hardware performanceBudditha Hettige
 
Computer System Architecture Lecture Note 5: microprocessor technology
Computer System Architecture Lecture Note 5: microprocessor technologyComputer System Architecture Lecture Note 5: microprocessor technology
Computer System Architecture Lecture Note 5: microprocessor technologyBudditha Hettige
 

More from Budditha Hettige (20)

Algorithm analysis
Algorithm analysisAlgorithm analysis
Algorithm analysis
 
Sorting
SortingSorting
Sorting
 
Link List
Link ListLink List
Link List
 
Queue
QueueQueue
Queue
 
02 Stack
02 Stack02 Stack
02 Stack
 
Data Structures 01
Data Structures 01Data Structures 01
Data Structures 01
 
Drawing Fonts
Drawing FontsDrawing Fonts
Drawing Fonts
 
Texture Mapping
Texture Mapping Texture Mapping
Texture Mapping
 
Lighting
LightingLighting
Lighting
 
Viewing
ViewingViewing
Viewing
 
OpenGL 3D Drawing
OpenGL 3D DrawingOpenGL 3D Drawing
OpenGL 3D Drawing
 
2D Drawing
2D Drawing2D Drawing
2D Drawing
 
Graphics Programming OpenGL & GLUT in Code::Blocks
Graphics Programming OpenGL & GLUT in Code::BlocksGraphics Programming OpenGL & GLUT in Code::Blocks
Graphics Programming OpenGL & GLUT in Code::Blocks
 
Introduction to Computer Graphics
Introduction to Computer GraphicsIntroduction to Computer Graphics
Introduction to Computer Graphics
 
Computer System Architecture Lecture Note 9 IO fundamentals
Computer System Architecture Lecture Note 9 IO fundamentalsComputer System Architecture Lecture Note 9 IO fundamentals
Computer System Architecture Lecture Note 9 IO fundamentals
 
Computer System Architecture Lecture Note 8.1 primary Memory
Computer System Architecture Lecture Note 8.1 primary MemoryComputer System Architecture Lecture Note 8.1 primary Memory
Computer System Architecture Lecture Note 8.1 primary Memory
 
Computer System Architecture Lecture Note 8.2 Cache Memory
Computer System Architecture Lecture Note 8.2 Cache MemoryComputer System Architecture Lecture Note 8.2 Cache Memory
Computer System Architecture Lecture Note 8.2 Cache Memory
 
Computer System Architecture Lecture Note 7 addressing
Computer System Architecture Lecture Note 7 addressingComputer System Architecture Lecture Note 7 addressing
Computer System Architecture Lecture Note 7 addressing
 
Computer System Architecture Lecture Note 6: hardware performance
Computer System Architecture Lecture Note 6: hardware performanceComputer System Architecture Lecture Note 6: hardware performance
Computer System Architecture Lecture Note 6: hardware performance
 
Computer System Architecture Lecture Note 5: microprocessor technology
Computer System Architecture Lecture Note 5: microprocessor technologyComputer System Architecture Lecture Note 5: microprocessor technology
Computer System Architecture Lecture Note 5: microprocessor technology
 

Recently uploaded

Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
MICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptxMICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptxabhijeetpadhi001
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupJonathanParaisoCruz
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxJiesonDelaCerna
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...jaredbarbolino94
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 

Recently uploaded (20)

Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
MICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptxMICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptx
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized Group
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptx
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 

Computer System Architecture Lecture Note 1: introduction

  • 1. Computer System Architecture CSC 203 1.5 Computer System Architecture Budditha Hettige Department of Statistics and Computer Science University of Sri Jayewardenepura 1 Budditha Hettige http://www.dscs.sjp.ac.lk/~budditha/index.php
  • 2. Computer System Architecture IntroductionIntroduction Budditha Hettige http://www.dscs.sjp.ac.lk/~budditha/index.php 2
  • 3. Computer System Architecture What is Computer?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 3Budditha Hettige http://www.dscs.sjp.ac.lk/~budditha/index.php
  • 4. Computer System Architecture What is Machine Language?What is Machine Language? • Machine language(ML) is a system of instructions and data executed directly by a computer's Central Processing Unit • The codes are strings of 0s and 1s, or binary digits (“bits”) • Instructions typically use some bits to represent – Operations (addition ) – Operands or – Location of the next instruction. 4Budditha Hettige http://www.dscs.sjp.ac.lk/~budditha/index.php
  • 5. Computer System Architecture Machine Language contd..Machine Language contd.. • Advantages – Machine can directly access (Electronic circuit) – High Speed • Disadvantages – Human cannot identify – Machine depended (Hardware depended) 5Budditha Hettige http://www.dscs.sjp.ac.lk/~budditha/index.php
  • 6. Computer System Architecture More on MachinesMore on Machines • Machine defines a language – Set of instructions carried out by the machine • Language defines by the machine – Machine executing all the program, writing in the language Machine LanguageLanguageLanguageLanguage 6Budditha Hettige http://www.dscs.sjp.ac.lk/~budditha/index.php
  • 7. Computer System Architecture Two Layer (Level) MachineTwo Layer (Level) Machine • This machine contains only New Language (L1) and the Machine language (LO) Virtual Machine (L1) Machine Language (L0) Translate/ Interpreter MachineMachine Virtual Machine (L1) Machine Language (L0) 7Budditha Hettige http://www.dscs.sjp.ac.lk/~budditha/index.php
  • 8. Computer System Architecture Translation (LTranslation (L11 →→ LL00)) 1. Replace each instruction written in L1 in to LO 2. Program now execute new Program 3. Program is called compiler/ translator 8Budditha Hettige http://www.dscs.sjp.ac.lk/~budditha/index.php
  • 9. Computer System Architecture InterpretationInterpretation • Each instruction in L1 can execute through the relevant L0 instructions directly • Program is call interpreter 9Budditha Hettige http://www.dscs.sjp.ac.lk/~budditha/index.php
  • 10. Computer System Architecture Multi Level MachineMulti Level Machine 10Budditha Hettige http://www.dscs.sjp.ac.lk/~budditha/index.php High-level Language Program (C, C++) Assembly Language Program Machine Language
  • 11. Computer System Architecture Multilevel MachineMultilevel Machine 11Budditha Hettige http://www.dscs.sjp.ac.lk/~budditha/index.php Virtual Machine Ln Virtual Machine Ln-1 . . . Machine Language L0
  • 12. Computer System Architecture Six-Level MachineSix-Level Machine • Computer that is designed up to the 6th level of computer architecture 12Budditha Hettige http://www.dscs.sjp.ac.lk/~budditha/index.php
  • 13. Computer System Architecture Digital Logic LevelDigital Logic Level • The interesting objects at this level are gates; • Each gate has one or more digital inputs (0 or 1) • Each gate is built of at most a handful of transistors • A small number of gates can be combined to form a 1-bit memory, which can store a 0 or 1; • The 1-bit memories can be combined in groups of, for example, 16, 32 or 64 to form registers • Each register can hold a single binary number up to some maximum; • Gates can also be combined to form the main computing engine itself. 13Budditha Hettige http://www.dscs.sjp.ac.lk/~budditha/index.php
  • 14. Computer System Architecture Microarchitecture levelMicroarchitecture 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. 14Budditha Hettige http://www.dscs.sjp.ac.lk/~budditha/index.php
  • 15. Computer System Architecture Data PathData Path 15Budditha Hettige http://www.dscs.sjp.ac.lk/~budditha/index.php
  • 16. Computer System Architecture Instruction Set Architecture LevelInstruction Set Architecture Level • The ISA level is defined by the machine’s instruction set • This is a set of instructions carried out interpretively by the microprogram or hardware execution sets 16Budditha Hettige http://www.dscs.sjp.ac.lk/~budditha/index.php
  • 17. Computer System Architecture Operating System LevelOperating System Level • Uses different memory organization, a new set of instructions, the ability to run one or more programs concurrently • Those level 3 instructions identical to level 2’s are carried out directly by the microprogram (or hardwired control), not by the OS; • In other words, some of the level 3 instructions are interpreted by the OS and some of the level 3 instructions are interpreted directly by the microprogram; • This level is hybrid 17Budditha Hettige http://www.dscs.sjp.ac.lk/~budditha/index.php
  • 18. Computer System Architecture Assembly Language LevelAssembly Language Level • This level is really a symbolic form for the one of the underlying languages; • This level provides a method for people to write programs for levels 1, 2 and 3 in a form that is not as unpleasant as the virtual machine languages themselves; • Programs in assembly language are first translated to level 1, 2 or 3 language and then interpreted by the appropriate virtual or actual machine; • The program that performs the translation is called an assembler. 18Budditha Hettige http://www.dscs.sjp.ac.lk/~budditha/index.php
  • 19. Computer System Architecture Between Levels 3 and 4Between Levels 3 and 4 • The lower 3 levels are not for the average programmer – Instead they are primarily for running the interpreters and translators needed to support the higher levels; • These are written by system programmers who specialise in developing new virtual machines; • Levels 4 and above are intended for the applications programmer • Levels 2 and 3 are always interpreted, Levels 4 and above are usually, but not always, supported by translation; 19Budditha Hettige http://www.dscs.sjp.ac.lk/~budditha/index.php
  • 20. Computer System Architecture Problem-oriented Language LevelProblem-oriented Language Level • This level usually consists of languages designed to be used by applications programmers; • These languages are generally called higher level languages • Some examples: Java, C, BASIC, LISP, Prolog; • Programs written in these languages are generally translated to Level 3 or 4 by translators known as compilers, although occasionally they are interpreted instead; 20Budditha Hettige http://www.dscs.sjp.ac.lk/~budditha/index.php
  • 21. Computer System Architecture Multilevel Machines: HardwareMultilevel Machines: Hardware • Programs written in a computer’s true machine language (level 1) can be directly executed by the computer’s electronic circuits (level 0), without any intervening interpreters or translators. • These electronic circuits, along with the memory and input/output devices, form the computer’s hardware. • Hardware consists of tangible objects: – integrated circuits – printed circuit boards – Cables – power supplies – Memories – Printers • Hardware is not abstract ideas, algorithms, or instructions. 21Budditha Hettige http://www.dscs.sjp.ac.lk/~budditha/index.php
  • 22. Computer System Architecture Multi level machine SoftwareMulti level machine Software • Software consists of algorithms (detailed instructions telling how to do something) and their computer representations-namely, programs • Programs can be stored on hard disk, floppy disk, CD- ROM, or other media but the essence of software is the set of instructions that makes up the programs, not the physical media on which they are recorded. • In the very first computers, the boundary between hardware and software was crystal clear. • Over time, however, it has blurred considerably, primarily due to the addition, removal, and merging of levels as computers have evolved. • Hardware and software are logically equivalent 22Budditha Hettige http://www.dscs.sjp.ac.lk/~budditha/index.php
  • 23. Computer System Architecture The Hardware/Software BoundaryThe Hardware/Software Boundary • Any operation performed by software can also be built directly into the hardware; • Also, any instruction executed by the hardware can also be simulated in software; • The decision to put certain functions in hardware and others in software is based on such factors as: – Cost – Speed – Reliability and – Frequency of expected changes 23Budditha Hettige http://www.dscs.sjp.ac.lk/~budditha/index.php
  • 24. Computer System Architecture ExercisesExercises 1. Explain each of the following terms in your own words – Machine Language – Instruction 1. What are the differences between Interpretation and translation? 2. What are Multilevel Machines? 3. What are the differences between two-level machine and the six-level machine 24Budditha Hettige http://www.dscs.sjp.ac.lk/~budditha/index.php