Professional Documents
Culture Documents
CH1 Architecture
CH1 Architecture
First lecture
Slid 7 >
1- Application software
مكتوب بلغه عالية المستوى و يقدم خدمه للمستخدم
2- System software
للمستخدمapplication يهياء المكان المناسب لتشغيل ال
1) High-level language
2) Assembly language
3) Hardware representation
م
,
Second lecture
Response Time and Throughput
• Response time
How long it takes to do a task
• Throughput
Total work done per unit time
عكش مع الوقت
ي ** من هاد القانون بقدر اعرف انو ال Performanceبتتناسب
ف كلما كان الوقت اقل كانت ال Performanceافضل
𝒙 𝒇𝒓𝒆𝒑
• If > 1 → perf x petter than perf y
𝒚 𝒇𝒓𝒆𝒑
𝒙 𝒇𝒓𝒆𝒑
• If <1 → perf y petter than perf x
𝒚 𝒇𝒓𝒆𝒑
𝒙 𝒇𝒓𝒆𝒑
• If = 1 → perf x = perf y
𝒚 𝒇𝒓𝒆𝒑
𝒙 𝒇𝒓𝒆𝒑
• If = n → x is n time fastar than y
𝒚 𝒇𝒓𝒆𝒑
- 1G= 109
• Unit time (sec)
- 10−3 msec
- 10−6 𝜇sec
- 10−9 nsec
- 10−12 psec
- EX: freq = 1 GHz =109 Hz find cycle time?
- Cycle time = 1\109 = 10−9 sec = 1 nsec
Third lecture
ن
بحيث كلcycly عباره عن مجموعه من الCPU clock بالمحاضه الماضيه انو ال حكينا
ن
cycle time معي يسىم الها وقتcycle
Performance improved by
_ Reducing number of clock cycles
_ Increasing clock rate
_ Hardware designer must often trade off clock rate against cycle count
ن
rate او بزيادة الcycle ب تقليل عدد الPerformance تحسي ال يمكن
مثال :
ic Cpi
10x 3
5y 4
5z 2
ن
معي بحتاج لمده زمنيه محدده ليشتغل ف الزم بحكيل :انو لو كان نظام ف هاد القانون
ي
اعرف وين ضاع هاد الوقت
ن
يعن بضل لل other
بحكيل انو ال multiplyبتستهلك %80من الوقت ي
ي هاد السؤال
(الشغالت التانيه ) %20من الوقت
كل خمس مرات
بحكيل كم بحتاج احسن ع ال multiplyبحيث يتحسن االداء ال ي
ي
االصل ن
يعن بدي يصب خمس الوقت
ي الكل 100%Tبدي يحسن خمس مرات ي
هالء الوقت ي
Tnew = T/5 = 0.2T
كالتال
ي العرف كم الزم احسن ع قيمة ال multiplyبعمل
𝑇80%
= Tnew + 20%T
𝑥
𝑇0.8
= 0.2T + 0.2T
𝑥
Example
• 20% of time doing integer instructions
• 35% percent of time doing I/O
?–Which is the better tradeoff
•Compiler optimization that reduces number of
integer instructions by 25% (assume each integer
)instruction takes the same amount of time
•Hardware optimization that reduces the latency of each IO operations
from 6us to 5us
ال ال I/Oبقل من 6ل 𝜇 𝑠𝑒𝑐 5ف شو ح يصب الوقت انو بحكيل ن
تحسي تانطيب ن
ي ي ي
الكل؟
للوقت ي
ن
شغالي عال ال I/O deviceمش ع ال مع شوي بدي تعرفو انو الI/Oهون ركزو ي
ن
المحاضه الماضيه ال اخدناهم ن ن
يعن ما بنطبق عليهم قواني ال timeي
processorي
طيب كيف ح نحسب الوقت الجديد ؟ بستخدم النسبه والتناسب
6 𝜇 𝑠𝑒𝑐 → 0.35