SlideShare a Scribd company logo
CS110: Models of Computing
Lecture 2
V. Kamakoti
3rd January 2008
•
•
•
•
•
•
•
•

What IS a computer?
A computer is a machine
Something that operates mechanically
But it is a flexible machine
Its behaviour is controlled by a program
A program is like a spell cast on a machine
Programmers are like wizards
Programs reside in the memory of the
machine
– Charles Babbage (1791-1871)
– “The stored program concept”
Early Computing Hardware

The Slide rule

The gear replaced the beads in
early mechanical calculators
“History of computing hardware”
From Wikipedia, the free encyclopedia

The Chinese Abacus
Jaquard looms

Used punched cards to weave different patterns
The Difference
Engine
Part of Babbage's difference
engine, assembled after his
death by Babbage's son, using
parts found in his laboratory.

The London Science Museum's
replica Difference Engine, built
from Babbage's design.
The First Programmer
Augusta Ada King, Countess of
Lovelace (December 10, 1815 –
November 27, 1852), born Augusta
Ada Byron, is mainly known for
having written a description of
Charles Babbage's early mechanical
general-purpose computer, the
analytical engine.

The programming language ADA is named after her.
ENIAC – the first electronic computer
Physically, ENIAC was
massive compared to modern
PC standards. It contained
17,468 vacuum tubes, 7,200
crystal diodes, 1,500 relays,
70,000 resistors, 10,000
capacitors and around 5
million hand-soldered joints.
It weighed 30 short tons (27 t),
was roughly 8 feet (2.4 m) by
3 feet (0.9 m) by 100 feet (30
m), took up 1800 square feet
(167 m²), and consumed 150
kW of power.
2000: Intel Pentium 4 Processor
Clock speed: 1.5 GHz
# Transistors: 42 million
Technology: 0.18µm CMOS
High Level Prog.

Assembly Language
Structured
Computer
Operating Systems

Digital Hardware

Organization
A typical PC Specification from
today’s Newspaper
•
•
•
•
•
•
•
•
•
•
•
•
•

Intel Core 2 Duo 6550 2.33GHz
2x2MB L2 Cache/ 1333MHz FSB
Intel DG31PR Motherboard
2GB DDR2 RAM 667MHz
160GB SATA 3Gbps HDD
Onboard Intel Graphics Controller
Onboard 10/100Mbps Ethernet
Onboard Sound card
19” Widescreen TFT Monitor (Viewsonic)
Logitech Keyboard and Optical Mouse
DVD Writer
Creative 2.0 Speakers
500VA UPS
The computing machine
PROCESSOR

MEMORY
01234…….

(say) 256 MEGABYTES

The computer is made up of a processor and a memory. The memory
can be thought of as a series of locations to store information.
The computing machine
PROCESSOR

MEMORY
01234…….

program

256 MEGABYTES

data

The processor treats part of the information in memory as instructions,
and a part of it as data. A program is a sequence of instructions
assembled for some given task. Most instructions operate on data. Some
instructions control the flow of the operations. It is even possible to treat
programs as data. By doing so a program could even modify itself.
Variables
• Each memory location is given a name.
• The name is the variable that refers to the
data stored in that location.
• Variables have types that define the
interpretation data.
– e.g. integers (1, 14, 25649), or characters (a, f, G,
H)

• All data is represented as binary strings. That
is, it is a sequence of 0’s and 1’s, of a
predetermined size – “word”. A byte is made
of 8 bits.
Instructions
• Instructions take data stored in variables as
arguments.
• Some instructions do some operation on the
data and store it back in some variable.
• The instruction “XX+1” on integer type says
that “Take the integer stored in X, add 1 to it,
and store it back in (location) X”..
• Other instructions tell the processor to do
something. For example, “jump” to a particular
instruction next, or to exit
Programs
• A program is a sequence of instructions.
• Normally the processor works as follows,
– Step A: pick next instruction in the sequence Program Counter
– Step B: Decode the instruction
– Step C: get data for the instruction to operate upon
– Step D: execute instruction on data (or “jump”)
– Step E: store results in designated location
(variable)

• Different parts of the processor are
responsible for the above steps.
Test Your Understanding Please copy in your notebook
• Name at least 20 important electronic
circuitry/peripherals inside/connected to
a PC.
• What are the four prominent levels in a
Structured Computer Organization?
• What are the five steps taken by the
processor to execute an instruction?
Test Your Understanding Please copy in your notebook
• Suppose each stage takes one
millisecond, then each instruction takes
five milliseconds to complete execution.
• Then 10000 instructions shall take
50000 milliseconds.
• Is there a way to improve this?
Answers
20 components
1)
2)
3)
4)
5)
6)
7)
8)

Motherboard
Processor Chip
Cache
Bus
Memory
Printer
USB pen drive
External Disk
20 components
9) CD/DVD Drive
10) Monitor
11) Webcam
12) Keyboard
13) Mouse
14) Graphics Card
15) Speaker
16) Mic
20 components
17) Network Card - Wired
18) Wireless Network card
19) Power Supply
20) Floppy drive
Four levels: High level, Assembler lang. level,
Operating Systems and Digital Hardware
Making it fast
Fetch + Inc. PC

I5
I4
I3
I2
I1
I4
I3
I2
I1

Decode Instrn
Fetch Data
Execute Instrn
Store Data

I3
I2
I1
I2
I1
I1

First Instruction
completes at end of
5th unit
With Pipelining
Second instruction
10000 Instructions
th unit
at end of 6
No pipelining takes
10000th instruction
50000 Units. Each
at end of 10004
hardware is
units
independent.
The concept
• Instruction Level Parallelism
• You can use more than one CPU - Multicore
Creative Problem - 1
• The Towers of Hanoi: Move from peg 1 to
peg 3, such that a larger disk is not on top of
a small one.

Src: wikipedia
One disk - one move
One disk - one move
Two disks - three moves
Two disks - Move 1
Two disks - Move 2
Two disks - Move 3
Three disks - 7 moves
Three disks - move 1
Three disks - move 2
Three disks - move 3
Three disks - move 4
Three disks - move 5
Three disks - move 6
Three disks - move 7
The problem
No. of Disks
1

No. of Moves
1

2

3

3

7

n

How many? Prove
it.
Thank You
• Monday
– Lab starts on Monday
•
•
•
•
•

RF-ID 1 to 60 - Monday batch
RF-ID 61 to 120 - Tuesday
RF-ID 121 to 180 - Wed
RF-ID 181 to 240 - Thurs
RF-ID 241 to 300 - Fri

– Lab details + solution to Towers of Hanoi

More Related Content

What's hot

Esd module2
Esd module2Esd module2
Esd module2
SOURAV KUMAR
 
Intel 8th generation and 7th gen microprocessor full details especially for t...
Intel 8th generation and 7th gen microprocessor full details especially for t...Intel 8th generation and 7th gen microprocessor full details especially for t...
Intel 8th generation and 7th gen microprocessor full details especially for t...
Chessin Chacko
 
Computer Hardware-Part 1
Computer Hardware-Part 1Computer Hardware-Part 1
Computer Hardware-Part 1
Coky Fauzi Alfi
 
Fundamentals of a Personal Computer
Fundamentals of a Personal ComputerFundamentals of a Personal Computer
Fundamentals of a Personal Computer
Best of Learning Technologies
 
Processor powerpoint
Processor powerpointProcessor powerpoint
Processor powerpoint
brennan_jame
 
Managing hardware assets
Managing hardware assetsManaging hardware assets
Managing hardware assets
Prof. Othman Alsalloum
 
Esd module1
Esd module1Esd module1
Esd module1
SOURAV KUMAR
 
Introduction to Computer Architecture & Organization
Introduction to Computer Architecture & OrganizationIntroduction to Computer Architecture & Organization
Introduction to Computer Architecture & Organization
babuece
 
Slides of cpu
Slides of cpuSlides of cpu
Slides of cpu
jennifer joe
 
Risc revolution
Risc revolutionRisc revolution
Risc revolution
Aanandha Saravanan
 
Computer hardware
Computer hardwareComputer hardware
Computer hardware
Jithesh Nair
 
Introduction to microprocessor notes
Introduction to microprocessor notesIntroduction to microprocessor notes
Introduction to microprocessor notes
SARITHA REDDY
 
4th generation intel core processoer
4th generation intel core processoer4th generation intel core processoer
4th generation intel core processoer
Aanamika Nath
 
Computer organization
Computer organizationComputer organization
Computer organization
Edlynne Ogena
 
Processor types
Processor typesProcessor types
Processor types
Amr Aboelgood
 
Lecture 1 - introduction to computer systems architecture 2018 / 2019
Lecture 1 - introduction to computer systems architecture 2018 / 2019Lecture 1 - introduction to computer systems architecture 2018 / 2019
Lecture 1 - introduction to computer systems architecture 2018 / 2019
Mousuf Zaman C
 
I7 processor
I7 processorI7 processor
I7 processor
Rajiv Bhandari
 
Three Central Processing Unit
Three   Central Processing UnitThree   Central Processing Unit
Three Central Processing Unit
MISY
 
Unit I Foc
Unit I FocUnit I Foc
Unit I Foc
JAYA
 
CPU
CPUCPU

What's hot (20)

Esd module2
Esd module2Esd module2
Esd module2
 
Intel 8th generation and 7th gen microprocessor full details especially for t...
Intel 8th generation and 7th gen microprocessor full details especially for t...Intel 8th generation and 7th gen microprocessor full details especially for t...
Intel 8th generation and 7th gen microprocessor full details especially for t...
 
Computer Hardware-Part 1
Computer Hardware-Part 1Computer Hardware-Part 1
Computer Hardware-Part 1
 
Fundamentals of a Personal Computer
Fundamentals of a Personal ComputerFundamentals of a Personal Computer
Fundamentals of a Personal Computer
 
Processor powerpoint
Processor powerpointProcessor powerpoint
Processor powerpoint
 
Managing hardware assets
Managing hardware assetsManaging hardware assets
Managing hardware assets
 
Esd module1
Esd module1Esd module1
Esd module1
 
Introduction to Computer Architecture & Organization
Introduction to Computer Architecture & OrganizationIntroduction to Computer Architecture & Organization
Introduction to Computer Architecture & Organization
 
Slides of cpu
Slides of cpuSlides of cpu
Slides of cpu
 
Risc revolution
Risc revolutionRisc revolution
Risc revolution
 
Computer hardware
Computer hardwareComputer hardware
Computer hardware
 
Introduction to microprocessor notes
Introduction to microprocessor notesIntroduction to microprocessor notes
Introduction to microprocessor notes
 
4th generation intel core processoer
4th generation intel core processoer4th generation intel core processoer
4th generation intel core processoer
 
Computer organization
Computer organizationComputer organization
Computer organization
 
Processor types
Processor typesProcessor types
Processor types
 
Lecture 1 - introduction to computer systems architecture 2018 / 2019
Lecture 1 - introduction to computer systems architecture 2018 / 2019Lecture 1 - introduction to computer systems architecture 2018 / 2019
Lecture 1 - introduction to computer systems architecture 2018 / 2019
 
I7 processor
I7 processorI7 processor
I7 processor
 
Three Central Processing Unit
Three   Central Processing UnitThree   Central Processing Unit
Three Central Processing Unit
 
Unit I Foc
Unit I FocUnit I Foc
Unit I Foc
 
CPU
CPUCPU
CPU
 

Viewers also liked

Hackernote on gsoc
Hackernote on gsocHackernote on gsoc
Hackernote on gsoc
Sri Harsha Pamu
 
Lec03-CS110 Computational Engineering
Lec03-CS110 Computational EngineeringLec03-CS110 Computational Engineering
Lec03-CS110 Computational Engineering
Sri Harsha Pamu
 
Lec04-CS110 Computational Engineering
Lec04-CS110 Computational EngineeringLec04-CS110 Computational Engineering
Lec04-CS110 Computational Engineering
Sri Harsha Pamu
 
Lec09-CS110 Computational Engineering
Lec09-CS110 Computational EngineeringLec09-CS110 Computational Engineering
Lec09-CS110 Computational Engineering
Sri Harsha Pamu
 
Android..imp google
Android..imp googleAndroid..imp google
Android..imp google
Sri Harsha Pamu
 
Android gui framework
Android gui frameworkAndroid gui framework
Android gui framework
Sri Harsha Pamu
 
Ubuntu+python+selenium=легкий старт
Ubuntu+python+selenium=легкий стартUbuntu+python+selenium=легкий старт
Ubuntu+python+selenium=легкий старт
Andrey Matukhno
 
Lec21-CS110 Computational Engineering
Lec21-CS110 Computational EngineeringLec21-CS110 Computational Engineering
Lec21-CS110 Computational Engineering
Sri Harsha Pamu
 
Lec23-CS110 Computational Engineering
Lec23-CS110 Computational EngineeringLec23-CS110 Computational Engineering
Lec23-CS110 Computational Engineering
Sri Harsha Pamu
 
Lec19-CS110 Computational Engineering
Lec19-CS110 Computational EngineeringLec19-CS110 Computational Engineering
Lec19-CS110 Computational Engineering
Sri Harsha Pamu
 
Lec10-CS110 Computational Engineering
Lec10-CS110 Computational EngineeringLec10-CS110 Computational Engineering
Lec10-CS110 Computational Engineering
Sri Harsha Pamu
 
Lec15-CS110 Computational Engineering
Lec15-CS110 Computational EngineeringLec15-CS110 Computational Engineering
Lec15-CS110 Computational Engineering
Sri Harsha Pamu
 
Lec12-CS110 Computational Engineering
Lec12-CS110 Computational EngineeringLec12-CS110 Computational Engineering
Lec12-CS110 Computational Engineering
Sri Harsha Pamu
 
Lec14-CS110 Computational Engineering
Lec14-CS110 Computational EngineeringLec14-CS110 Computational Engineering
Lec14-CS110 Computational Engineering
Sri Harsha Pamu
 

Viewers also liked (14)

Hackernote on gsoc
Hackernote on gsocHackernote on gsoc
Hackernote on gsoc
 
Lec03-CS110 Computational Engineering
Lec03-CS110 Computational EngineeringLec03-CS110 Computational Engineering
Lec03-CS110 Computational Engineering
 
Lec04-CS110 Computational Engineering
Lec04-CS110 Computational EngineeringLec04-CS110 Computational Engineering
Lec04-CS110 Computational Engineering
 
Lec09-CS110 Computational Engineering
Lec09-CS110 Computational EngineeringLec09-CS110 Computational Engineering
Lec09-CS110 Computational Engineering
 
Android..imp google
Android..imp googleAndroid..imp google
Android..imp google
 
Android gui framework
Android gui frameworkAndroid gui framework
Android gui framework
 
Ubuntu+python+selenium=легкий старт
Ubuntu+python+selenium=легкий стартUbuntu+python+selenium=легкий старт
Ubuntu+python+selenium=легкий старт
 
Lec21-CS110 Computational Engineering
Lec21-CS110 Computational EngineeringLec21-CS110 Computational Engineering
Lec21-CS110 Computational Engineering
 
Lec23-CS110 Computational Engineering
Lec23-CS110 Computational EngineeringLec23-CS110 Computational Engineering
Lec23-CS110 Computational Engineering
 
Lec19-CS110 Computational Engineering
Lec19-CS110 Computational EngineeringLec19-CS110 Computational Engineering
Lec19-CS110 Computational Engineering
 
Lec10-CS110 Computational Engineering
Lec10-CS110 Computational EngineeringLec10-CS110 Computational Engineering
Lec10-CS110 Computational Engineering
 
Lec15-CS110 Computational Engineering
Lec15-CS110 Computational EngineeringLec15-CS110 Computational Engineering
Lec15-CS110 Computational Engineering
 
Lec12-CS110 Computational Engineering
Lec12-CS110 Computational EngineeringLec12-CS110 Computational Engineering
Lec12-CS110 Computational Engineering
 
Lec14-CS110 Computational Engineering
Lec14-CS110 Computational EngineeringLec14-CS110 Computational Engineering
Lec14-CS110 Computational Engineering
 

Similar to Lec02-CS110 Computational Engineering

abc
abcabc
Bsc cs 1 fit u-1 computer hardware system
Bsc cs 1 fit u-1 computer hardware systemBsc cs 1 fit u-1 computer hardware system
Bsc cs 1 fit u-1 computer hardware system
Rai University
 
Ch01.pptxxxxxxxxxcxcxcxxccxxxxxxxxxxxcccccc
Ch01.pptxxxxxxxxxcxcxcxxccxxxxxxxxxxxccccccCh01.pptxxxxxxxxxcxcxcxxccxxxxxxxxxxxcccccc
Ch01.pptxxxxxxxxxcxcxcxxccxxxxxxxxxxxcccccc
tasheebedane
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
Aiman Hud
 
Fundamentals of Computers
Fundamentals of ComputersFundamentals of Computers
Fundamentals of Computers
Ankur Kumar
 
Short_Term_Course_on_Phoenix_and_its_App.ppt
Short_Term_Course_on_Phoenix_and_its_App.pptShort_Term_Course_on_Phoenix_and_its_App.ppt
Short_Term_Course_on_Phoenix_and_its_App.ppt
NaveeN547338
 
125252.ppt
125252.ppt125252.ppt
125252.ppt
divlee1
 
INTRODUCTION TO COMPUTER SYSTEMS ARCHITECTURE1_17 December 2023.ppt
INTRODUCTION TO COMPUTER SYSTEMS ARCHITECTURE1_17 December 2023.pptINTRODUCTION TO COMPUTER SYSTEMS ARCHITECTURE1_17 December 2023.ppt
INTRODUCTION TO COMPUTER SYSTEMS ARCHITECTURE1_17 December 2023.ppt
MozammelHaque53
 
Generation of computer
Generation of computerGeneration of computer
Generation of computer
rameshkumar1646
 
21PSP13
21PSP1321PSP13
Lecture 02- Introduction to Computerspdf
Lecture 02- Introduction to ComputerspdfLecture 02- Introduction to Computerspdf
Lecture 02- Introduction to Computerspdf
fmdatazone
 
Mba i-ifm-u-1- computer hardware system
Mba i-ifm-u-1- computer hardware systemMba i-ifm-u-1- computer hardware system
Mba i-ifm-u-1- computer hardware system
Rai University
 
CST 20363 Session 4 Computer Logic Design
CST 20363 Session 4 Computer Logic DesignCST 20363 Session 4 Computer Logic Design
CST 20363 Session 4 Computer Logic Design
oudesign
 
An Introduction To Python - Understanding Computers
An Introduction To Python - Understanding ComputersAn Introduction To Python - Understanding Computers
An Introduction To Python - Understanding Computers
Blue Elephant Consulting
 
fundamental of computer-u-1-computer hardware system
fundamental of  computer-u-1-computer hardware systemfundamental of  computer-u-1-computer hardware system
fundamental of computer-u-1-computer hardware system
Rai University
 
Mca i-fundamental of computer-u-1-computer hardware system
Mca  i-fundamental of  computer-u-1-computer hardware systemMca  i-fundamental of  computer-u-1-computer hardware system
Mca i-fundamental of computer-u-1-computer hardware system
Rai University
 
Bba i-introduction to computer-u-1-computer hardware system
Bba  i-introduction to computer-u-1-computer hardware systemBba  i-introduction to computer-u-1-computer hardware system
Bba i-introduction to computer-u-1-computer hardware system
Rai University
 
Unit 1- computer hardware system
Unit 1- computer hardware systemUnit 1- computer hardware system
Unit 1- computer hardware system
Hardik Patel
 
History of computer
History of computerHistory of computer
History of computer
vinciya vinc
 
Computer basics
Computer basicsComputer basics
Computer basics
AnuPerera7
 

Similar to Lec02-CS110 Computational Engineering (20)

abc
abcabc
abc
 
Bsc cs 1 fit u-1 computer hardware system
Bsc cs 1 fit u-1 computer hardware systemBsc cs 1 fit u-1 computer hardware system
Bsc cs 1 fit u-1 computer hardware system
 
Ch01.pptxxxxxxxxxcxcxcxxccxxxxxxxxxxxcccccc
Ch01.pptxxxxxxxxxcxcxcxxccxxxxxxxxxxxccccccCh01.pptxxxxxxxxxcxcxcxxccxxxxxxxxxxxcccccc
Ch01.pptxxxxxxxxxcxcxcxxccxxxxxxxxxxxcccccc
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 
Fundamentals of Computers
Fundamentals of ComputersFundamentals of Computers
Fundamentals of Computers
 
Short_Term_Course_on_Phoenix_and_its_App.ppt
Short_Term_Course_on_Phoenix_and_its_App.pptShort_Term_Course_on_Phoenix_and_its_App.ppt
Short_Term_Course_on_Phoenix_and_its_App.ppt
 
125252.ppt
125252.ppt125252.ppt
125252.ppt
 
INTRODUCTION TO COMPUTER SYSTEMS ARCHITECTURE1_17 December 2023.ppt
INTRODUCTION TO COMPUTER SYSTEMS ARCHITECTURE1_17 December 2023.pptINTRODUCTION TO COMPUTER SYSTEMS ARCHITECTURE1_17 December 2023.ppt
INTRODUCTION TO COMPUTER SYSTEMS ARCHITECTURE1_17 December 2023.ppt
 
Generation of computer
Generation of computerGeneration of computer
Generation of computer
 
21PSP13
21PSP1321PSP13
21PSP13
 
Lecture 02- Introduction to Computerspdf
Lecture 02- Introduction to ComputerspdfLecture 02- Introduction to Computerspdf
Lecture 02- Introduction to Computerspdf
 
Mba i-ifm-u-1- computer hardware system
Mba i-ifm-u-1- computer hardware systemMba i-ifm-u-1- computer hardware system
Mba i-ifm-u-1- computer hardware system
 
CST 20363 Session 4 Computer Logic Design
CST 20363 Session 4 Computer Logic DesignCST 20363 Session 4 Computer Logic Design
CST 20363 Session 4 Computer Logic Design
 
An Introduction To Python - Understanding Computers
An Introduction To Python - Understanding ComputersAn Introduction To Python - Understanding Computers
An Introduction To Python - Understanding Computers
 
fundamental of computer-u-1-computer hardware system
fundamental of  computer-u-1-computer hardware systemfundamental of  computer-u-1-computer hardware system
fundamental of computer-u-1-computer hardware system
 
Mca i-fundamental of computer-u-1-computer hardware system
Mca  i-fundamental of  computer-u-1-computer hardware systemMca  i-fundamental of  computer-u-1-computer hardware system
Mca i-fundamental of computer-u-1-computer hardware system
 
Bba i-introduction to computer-u-1-computer hardware system
Bba  i-introduction to computer-u-1-computer hardware systemBba  i-introduction to computer-u-1-computer hardware system
Bba i-introduction to computer-u-1-computer hardware system
 
Unit 1- computer hardware system
Unit 1- computer hardware systemUnit 1- computer hardware system
Unit 1- computer hardware system
 
History of computer
History of computerHistory of computer
History of computer
 
Computer basics
Computer basicsComputer basics
Computer basics
 

More from Sri Harsha Pamu

Lec16-CS110 Computational Engineering
Lec16-CS110 Computational EngineeringLec16-CS110 Computational Engineering
Lec16-CS110 Computational Engineering
Sri Harsha Pamu
 
Lec13
Lec13Lec13
Lec08-CS110 Computational Engineering
Lec08-CS110 Computational EngineeringLec08-CS110 Computational Engineering
Lec08-CS110 Computational Engineering
Sri Harsha Pamu
 
Lec07-CS110 Computational Engineering
Lec07-CS110 Computational EngineeringLec07-CS110 Computational Engineering
Lec07-CS110 Computational Engineering
Sri Harsha Pamu
 
Lec06-CS110 Computational Engineering
Lec06-CS110 Computational EngineeringLec06-CS110 Computational Engineering
Lec06-CS110 Computational Engineering
Sri Harsha Pamu
 
Lec01-CS110 Computational Engineering
Lec01-CS110 Computational EngineeringLec01-CS110 Computational Engineering
Lec01-CS110 Computational Engineering
Sri Harsha Pamu
 
Lec1- CS110 Computational Engineering
Lec1- CS110 Computational EngineeringLec1- CS110 Computational Engineering
Lec1- CS110 Computational Engineering
Sri Harsha Pamu
 
Lec25-CS110 Computational Engineering
Lec25-CS110 Computational EngineeringLec25-CS110 Computational Engineering
Lec25-CS110 Computational Engineering
Sri Harsha Pamu
 
Android vulnerability study
Android vulnerability studyAndroid vulnerability study
Android vulnerability study
Sri Harsha Pamu
 
Boot2Gecko Hackernote
Boot2Gecko HackernoteBoot2Gecko Hackernote
Boot2Gecko Hackernote
Sri Harsha Pamu
 

More from Sri Harsha Pamu (10)

Lec16-CS110 Computational Engineering
Lec16-CS110 Computational EngineeringLec16-CS110 Computational Engineering
Lec16-CS110 Computational Engineering
 
Lec13
Lec13Lec13
Lec13
 
Lec08-CS110 Computational Engineering
Lec08-CS110 Computational EngineeringLec08-CS110 Computational Engineering
Lec08-CS110 Computational Engineering
 
Lec07-CS110 Computational Engineering
Lec07-CS110 Computational EngineeringLec07-CS110 Computational Engineering
Lec07-CS110 Computational Engineering
 
Lec06-CS110 Computational Engineering
Lec06-CS110 Computational EngineeringLec06-CS110 Computational Engineering
Lec06-CS110 Computational Engineering
 
Lec01-CS110 Computational Engineering
Lec01-CS110 Computational EngineeringLec01-CS110 Computational Engineering
Lec01-CS110 Computational Engineering
 
Lec1- CS110 Computational Engineering
Lec1- CS110 Computational EngineeringLec1- CS110 Computational Engineering
Lec1- CS110 Computational Engineering
 
Lec25-CS110 Computational Engineering
Lec25-CS110 Computational EngineeringLec25-CS110 Computational Engineering
Lec25-CS110 Computational Engineering
 
Android vulnerability study
Android vulnerability studyAndroid vulnerability study
Android vulnerability study
 
Boot2Gecko Hackernote
Boot2Gecko HackernoteBoot2Gecko Hackernote
Boot2Gecko Hackernote
 

Recently uploaded

DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
taiba qazi
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
ak6969907
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
Smart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICTSmart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICT
simonomuemu
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
Celine George
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
adhitya5119
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
chanes7
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
Colégio Santa Teresinha
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
PECB
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
RitikBhardwaj56
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Top five deadliest dog breeds in America
Top five deadliest dog breeds in AmericaTop five deadliest dog breeds in America
Top five deadliest dog breeds in America
Bisnar Chase Personal Injury Attorneys
 

Recently uploaded (20)

DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
Smart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICTSmart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICT
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
 
Top five deadliest dog breeds in America
Top five deadliest dog breeds in AmericaTop five deadliest dog breeds in America
Top five deadliest dog breeds in America
 

Lec02-CS110 Computational Engineering

  • 1. CS110: Models of Computing Lecture 2 V. Kamakoti 3rd January 2008
  • 2. • • • • • • • • What IS a computer? A computer is a machine Something that operates mechanically But it is a flexible machine Its behaviour is controlled by a program A program is like a spell cast on a machine Programmers are like wizards Programs reside in the memory of the machine – Charles Babbage (1791-1871) – “The stored program concept”
  • 3. Early Computing Hardware The Slide rule The gear replaced the beads in early mechanical calculators “History of computing hardware” From Wikipedia, the free encyclopedia The Chinese Abacus
  • 4. Jaquard looms Used punched cards to weave different patterns
  • 5. The Difference Engine Part of Babbage's difference engine, assembled after his death by Babbage's son, using parts found in his laboratory. The London Science Museum's replica Difference Engine, built from Babbage's design.
  • 6. The First Programmer Augusta Ada King, Countess of Lovelace (December 10, 1815 – November 27, 1852), born Augusta Ada Byron, is mainly known for having written a description of Charles Babbage's early mechanical general-purpose computer, the analytical engine. The programming language ADA is named after her.
  • 7. ENIAC – the first electronic computer Physically, ENIAC was massive compared to modern PC standards. It contained 17,468 vacuum tubes, 7,200 crystal diodes, 1,500 relays, 70,000 resistors, 10,000 capacitors and around 5 million hand-soldered joints. It weighed 30 short tons (27 t), was roughly 8 feet (2.4 m) by 3 feet (0.9 m) by 100 feet (30 m), took up 1800 square feet (167 m²), and consumed 150 kW of power.
  • 8. 2000: Intel Pentium 4 Processor Clock speed: 1.5 GHz # Transistors: 42 million Technology: 0.18µm CMOS
  • 9. High Level Prog. Assembly Language Structured Computer Operating Systems Digital Hardware Organization
  • 10. A typical PC Specification from today’s Newspaper • • • • • • • • • • • • • Intel Core 2 Duo 6550 2.33GHz 2x2MB L2 Cache/ 1333MHz FSB Intel DG31PR Motherboard 2GB DDR2 RAM 667MHz 160GB SATA 3Gbps HDD Onboard Intel Graphics Controller Onboard 10/100Mbps Ethernet Onboard Sound card 19” Widescreen TFT Monitor (Viewsonic) Logitech Keyboard and Optical Mouse DVD Writer Creative 2.0 Speakers 500VA UPS
  • 11. The computing machine PROCESSOR MEMORY 01234……. (say) 256 MEGABYTES The computer is made up of a processor and a memory. The memory can be thought of as a series of locations to store information.
  • 12. The computing machine PROCESSOR MEMORY 01234……. program 256 MEGABYTES data The processor treats part of the information in memory as instructions, and a part of it as data. A program is a sequence of instructions assembled for some given task. Most instructions operate on data. Some instructions control the flow of the operations. It is even possible to treat programs as data. By doing so a program could even modify itself.
  • 13. Variables • Each memory location is given a name. • The name is the variable that refers to the data stored in that location. • Variables have types that define the interpretation data. – e.g. integers (1, 14, 25649), or characters (a, f, G, H) • All data is represented as binary strings. That is, it is a sequence of 0’s and 1’s, of a predetermined size – “word”. A byte is made of 8 bits.
  • 14. Instructions • Instructions take data stored in variables as arguments. • Some instructions do some operation on the data and store it back in some variable. • The instruction “XX+1” on integer type says that “Take the integer stored in X, add 1 to it, and store it back in (location) X”.. • Other instructions tell the processor to do something. For example, “jump” to a particular instruction next, or to exit
  • 15. Programs • A program is a sequence of instructions. • Normally the processor works as follows, – Step A: pick next instruction in the sequence Program Counter – Step B: Decode the instruction – Step C: get data for the instruction to operate upon – Step D: execute instruction on data (or “jump”) – Step E: store results in designated location (variable) • Different parts of the processor are responsible for the above steps.
  • 16. Test Your Understanding Please copy in your notebook • Name at least 20 important electronic circuitry/peripherals inside/connected to a PC. • What are the four prominent levels in a Structured Computer Organization? • What are the five steps taken by the processor to execute an instruction?
  • 17. Test Your Understanding Please copy in your notebook • Suppose each stage takes one millisecond, then each instruction takes five milliseconds to complete execution. • Then 10000 instructions shall take 50000 milliseconds. • Is there a way to improve this?
  • 20. 20 components 9) CD/DVD Drive 10) Monitor 11) Webcam 12) Keyboard 13) Mouse 14) Graphics Card 15) Speaker 16) Mic
  • 21. 20 components 17) Network Card - Wired 18) Wireless Network card 19) Power Supply 20) Floppy drive Four levels: High level, Assembler lang. level, Operating Systems and Digital Hardware
  • 22. Making it fast Fetch + Inc. PC I5 I4 I3 I2 I1 I4 I3 I2 I1 Decode Instrn Fetch Data Execute Instrn Store Data I3 I2 I1 I2 I1 I1 First Instruction completes at end of 5th unit With Pipelining Second instruction 10000 Instructions th unit at end of 6 No pipelining takes 10000th instruction 50000 Units. Each at end of 10004 hardware is units independent.
  • 23. The concept • Instruction Level Parallelism • You can use more than one CPU - Multicore
  • 24. Creative Problem - 1 • The Towers of Hanoi: Move from peg 1 to peg 3, such that a larger disk is not on top of a small one. Src: wikipedia
  • 25. One disk - one move
  • 26. One disk - one move
  • 27. Two disks - three moves
  • 28. Two disks - Move 1
  • 29. Two disks - Move 2
  • 30. Two disks - Move 3
  • 31. Three disks - 7 moves
  • 32. Three disks - move 1
  • 33. Three disks - move 2
  • 34. Three disks - move 3
  • 35. Three disks - move 4
  • 36. Three disks - move 5
  • 37. Three disks - move 6
  • 38. Three disks - move 7
  • 39. The problem No. of Disks 1 No. of Moves 1 2 3 3 7 n How many? Prove it.
  • 40. Thank You • Monday – Lab starts on Monday • • • • • RF-ID 1 to 60 - Monday batch RF-ID 61 to 120 - Tuesday RF-ID 121 to 180 - Wed RF-ID 181 to 240 - Thurs RF-ID 241 to 300 - Fri – Lab details + solution to Towers of Hanoi