this site the web

968.. Clock Cycle ဆိုတာ ( 17.8.10 )

 
http://computermuseum.informatik.uni-stuttgart.de/dev/ibm_5110/technik/en/images/zyklen.gif

Flip Flop ေတြမွာ Counter အလုပ္လုပ္တာကို ျမင္ဖူးပါလိမ့္မယ္ ဒီေတာ့ အလုပ္ျမန္ျမန္လုပ္ေစခ်င္ရင္ Clock ကိုျမန္ျမန္ေပးရမွာေပါ့။ Processor ကိုလည္း အဲဒီလိုပဲယူဆလိုက္ပါ သူလည္းအတူတူပါပဲ Clock Trigger ျဖစ္မွပဲသူလည္း အလုပ္တစ္ခါ လုပ္ပါတယ္။ Processor ရဲ႕အလုပ္ကေတာ့ တစ္ျခား Device ေတြလိုမဟုတ္ပဲ အလုပ္ေတြက ဝင္လာတဲ့ Instruction အေပၚမတည္ၿပီးေတာ့ အလုပ္ကလုပ္ေပးရတာပါ။ Instruction မွာက အလြယ္ေျပာမယ္ဆိုရင္ အလုပ္ကတစ္ခုတည္း မဟုတ္ပါဘူး တစ္ခုထက္ပိုပါတယ္ အဲဒါေၾကာင့္ Clock တစ္ခုမွာ အလုပ္ကတစ္ခုပဲ လုပ္ႏိုင္တဲ့အတြက္ Single Instruction မွာဆိုရင္ Multiple Clock လိုအပ္တာပါ။

ေယဘုယ်အားျဖင့္ RISC Processor ေတြမွာ Instruction တစ္ခုအတြက္ လုပ္ရမယ့္အလုပ္ေတြကို ေအာက္မွာျပထားသလို အဆင့္နဲ႔ခြဲထားပါတယ္။

  1. Instruction Fetch (IF)
  2. Instruction Decode (ID)
  3. Execute (EX)
  4. Memory Access (MA)
  5. Write Back (WB)

အလုပ္တစ္ခုဟာ Clock တစ္ခုလုိအပ္တဲ့အတြက္ Instruction တစ္ခုအတြက္ အဆင့္ငါးဆင့္ လုပ္ရမွာျဖစ္လို႔ ပံုမွန္အားျဖင့္ Clock ငါးခုလိုအပ္ပါတယ္။ နမူနာအျဖစ္ အလုပ္လုပ္ပံုကို ေျပာရမယ္ဆိုရင္ 680x0 Instruction နမူနာတစ္ခုအျဖစ္ move.l (a1), d1 ဆိုတာ Memory တစ္ေနရာမွာ ရွိတယ္ဆိုၾကပါစို႔ အဲဒါဆိုရင္ ပထမအဆင့္ IF အေနနဲ႔ အဲဒီ့ Instruction ကို သက္ဆိုင္ရာေနရာကေန ဖတ္ပါတယ္ ဒုတိယအဆင့္ ID အေနနဲ႔ Instruction ကိုဘာလုပ္ခိုင္းသလဲ ခြဲျခားရပါတယ္ ခြဲျခားလိုက္မယ္ဆိုရင္ move လုပ္ရမယ္ လုပ္ရမယ့္ Size က Long ျဖစ္တယ္ a1 ထဲမွာရွိတဲ့ Address မွာသိမ္းထားတဲ့ data ကို d1 ဆိုတဲ့ Register ထဲကိုကူးထည့္ရမယ္လို႔ ခြဲျခားႏိုင္ပါတယ္။ တတိယအဆင့္ EX အေနနဲ႔ သူေျပာထားတဲ့အလုပ္ကို ALU အေနနဲ႔လုပ္ဖုိ႔လိုအပ္ပါတယ္ Execute လုပ္ဖို႔အတြက္ ဒီအတိုင္းလုပ္လို႔မရပါဘူး a1 ထဲမွာရွိတဲ့ Address မွာသိမ္းထားတဲ့ data ကိုဖတ္ဖို႔လိုတဲ့အတြက္ Processor ထဲက Data နဲ႔မလံုေလာက္လို႔ Memory ကို Access လုပ္ဖို႔လိုပါတယ္ အဲဒီ့လိုလုပ္တဲ့အလုပ္ကို စတုတၳအဆင့္အေနနဲ႔ MA လို႔ေျပာလို႔ရမွာျဖစ္ပါတယ္ ေနာက္ဆံုးအဆင့္အေနနဲ႔ ထြက္လာတဲ့အေျဖကို သက္ဆိုင္ရာ ေနရာမွာသြားေရးရပါတယ္ ဒီ Instruction မွာေတာ့ ဖတ္လို႔ရတဲ့ Data ကို d1 ထဲကိုသြားေရးပါတယ္ ဒါဆိုရင္ ပဥၥမအဆင့္ျဖစ္တဲ့ WB ၿပီးဆံုးပါလိမ့္မယ္။ အဲဒါဆိုရင္ေနာက္ထပ္ Instruction တစ္ခုကိုထပ္ဖတ္တဲ့ IF ကေန WB အထိဆက္လုပ္ရင္ Processor ကိုမပိတ္မခ်င္း ဆက္လုပ္ေနမွာျဖစ္ပါတယ္။

http://www.dewassoc.com/performance/memory/images/sdram_burst.gif


အခုအခ်ိန္အထိ အလုပ္တစ္ခုဟာ Clock အျဖစ္သာ အလုပ္လုပ္ေနတယ္လို႔ ယူဆေနတာပါ အဲဒီ့လိုဆိုရင္အလြန္ပဲေႏွးပါလိမ့္မယ္ ေနာက္ၿပီးေတာ့ Processor ရဲ႕အစိတ္အပိုင္းေတြဟာ အလုပ္အျပည့္အဝ အလုပ္ႏိုင္ပါဘူး။ ပံုမွန္အားျဖင့္ IF ဟာ တစ္ႀကိမ္အလုပ္လုပ္ၿပီးရင္ ေနာက္ထပ္ IF မေရာက္မခ်င္း Clock ေလးခု အားေနပါတယ္ အဲဒီ့ေတာ့ အစိတ္အပိုင္း ၅ ခုလံုးသာ တစ္ၿပိဳင္တည္း အလုပ္လုပ္ႏိုင္ရင္ လက္ဆင့္ကမ္းအလုပ္လုပ္သလို အၿပိဳင္အလုပ္လုပ္ႏိုင္ပါတယ္။ ဥပမာအားျဖင့္ IF အလုပ္ၿပီးလို႔ ID ကိုအလုပ္ကို လက္ဆင့္ကမ္းလုိက္ၿပီးရင္ IF အေနနဲ႔ ေနာက္ထပ္ Instruction တစ္ခုကိုယူၿပီးေတာ့ IF အလုပ္ထပ္လုပ္လို႔ရပါတယ္ အဲဒါဆိုရင္ အလုပ္စစခ်င္း Clock ေလးခုကလြဲရင္ ေနာက္အႀကိမ္ေတြမွာ Clock တစ္ခုမွာ Instruction တစ္ခုေပးႏိုင္ပါလိမ့္မယ္။ အဲဒါမ်ိဳးအလုပ္လုပ္တာကို Pipelining လို႔ေခၚပါတယ္။ ေအာက္ကပံုမွာၾကည့္ပါ

alt text

အေပၚမွာျပထားသလိုဆိုရင္ အလုပ္ေတြက Clock တစ္ခုမွာ Instruction တစ္ခုေတာ့ ၿပီးေအာင္လုပ္ႏိုင္သြားပါတယ္ အရင္လို Clock ေတြအမ်ားႀကီးမလိုေတာ့ဘူးေပါ့။ ေနာက္တစ္ဆင့္အေနနဲ႔ Clock တစ္ခုမွာ Multiple Instruction ဘယ္လိုလုပ္မလဲဆိုတာ စဥ္းစားရျပန္တယ္။ အယူအဆအားျဖင့္ ရွင္းလင္းပါတယ္ Pipeline တစ္ခုဟာ Single clock per instruction လုပ္ေပးႏိုင္ရင္ Multiple Pipeline ဆိုရင္ Single clock per multiple instruction အလုပ္လုပ္ႏိုင္ပါလိမ့္မယ္ အဲဒါမ်ိဳးကို Superscalar လို႔ေခၚပါတယ္။ ေအာက္မွာျပထားတဲ့ Figure ကိုၾကည့္ပါ Double Pipeline ျဖစ္တဲ့အတြက္ Single clock per double instruction အလုပ္လုပ္ေနတာ ေတြ႔ရပါလိမ့္မယ္။

alt text

အေပၚမွာေျပာထားတာေတြက Instruction Execution ကိုအၾကမ္းအားျဖင့္ေျပာထားတာပါ တစ္ကယ္ကေတာ့ Processor Architecture ဆိုတာ အင္မတန္ႀကီးမားတဲ့ ဘာသာရပ္ႀကီးတစ္ခုပါ အဲဒါေၾကာင့္ သေဘာေပါက္ရံုသာေျပာထားပါတယ္။ အေသးစိတ္လည္း စာတစ္ပုဒ္နဲ႔ နားလည္ေအာင္ေျပာဖို႔မျဖစ္ႏိုင္ပါ။ အေသးစိတ္သိခ်င္ရင္ေတာ့ Processor architecture ေတြအေၾကာင္း ေရးထားတဲ့စာအုပ္ေတြကို ဖတ္မွပဲရပါလိမ့္မယ္။ Hardware ဆိုၿပီး A+ လိုစာအုပ္ကို မျမင္မိပါနဲ႔ A+ ဆိုတာမ်ိဳးက Processor architecture နဲ႔ယွဥ္ၾကည့္ရင္ မူႀကိဳစာအုပ္လို႔ ေျပာရပါလိမ့္မယ္။ ဖတ္ခ်င္ရင္ေတာ့ ရွာလို႔အလြယ္ဆံုးက ကြန္ပ်ဴတာတကၠသိုလ္ တတိယႏွစ္မွာသင္တဲ့ Computer Architecture ကိုဖတ္ၾကည့္လို႔ရပါတယ္ အေသးစိတ္ဖတ္ခ်င္ရင္ေတာင္ အဲဒီ့စာအုပ္ဟာ အင္မတန္ေကာင္းပါတယ္။ ေနာက္ၿပီးေတာ့ Computer Organization လိုစာအုပ္မွာလည္း Knowledge အတြက္ လံုေလာက္ပါလိမ့္မယ္။ အေသးစိတ္ေတြကေတာ့ Computer Architecture By A. D. Gajski, A.P.Godse, D.A.Godse လိုဟာမ်ိဳးေတြ ဖတ္မွပဲရပါမယ္။ သိခ်င္ရင္ေတာ့ရွာဖတ္ပါ ကြ်န္ေတာ္က Hardware အေၾကာင္း ေလ့လာတဲ့လူမဟုတ္ေတာ့ အေသးစိတ္ေတြက မမွတ္မိေတာ့ပါဘူး....



clock cycle




DEFINITION - In a computer, the clock cycle is the time between two adjacent pulses of the oscillator that sets the tempo of the computer processor. The number of these pulses per second is known as the clock speed, which is generally measured in MHz (megahertz, or millions of pulses per second) and lately even in GHz (gigahertz, or billions of pulses per second). The clock speed is determined by a quartz-crystal circuit, similar to those used in radio communications equipment.

Some processors execute only one instruction per clock cycle. More advanced processors, described as superscalar, can perform more than one instruction per clock cycle. The latter type of processor gets more work done at a given clock speed than the former type. Similarly, a computer with a 32-bit bus will work faster at a given clock speed than a computer with a 16-bit bus. For these reasons, there is no simple, universal relation among clock speed, "bus speed," and millions of instructions per second (MIPS).

LAST UPDATED: 15 Jan 2002
Do you have something to add to this definition? Let us know.
Send your comments to techterms@whatis.com


ကိုလူပ်ိဳၾကီး ႏွင့္ အျခားရပ္ျခားဆိုဒ္မ်ားမွ မွီျငမ္းသည္...

Labels: , ,

Print ပဲထုပ်ပါ..pdf ထုပ်လျှင်.ဖောင့်လွဲနေလိမ့်မယ်



မာတိကာ ၁ မာတိကာ ၂ မာတိကာ ၃ မာတိကာ ၄ မာတိကာ ၅

0 - ဦး မှတ်ချက်ပေးထားပါသည်

Post a Comment

KKZ Myanmar Unicode Keyboard

Mone Tine On Android

►Version 1.1

►Version 1.0

MoneTineKeyboard

Like လုပ်ထားနိုင်ပါတယ်

Mone Tine Knowledge Bank

Labels

အောက်ကကြေငြာလေးကလစ်ပေးပါဦး

Usage Policies

သင်၏ Facebook  တွင် ဖတ်နိုင်ရန် LIKE လုပ်ခဲ့ပါ..
( အမှန်ခြစ် ပေါ်နေပြီး LIKE ပြီးသားပါက CLOSE ကိုသာနှိပ် ပိတ်ပါ )

ကျေးဇူးတင်ပါတယ် မုန်တိုင်း

ကျန်းမာကြပါစေ