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

posts - 71,  comments - 41,  trackbacks - 0
? 2003 by Charles C. Lin. All rights reserved.

Wires

You can transmit a single bit on a wire. The purpose of a wire is to allow information to be transmitted.

It's useful to think of the wire like a pipe which you can send soda. Let's pretend a device can send two kinds of soda. If a device pumps red soda, then the wire is transmitting a 0. If a device pumps green soda, the wire is transmitting a 1.

A device can also pump no soda at all. In this case, the wire is at high impedance, which means it has neither value 0 or 1 (or perhaps more precisely, it has a random value of 0 or 1, which changes depending on when it is read).

When a device is pumping soda into the pipe, it can only pump red or green soda. No other device is allowed to pump soda onto the same wire. If some other device attempts to pump soda, then the wire will contain a garbage value. We assume there is a garbage value even if two devices are pumping soda of the same color.

The device that is pumping the soda is said to write a a value to the wire. We want to guarantee that there is, at most, single writer (there may be none).

Devices may "read" the wire as well. The device can "sample" the soda, and determine if it's red or green. If the device attempts to read the value of a pipe when it is empty, or if the device attempts to read the value when two or more devices attempt to pump soda, then we assume the value read is random. That is, it can either be a 0 or a 1, but we don't know which, and this value can change.

In order for us to make a stable system, we want devices reading when a pipe contains soda pumped by a single device.

More than one device can read from the wire, but at most one device can write to the wire.

Why the Soda Analogy?

You probably think it's weird to view a wire like a pipe containing soda. However, it gives us some insight into the working of a wire.

When you learn to program, you often think of values in discrete units. For example, suppose you want to run the statement: z = foo( x + y ). You think of x + y being computed, then this value sent to foo, then foo computing a return value, and this return value being stored in z.

Each event occurs in a discrete step.

However, it's better to think of a wire like water being sent to your home, or like electricity flowing down the wires. It's constantly flowing. This creates a more accurate image of what's happening in a circuit.

In reality, electrons are floating at some potential of either 0 or 5 volts (though these days, it's sometimes 3.3 volts) where 0 volts represents the bit 0, and 5 volts represents the value 1. If no voltage is asserted on the wire, the the voltage is ambiguous and essentially "floats".

These electrons are flowing through the wire, and devices can measure the potential of the wire to determine if there is a 0 or 1 on the wire.

We want to avoid two devices trying to assert (i.e. "write") voltages on the wires.

Specifying Behavior

It's useful to specify the behavior of the wire, using two devices attempting to write a value to a wire. Each device can do one of three things: write a 0, write a 1, or not write at all. When a device does not write a value, we'll use the letter Z, which is the symbol for "high impedance" (i.e., no output).

The following chart describes the behavior.

DeviceOneDeviceTwoWire Value
0 0 ?
0 1 ?
0 Z 0
1 0 ?
1 1 ?
1 Z 1
Z 0 0
Z 1 1
Z Z Z

The output is one of four values: 0, 1, Z, and ?. 0 and 1 should be obvious.

? occurs when two devices attempt to write to the wire at the same time. When a device reads from the bus it reads a value that's either 0 or 1, so it's unknown. We want to avoid having two devices write at the same time.

Z means that no device is writing to the wire. Reading a value from the wire also results in a value that's 0 or 1, but it's not known which. We want to avoid having a device read the wire when no device is writing to a wire.

Other Issues

In reality, we've avoided a few issues. In particular, we haven't discussed how fast we can change values on the wire. This can affect how fast the CPU works, but since this is not such an important issue, we won't discuss it much.
posted on 2007-01-23 14:17 Charles 閱讀(181) 評論(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>
            欧美多人爱爱视频网站| 国产欧美一区二区三区在线看蜜臀| 国产精品日韩欧美| 午夜日韩电影| 欧美亚洲一区三区| 精品99视频| 91久久精品美女| 欧美日韩精品中文字幕| 亚洲女同同性videoxma| 欧美综合激情网| 亚洲黄页一区| 亚洲在线一区二区| 曰本成人黄色| 久久阴道视频| 国产精品网曝门| 亚洲一区二区三区午夜| 亚洲国产另类精品专区 | 日韩视频精品在线| 一区二区免费在线视频| 国产日韩精品在线观看| 欧美韩国日本一区| 国产精品一卡| 欧美激情一级片一区二区| 国产精品av久久久久久麻豆网| 久久国产天堂福利天堂| 欧美激情综合五月色丁香小说| 久久av一区二区| 欧美日韩成人在线观看| 久久精品欧美| 欧美午夜理伦三级在线观看| 免费不卡亚洲欧美| 欧美视频三区在线播放| 欧美日韩精品综合| 亚洲精品一区二区三区四区高清| 亚洲国产综合91精品麻豆| 国产精品亚洲а∨天堂免在线| 欧美不卡高清| 国产免费观看久久黄| 亚洲激情图片小说视频| 国产在线一区二区三区四区| 一级成人国产| 一区二区日韩欧美| 欧美1区视频| 久久夜色精品国产欧美乱极品| 国产精品美女一区二区| 亚洲精选中文字幕| 亚洲精品在线免费观看视频| 久久精品国产96久久久香蕉| 欧美一区二区视频在线观看| 欧美日韩免费看| 亚洲激情影视| 亚洲精品视频在线看| 久久香蕉国产线看观看av| 久久久国产一区二区| 国产欧美日韩中文字幕在线| 亚洲香蕉视频| 性高湖久久久久久久久| 国产精品美女诱惑| 亚洲一区日韩在线| 欧美一区二区视频97| 国产嫩草一区二区三区在线观看| 99在线热播精品免费| 正在播放日韩| 欧美体内she精视频| 一本到12不卡视频在线dvd | 久久伊伊香蕉| 美女国内精品自产拍在线播放| 国产一区二区三区免费不卡| 欧美在线视频免费| 免费欧美电影| 91久久精品久久国产性色也91| 模特精品裸拍一区| 亚洲六月丁香色婷婷综合久久| 99视频精品免费观看| 欧美色图五月天| 亚洲——在线| 毛片av中文字幕一区二区| 1024精品一区二区三区| 欧美精品91| 亚洲五月六月| 久久躁日日躁aaaaxxxx| 亚洲激情综合| 国产精品va在线播放| 欧美一区二区三区四区在线观看地址| 久久精品av麻豆的观看方式| 在线播放日韩欧美| 欧美日韩在线观看一区二区三区 | 久久中文字幕一区二区三区| 亚洲高清网站| 欧美日韩视频在线一区二区| 亚洲自拍偷拍福利| 你懂的一区二区| 亚洲视频一区二区在线观看| 国产欧美亚洲日本| 欧美凹凸一区二区三区视频| 在线视频精品一| 免费日韩av| 亚洲欧美在线免费观看| 伊人春色精品| 国产精品黄页免费高清在线观看| 久久激情五月激情| 亚洲美女尤物影院| 久热精品在线视频| 亚洲欧美一区二区原创| 亚洲国产婷婷| 国产欧美一区二区三区久久人妖| 欧美成人tv| 久久精品二区亚洲w码| 一本色道久久| 欧美成人日韩| 久久se精品一区二区| 日韩午夜激情电影| 一区久久精品| 国产日本欧美一区二区三区在线| 欧美激情国产精品| 久久国产婷婷国产香蕉| 亚洲神马久久| 日韩一区二区精品| 亚洲国产欧美一区| 女同一区二区| 久久久久99| 欧美在线播放高清精品| 亚洲深夜福利| 99视频超级精品| 亚洲人成人一区二区三区| 国产中文一区| 国产日韩欧美综合一区| 国产精品久久久久久久午夜片| 欧美精品入口| 欧美大片91| 欧美xart系列高清| 另类激情亚洲| 老司机精品福利视频| 久久久91精品国产一区二区精品| 亚洲欧美日韩一区二区三区在线观看 | 理论片一区二区在线| 欧美综合二区| 欧美一区国产二区| 性做久久久久久久久| 欧美一级片久久久久久久| 香蕉久久夜色| 久久精品视频在线播放| 久久久久**毛片大全| 狂野欧美激情性xxxx| 蜜桃视频一区| 欧美韩国日本综合| 亚洲精品视频在线| 99国产麻豆精品| 亚洲午夜精品17c| 亚洲午夜在线观看| 欧美一区二区三区视频免费| 久久av一区| 蜜桃精品一区二区三区 | 亚洲欧美视频一区| 欧美一区二区福利在线| 久久久久久亚洲精品杨幂换脸 | 欧美精品在线视频| 欧美日韩成人在线视频| 国产精品毛片一区二区三区| 国产农村妇女精品一二区| 禁断一区二区三区在线| 亚洲精品日韩在线| 亚洲综合色在线| 久久久欧美精品sm网站| 亚洲大胆在线| 亚洲线精品一区二区三区八戒| 欧美亚洲三级| 欧美精品大片| 国产日韩欧美不卡在线| 亚洲电影视频在线| 亚洲自拍三区| 另类欧美日韩国产在线| 亚洲精品国产日韩| 欧美一级播放| 欧美日韩精品久久| 狠狠爱综合网| 亚洲特色特黄| 久久一区亚洲| 一区二区三区黄色| 久久野战av| 国产精品色午夜在线观看| 亚洲国产二区| 欧美一区在线直播| 亚洲精品乱码久久久久久| 亚洲欧美三级在线| 欧美日本高清| 一区二区三区在线不卡| 亚洲免费人成在线视频观看| 久久亚洲精品欧美| 亚洲精品美女在线观看播放| 欧美一级大片在线观看| 欧美日韩国产精品| 精品动漫av| 欧美一级二区| 亚洲激情自拍| 久久婷婷丁香| 国产一区二区三区精品欧美日韩一区二区三区| 亚洲日本欧美在线| 蜜臀av国产精品久久久久| 亚洲制服少妇|