Académique Documents
Professionnel Documents
Culture Documents
Fall 2014
Instructors:
Dr. Fawad Hussain, Dr. Rashad Jilani, Dr.
Saima Jabeen, Mr. Gibrail Islam & Dr.
Ahmar Rashid.
Faculty of Computer Science and
Engineering
GIK Institute of Engineering Sciences and
Technology
Data Representation
Data Representation
Number System
We
Most
[base 2]
Conversions
Conversion
Conversion
2 125
2 62
2 31
1
0
2
2
2
15
7
3
1
1
1
(125)10
= (1111101)2
2 16
2 8
2 4
0
0
2
2
0
0
2
1
(16)10
= (10000)2
Binary Conversions
Sum-of-Weights Method
You can convert a decimal whole number to binary Sum-ofWeights Method . Write the decimal weight of each column
and place 1s in the columns that sum to the decimal
number.
Convert the decimal number 49 to binary.
The column weights double in each position to the
right. Write down column weights until the last
number is larger than the one you want to convert.
26 25 24 23 22 21 20.
64 32 16 8 4 2 1.
0 1 1 0 0 0 1.
Floyd, Digital Fundamentals, 10th ed
Representing
Non-Numeric Data
Ch
ar
Deci
mal
EBC
DIC
Unicode
ASCII
Binary
65
193
0041
100 0001
66
194
0042
100 0010
48
240
0030
011 0000
49
241
0031
011 0001
36
91
0024
010 0100
0010 0100
Bits take the form of electrical pulses that can travel over
circuits
Almost the same way as electricity flows over a wire when you turn on a light switch
Computer Hardware
Microprocessor
Memory
Storage Devices
I/O Devices
Types of chips:
Dual
In-line
Memory
Module
(DIMM)
Pin
Grid
Array
(PGA)
Single
Edge
Contact
(SEC)
Microprocessor
An
The
Control Unit
Memory Hierarchy
Microprocessor
Processes Instructions, one at a time
Registers
Current Instruction + related variables (operator, operand etc, are
loaded into registers)
Cache
Also know as RAM cache, faster compared to any other memory on
the board
Level 1 Cache (L1): Built into the processor chip, cannot be replaced without
replacing the processor
Level 2 Cache (L2): Located on a separate chip and takes a little bit more time to
get data to processor
RAM
Load whole programs, operating system, etc. into memory
Virtual Memory
If memory is full, part of the current program can be swapped in and
out of the memory from/to hard disk
Hard Disk
http://www.pantherproducts.co.uk/index.php?pageid=cpucache
Types of RAM
http://www.spectek.com/menus/mthrbrd.aspx?mfgName=ASUS&memType=DDR2
DDR3
DDR2
CMOS memory holds data but requires very little power to retain its
contents
Retains important computer settings after you turn the power off
Can be run by a battery on the motherboard
CMOS holds computer configuration settings such as the date and time, hard
disk capacity, RAM capacity and etc.
To access the CMOS setup program, hold down the F1 key during PC bootup
Storage Devices
A
Magnetic Storage
Optical Storage
Solid State Storage
Magnetic Storage
Example
Limitations
Head crash - when a read-write head
runs into a dust particle or other
contaminant on the disk
Platter
R/W
Head
Optical Storage
Advantage
Example
Blue-Ray [Capacity: up to 50 GB ]
of CD / DVD
Advantage
The chips circuitry is arranged as a grid, and each cell in the grid contains two transistors that
act as gates.
gates open current flows a 1 bit
gates closed no current a 0 bit
Provides faster access to data than magnetic or optical storage technology because it includes
no moving parts
Portable
Example
Moores Law:
An Important Observation (-1-)
Moore's
Moores Law:
An Important Observation (-2-)
Moores Law:
References
Computer
http://en.wikipedia.org/wiki/Moore's_law
http://www.google.com.pk/imgres?
q=moores+law&hl=en&sa=X&biw=1366&bih=565&tbm=isch&prmd=imvnsu&tbnid=cJCMmCj7UsiHOM:&imgrefurl=http://www.ieee.org/po
rtal/site/sscs/index.jsp%3FpageID%3Dsscs_level1_article%26TheCat%3D6010%26path%3Dsscs/06Sept%26file
%3DHalfhill.xml&docid=VOgwV-8TrJwmMM&w=800&h=600&ei=lsBwTv2_HcubOpqusJ0J&zoom=1