青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

posts - 71,  comments - 41,  trackbacks - 0

What's a Clock?

? 2003 by Charles C. Lin. All rights reserved.

Background

When you buy a computer, one of the first things you probably look for is the speed of the computer. These days, it's not unusual to here rates as fast as 3 GHz.

But what is 3 Ghz referring to? This is referring to the clock rate.

The clock on a computer is not the same as the clock on the wall, which is used to tell time. A computer clock is more like a metronome, which keeps the beat for musicians to play music.

A Plot of a Clock

One way to understand a clock is to look at a plot of its behavior.

A clock changes its value from 0 to 1 every period. We use the letter T to designate the period. This signal repeats over and over again. Perhaps you remember, from a course in calculus, about sine waves. This wave repeats once per period. The difference between a sine wave and a clock is that a sine wave is curved. It gradually increases than decreases.

A clock's signal is squarish in shape.

Related to the period of the clock is the frequency. Frequency is defined as 1/T, and has units of s-1.

When you hear clock rates, it's usually given by its frequencies. Thus, 2 Ghz means 2 x 109 cycles per second. A cycle is a signal for a single period. The period for this clock is 1/2 x 109 which is 5 x 10-10 seconds, which is half a nanosecond, which is a really, really short period of time.

To give you an idea of how short this time is. Imagine that everyone in the world sang exactly one note, and exactly one person sings at a time. Suppose each note lasts one nanosecond. It would take 6 seconds to complete (assuming 6 billion people in the world).

A More Realistic Clock

A clock can't really instantaneously go from 0 to 1 and back to 0. A more realistic diagram looks like:

As you can see the clock signal has a positive slope from 0 to 1 and a negative slope from 1 to 0. This slope has been exaggerated so you can see it better. Normally, it wouldn't be quite so angled.

Features of a Clock

There are a few key features of a clock:

  • period This is the time it takes for a clock signal to repeat. Its unit of measurement is seconds. The symbol for the period is T.
  • frequency Frequency is 1/T. The unit of measurement is s-1, which is inverse seconds. This is also sometimes called Hertz (abbreviated Hz). Sometimes people say "cycles per second" instead of Hz or s-1. They all mean the same. When people refer to the "speed" of a CPU, they are usually talking about the clock frequency.
  • positive edge When the signal transitions from 0 to 1. It's circled above.
  • negative edge When the signal transitions from 1 to 0. It's circled above.

Each positive clock edge appears once per clock period. Each negative clock edge appears once per clock period.

Is It Always 50-50?

In the clock diagrams above, the amount of time the clock is at 1 appears to be T/2 (i.e., half the period). The amount of time the clock is at 0 also appears to be T/2. (There is a little time when it transitions from 0 to 1 or from 1 to 0, but let's assume this is a fairly small fraction of T).

Must a clock always do this? The answer is no. We could have a clock where it stays 1 for 3T/4 (three quarters of a period) and 0 for T/4 (one quarter of a period), or any fraction x and T - x where x < T.

If you're only using the positive edge, then it doesn't matter how long the signal stays at 1 or 0, since you only use the edge. However, if you want to use both positive and negative edges, then you're going to have to consider when you want the edges to occur.

A Simple Exercise

In order to get a feel for how a clock signal behaves, put your finger at the beginning of the clock signal in the diagram above. At this point, the signal should have a value of 0.

Begin to move your finger to the right, but trace out the signal. Your finger should move from 0 to 1, and back again.

If you happen to trace over the positive edge once a second, and you're steadily moving to the right (not going faster or slower) then the period is 1 second, and the frequency is 1 Hz.

Tracing the signal with your hand gives you a better "feel" for how a continuous signal behaves. Usually, computer science majors have a more difficult time with this (unless you really like calculus or are in engineering) because we deal with quantities that are discrete, rather than continuous.

At any point in time, someone can ask you the current value of the signal.

If we use the "pipe" analogy, we can think of this signal alternating between pumping red soda (for 0) and green soda (for 1).

What's a Clock Used For?

We use a clock to synchronize the events of a CPU. Devices in a CPU can be categorized as sequential circuits or combinational circuits. Sequential logic devices use a clock. Basically, sequential logic devices can only change outputs once a period, usually during a positive or a negative edge. We'll assume that a sequential device can only change outputs on positive clock edges.

To give you an analogy, imagine a music conductor tapping a beat with a baton (a stick) at regular intervals. Suppose you are playing a piano, and you're told to play a new note each time he taps his baton. Thus, how fast the conductor taps the baton controls how often you play notes.

Similarly, the rate at which the positive clock edge appears controls how fast a sequential logic device can change outputs.

It turns out that by using a clock, we can design a CPU more easily than if we don't use a clock. This is primary reason to use a clock.

Can't We Make It Faster?

If a CPU will run faster with a faster clock, then why not run it faster? The problem is that it takes time for signals to move around in a circuit. You can reduce this time in several ways. The main way is simply to make the circuit smaller. When the circuit is smaller, signals have less distance to travel, and therefore everything can happen more quickly.
posted on 2007-01-23 14:20 Charles 閱讀(308) 評論(0)  編輯 收藏 引用 所屬分類: 拿來主義
<2007年1月>
31123456
78910111213
14151617181920
21222324252627
28293031123
45678910

決定開始寫工作日記,記錄一下自己的軌跡...

常用鏈接

留言簿(4)

隨筆分類(70)

隨筆檔案(71)

charles推薦訪問

搜索

  •  

積分與排名

  • 積分 - 51541
  • 排名 - 449

最新評論

閱讀排行榜

評論排行榜

青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            国产精品国产三级欧美二区| 久久精品伊人| 欧美性事免费在线观看| 美乳少妇欧美精品| 鲁大师影院一区二区三区| 久久视频精品在线| 欧美国内亚洲| 欧美午夜视频一区二区| 国产精品尤物福利片在线观看| 国产精品视频免费观看| 伊人蜜桃色噜噜激情综合| 红桃视频国产精品| 亚洲欧洲精品天堂一级| 在线亚洲观看| 久久久999精品| 欧美激情第1页| 99pao成人国产永久免费视频| 亚洲午夜电影网| 亚洲精选在线| 国产区欧美区日韩区| 精品1区2区3区4区| 亚洲毛片在线观看| 欧美一区二区三区四区在线观看地址| 浪潮色综合久久天堂| 亚洲另类自拍| 久久久久久久性| 欧美性大战久久久久久久蜜臀 | 欧美成人一区二区三区| 亚洲国语精品自产拍在线观看| 免费看的黄色欧美网站| 一区二区av在线| 欧美成人久久| 伊人久久av导航| 午夜精品福利在线| 91久久线看在观草草青青| 久久9热精品视频| 欧美视频一区二区| 亚洲电影有码| 久久久蜜桃一区二区人| 在线亚洲国产精品网站| 欧美成人综合| 亚洲成色777777女色窝| 久久久激情视频| 亚洲午夜在线观看| 欧美日韩精品三区| 最新国产の精品合集bt伙计| 久久久午夜视频| 欧美一区二区三区四区在线观看地址 | 国产精品午夜电影| 一本大道久久a久久精二百| 免费观看一级特黄欧美大片| 亚洲欧美日韩国产中文| 欧美亚洲成人免费| 在线一区日本视频| 亚洲精品日韩综合观看成人91| 美玉足脚交一区二区三区图片| 国产日韩欧美在线视频观看| 亚洲一区视频在线观看视频| 亚洲精品无人区| 欧美精品系列| 亚洲午夜免费福利视频| 99在线精品观看| 欧美日本一道本| 亚洲一区二区在线播放| 亚洲一区图片| 国内精品美女av在线播放| 欧美中文字幕视频| 欧美影视一区| 在线国产日韩| 欧美国产日韩a欧美在线观看| 久久成人精品视频| 99这里只有久久精品视频| 亚洲激情视频网站| 欧美久久影院| 亚洲欧美一区在线| 欧美中文在线观看| 亚洲国产日韩在线| 日韩亚洲欧美成人一区| 国产精品久久久久999| 久久久久综合网| 欧美成人免费在线视频| 亚洲天堂av在线免费| 亚洲欧美日韩直播| 在线观看国产精品淫| 欧美激情一二区| 欧美日韩亚洲综合一区| 午夜精品国产更新| 久久九九热re6这里有精品| 亚洲韩日在线| 这里只有精品丝袜| 玉米视频成人免费看| 亚洲精品乱码久久久久久久久| 久久另类ts人妖一区二区| 中国女人久久久| 久久天天狠狠| 欧美一区二区三区视频在线观看| 久久久av水蜜桃| 亚洲一区三区电影在线观看| 久久久精品一品道一区| 亚洲欧洲在线一区| 亚洲欧美久久久久一区二区三区| 亚洲黄一区二区三区| 亚洲另类在线视频| 亚洲国产日韩美| 欧美一级专区免费大片| 中文国产一区| 农村妇女精品| 久久亚洲捆绑美女| 欧美视频在线观看视频极品| 欧美国产日韩一区| 国产一区二区三区视频在线观看| 亚洲精品无人区| 亚洲精品在线看| 久久亚洲精品伦理| 欧美一区二区女人| 欧美三级免费| 日韩亚洲国产精品| 亚洲免费福利视频| 久久久人人人| 久久久久久夜| 国产伦精品一区二区三区在线观看 | 国语自产精品视频在线看一大j8 | 久久精品国语| 欧美午夜精品久久久久久超碰| 欧美不卡视频| 午夜在线电影亚洲一区| 国产一区再线| 亚洲日本欧美| 在线看一区二区| 久久久久久久成人| 久久久久这里只有精品| 国产亚洲女人久久久久毛片| 亚洲一区区二区| 久久福利影视| 国内精品视频久久| 午夜欧美大片免费观看 | 亚洲欧美精品中文字幕在线| 欧美日韩国产成人在线免费| 亚洲国产日韩欧美| 日韩一二三在线视频播| 欧美日韩 国产精品| 亚洲精品乱码久久久久| 亚洲视频999| 国产精品伦子伦免费视频| 亚洲午夜激情网站| 欧美制服丝袜| 亚洲高清不卡在线观看| 看片网站欧美日韩| 亚洲清纯自拍| 亚洲女ⅴideoshd黑人| 国产精品视频| 久久精品日韩欧美| 欧美高清视频在线| 日韩亚洲欧美在线观看| 国产精品久久看| 欧美在线视频免费| 欧美激情视频在线播放| 一区二区三区欧美激情| 国产精品久久久久久久久借妻| 欧美一区二区三区在| 欧美激情一区二区三区四区| 亚洲性xxxx| 好吊视频一区二区三区四区| 欧美肥婆在线| 性欧美大战久久久久久久免费观看| 久久久久九九九| 亚洲精品一区二区三区福利| 国产精品你懂的| 麻豆精品国产91久久久久久| 亚洲免费成人av电影| 欧美一区二区三区久久精品| 影音先锋中文字幕一区| 欧美日韩中文另类| 久久9热精品视频| 99re66热这里只有精品4| 久久久久综合网| 亚洲一区免费观看| 亚洲高清影视| 国产日韩在线看| 欧美日本在线看| 久久青草久久| 亚洲免费视频成人| 亚洲精品社区| 欧美成人免费全部| 欧美一级精品大片| 日韩一级大片| 在线观看亚洲a| 国产欧美在线观看一区| 欧美日韩免费| 蜜臀久久99精品久久久久久9 | 亚洲影音先锋| 日韩一区二区精品视频| 欧美大片在线影院| 久久久久久夜| 欧美在线啊v| 国产精品久久久久久妇女6080| 亚洲精品美女久久7777777| 久久影视三级福利片| 午夜日本精品| 亚洲一区二区三区四区在线观看 |