Week 1
Week 1
EE-371/CS-330
Hasan Baig
[email protected]
know how the arithmetic/logic and data transfer operations are performed
The lecture slides of this course is prepared with a help of the official lecture slides of
the book mentioned above.
4
Assessments
Components Marks
Quizzes 15%
Assignments/Presentations 15%
Midterm 30%
Final 40%
View grades
5
Office Hours
• Application software
• Written in high-level language
• System software
• Compiler: translates HLL code to
machine code
• Operating System: service code
• Handling input/output
• Managing memory and storage
• Scheduling tasks & sharing resources
• Hardware
• Processor, memory, I/O controllers
8
Introduction Levels of Program Code
• High-level language
• Level of abstraction closer to
problem domain
• Provides for productivity and
portability
• Assembly language
• Textual representation of
instructions
• Hardware representation
• Binary digits (bits)
• Encoded instructions and data
9
Introduction Components of a Computer
Computer board
12
Introduction Opening the Box
• Silicon: semiconductor
• Add materials to transform properties:
• Conductors
• Insulators
• Switch
14
Introduction IC Manufacturing Process
15
Introduction Intel Core i7 Wafer
BAC/Sud BAC/Sud
Concorde Concorde
Douglas Douglas DC-
DC-8-50 8-50
0 100 200 300 400 500 0 2000 4000 6000 8000 10000
BAC/Sud BAC/Sud
Concorde Concorde
Douglas Douglas DC-
DC-8-50 8-50
• Response time
• How long it takes to do a task
• Throughput
• Total work done per unit time
• e.g., tasks/transactions/… per hour
• How are response time and throughput affected by
• Replacing the processor with a faster version?
• Adding more processors?
• We’ll focus on response time for now…
18
Introduction Relative Performance
• Elapsed time
• Total response time, including all aspects
• Processing, I/O, OS overhead, idle time
• Determines system performance
• CPU time
• Time spent processing a given job
• Comprises user CPU time and system CPU time
• Different programs are affected differently by CPU and
system performance
20
Introduction CPU Clocking
Clock (cycles)
Data transfer
and computation
Update state
Performance Summary
• Performance depends on
• Algorithm: affects IC, possibly CPI
• Programming language: affects IC, CPI
• Compiler: affects IC, CPI
• Instruction set architecture: affects IC, CPI, Tc
29
Background Prerequisites Review
If the frequency of the computer is 5 GHz, how long is the clock cycle?
Clock period
Clock (cycles)
Answer:
1
Frequency = 5GHz
clock cycle
1 1
clock cycle 0.0000002 s
5GHz 1
5G
s
0.2 106 s 0.2us
30
Background Prerequisites Review
If I have a memory of 1 Mega bytes, how many bits do I need to address this
memory?
Answer:
1 k Bytes = 1024 Bytes = 210 Bytes
1 M Bytes = 1024*1024 Bytes = 220 Bytes
=>
We need 20 bits address to address this memory.
35
Background Prerequisites Review
Multiplexer Decoder
S1 S0 Y A1 A0 Y0 Y1 Y2 Y3
0 0 I0 0 0 0 0 0 1
0 1 I1 0 1 0 0 1 0
1 0 I2 1 0 0 1 0 0
1 1 I3 1 1 1 0 0 0
36
Background Prerequisites Review
D-FF T-FF