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

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>
            国产欧美一二三区| 亚洲激情在线观看| 亚洲黄色有码视频| 国产深夜精品| 亚洲一区二区三区三| 日韩午夜激情电影| 麻豆av福利av久久av| 久久久中精品2020中文| 国产精品久久久久久久午夜| 亚洲欧洲综合| 亚洲精品免费在线观看| 另类欧美日韩国产在线| 久久一区二区三区国产精品| 国产欧美一区二区三区在线老狼| 在线视频你懂得一区| 夜夜嗨av色综合久久久综合网| 麻豆成人在线| 亚洲第一级黄色片| 亚洲国产精品ⅴa在线观看| 欧美中文字幕视频在线观看| 欧美在线三区| 国产一区二区三区在线观看精品| 亚洲女人av| 久久成人这里只有精品| 国产欧美日韩| 久久aⅴ乱码一区二区三区| 久久国产精品第一页| 国产视频一区在线| 欧美一二区视频| 久久久久久久网| 在线观看中文字幕亚洲| 久久性色av| 亚洲韩日在线| 亚洲一区二区三区久久| 国产精品久久一卡二卡| 午夜精品国产| 欧美不卡一卡二卡免费版| 亚洲国产mv| 欧美日本在线| 亚洲欧美国产高清va在线播| 久久精品人人做人人爽| 精品51国产黑色丝袜高跟鞋| 美女成人午夜| 99成人在线| 欧美在线观看网址综合| 136国产福利精品导航网址| 欧美激情女人20p| 亚洲一区二区av电影| 久久久久青草大香线综合精品| 亚洲国产精品一区二区www在线| 欧美激情一区二区三区| 亚洲在线一区| 欧美黄色一级视频| 亚洲在线第一页| 黄色一区三区| 欧美日韩精品在线| 久久精品国产久精国产思思| 欧美视频在线观看| 久久久天天操| 在线视频免费在线观看一区二区| 久久中文字幕一区| 亚洲欧美国产va在线影院| 怡红院精品视频| 欧美日韩调教| 毛片基地黄久久久久久天堂| 亚洲一区二区三区乱码aⅴ蜜桃女| 美女主播一区| 午夜精品一区二区三区在线播放| 在线观看成人av| 国产精品美女久久久久久2018| 久久综合综合久久综合| 亚洲制服丝袜在线| 亚洲精品视频啊美女在线直播| 久久精品国产一区二区三区| 中文在线一区| 最新中文字幕亚洲| 国产一区二区三区久久| 欧美体内she精视频| 麻豆视频一区二区| 欧美专区日韩专区| 亚洲特级毛片| 99成人在线| 亚洲欧洲综合另类| 欧美成人国产| 久久亚洲精选| 久久精品国产v日韩v亚洲| 亚洲一区二区三区视频| 99国产精品视频免费观看一公开 | 99国产一区二区三精品乱码| 一区在线视频观看| 国产亚洲福利一区| 国产美女一区| 国产精品永久免费在线| 国产精品多人| 欧美性感一类影片在线播放| 欧美激情综合五月色丁香小说| 浪潮色综合久久天堂| 久久精品日产第一区二区| 午夜欧美不卡精品aaaaa| 亚洲午夜激情网站| 亚洲视频电影图片偷拍一区| 99热这里只有成人精品国产| 日韩亚洲成人av在线| 亚洲欧洲日韩女同| 亚洲精品午夜| 一区二区不卡在线视频 午夜欧美不卡在| 亚洲国产另类精品专区| 91久久极品少妇xxxxⅹ软件| 亚洲国产老妈| 一本到高清视频免费精品| 日韩午夜高潮| 亚洲一区二区网站| 久久成人亚洲| 免费看黄裸体一级大秀欧美| 欧美电影资源| 欧美精品一区二区三区四区| 欧美劲爆第一页| 欧美特黄视频| 国产亚洲精品自拍| 影音欧美亚洲| 亚洲精品国精品久久99热| 99re在线精品| 亚洲在线一区二区| 久久精品亚洲精品| 欧美成人国产| 一区二区欧美亚洲| 午夜日韩电影| 农村妇女精品| 欧美性猛交99久久久久99按摩| 国产伦精品一区二区| 黄色在线一区| 亚洲视频免费观看| 欧美专区第一页| 欧美sm极限捆绑bd| 亚洲视频成人| 久久综合给合久久狠狠狠97色69| 欧美精品精品一区| 国产日韩精品一区二区| 亚洲高清久久久| 亚洲一区二区成人在线观看| 久久精品亚洲一区二区三区浴池| 欧美韩日高清| 午夜精品福利视频| 欧美激情导航| 国产偷国产偷精品高清尤物| 亚洲欧洲一区| 欧美在线视频观看| 亚洲精品一区二区三区樱花| 性久久久久久久久| 欧美女同视频| 一区二区视频欧美| 亚洲欧美色婷婷| 亚洲国产精品ⅴa在线观看 | 卡一卡二国产精品| 国产精品久久久久久久久借妻| 在线播放中文一区| 午夜精品久久久久久久99樱桃| 欧美高清视频一区| 亚洲在线免费| 欧美午夜精品理论片a级大开眼界| 狠狠综合久久| 欧美一进一出视频| 亚洲理论在线| 久热这里只精品99re8久| 国产手机视频一区二区| 亚洲视频一二| 亚洲国产精品嫩草影院| 欧美在线亚洲| 国产欧美丝祙| 亚洲欧美激情四射在线日| 亚洲国产三级在线| 欧美综合第一页| 国产欧美一区二区三区在线老狼 | 一本久道久久综合中文字幕| 免费成人高清在线视频| 亚洲欧美日韩视频一区| 欧美日韩中字| 一本色道久久综合狠狠躁篇的优点 | 亚洲国产精品成人综合| 久久精品主播| 欧美一区二区观看视频| 国产精品男女猛烈高潮激情| 亚洲视频免费观看| 亚洲美女啪啪| 欧美日韩视频不卡| 一区二区三区四区五区在线| 亚洲国产三级| 欧美日韩国语| 中文在线不卡| 亚洲小说春色综合另类电影| 欧美午夜大胆人体| 亚洲欧美日产图| 亚洲网址在线| 国产精品永久免费视频| 校园春色国产精品| 午夜精品福利在线观看| 国产日韩av一区二区| 久久久夜夜夜| 六月婷婷久久| 在线视频精品|