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

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

Introduction

In the last set of notes, we talked about a combinational logic device abstractly. Now we're going to look at a specific example of a combinational logic circuit, perhaps one of the most useful ones we'll see: the multiplexer (or MUX, for short).

The word "multiplexer" probably doesn't mean much to you. If anything, it sounds like a place where you can go watch movies. A better name for a multiplexer might be input selector.

A multiplexer picks one of several inputs and directs it to the output. We'll see this in more detail.

A 2-1 MUX

Let's start off with a 2-1 MUX. A 2-1 MUX has two data inputs, which we'll call x1 and x0. It has one output, which we'll call z.

We want to pick either x1 or x0 and direct its value to the output.

How do well tell the MUX which input we want? We need to have control inputs.

How many control inputs are needed? We have two possible inputs, and basically the idea is to label these two choices with as few bits as possible. We've already discussed how to label N items with as few bits as possible.

The answer is: ceil( lg 2 ) = 1.

Thus, we need a single bit for a control input. We'll call this bit, c (which is short for "control").

The following chart describes the behavior of a 2-1 MUX.

cz
0 x0
1 x1

When c = 0, x0 is directed to the output, z. When c = 1, x1 is directed to the output, z. Notice that we treat c as a 1-bit UB number, and that this number specifies the subscript of the input we want to direct to the output.

Diagram of 2-1 MUX

The diagram above illustrates how the 2-1 MUX behaves when c = 0 (see upper left diagram) and when c = 1 (upper right.

A 4-1 MUX

Now we consider a 4-1 MUX. A 4-1 MUX has four data inputs, which we'll call x3, x0, x1 and x0. A 4-1 MUX still has one output, which we'll call z.

We want to pick one of x3, x0, x1 or x0 and direct its value to the output.

How many control inputs are needed? We have four possible inputs, and we want to label these fourc choices with as few bits as possible. How many bits are needed?

The answer is: ceil( lg 4 ) = 2.

We call these two bits c1..0. We're going to treat c1..0 as a 2-bit UB number. There are four possible bitstring patterns: 00, 01, 10, and 11. They correspond to the following values 0ten, 1ten, 2ten, and 3ten. In particular, these values are going to be the values of the subscripts of the data input.

For example, if c1..0 = 10, then we want to select x2 to direct to the output since the representation 10two corresponds to the value 2ten using UB representation.

The following chart describes the behavior of a 4-1 MUX.

c1c0z
0 0 x0
0 1 x1
1 0 x2
1 1 x3

When c1..0 = 00

, then z = x0. When c1..0 = 01, then z = x1. When c1..0 = 10, then z = x2. When c1..0 = 11, then z = x3.

Diagram of 4-1 MUX

The diagram above illustrates how the 4-1 MUX behaves when c1..0 = 00 (see upper left diagram), when c1..0 = 01 (upper right diagram), when c1..0 = 10 (lower left diagram), and when c1..0 = 11 (lower right diagram),

Notice that when you feed 10 to the control inputs, you are really feeding two bits of input to the 4-1 MUX, i.e., c1 = 1 and c0 = 0. However, for brevity we write it as c1..0 = 10.

A 3-1 MUX

Usually MUXes are of the form 2k-1 MUX where k >= 1. That is, the number of inputs for a typical MUX is a power of 2. However, occasionally, you may wish to have number of inputs be some other choice.

What happens then? For example, supposed you want to have a 3-1 MUX. How many control bits are needed?

We use the same formula as before: ceil( lg 3 ) = 2.

lg 3 evaluates to a value that is greater than 1, but less than 2. When we take the ceiling of that value, we get 2.

With 2 controls bits, we can specify up to four different inputs. The problem? We only have three inputs. What do we do when the user tries to specify input c1..0 = 11? This would normally specify that you want z = x3, but with only 3 inputs, z = x3 doesn't exist.

The answer is simply not to care. Ideally, if a 3-1 MUX is being used in a circuit, the rest of the circuit does not set the control bits, c1..0 = 11.

However, since we can't prevent that from happening, we simply let the actual designer of the 3-1 MUX pick any value for that.

c1c0z
0 0 x0
0 1 x1
1 0 x2
1 1 don't care

This solution of placing a don't care value for MUXes with k inputs, where k is not a power of 2, is fairly common. If you want, just set the value to x0.

A 2-bit 2-1 MUX

Most information in a 32-bit CPU are grouped into 32 bits. Generally, you want to move 32 bits at a time. So, even a MUX is likely to choose from one of N 32-bit quantities.

The following is an implementation of a 2-bit 2-1 MUX. In this MUX, you can choose between x1..0 and y1..0 using a control bit c. You can implement this kind of MUX using 2 1-bit 2-1 MUXes. In general, you can create a k-bit m-1 MUX, using k 1-bit m-1 MUX, using a similar strategy as shown below.

As you can see there are two sets of data inputs: x1x0 (which we abbreviate as x1..0) and y1y0 (which we abbreviate as y1..0). There is one control bit since this is still a 2-1 MUX. There are two bits of output: z1..0. Inside the black box is the implementation, which include two 1-bit 2-1 MUX.

We could have called this a 4-2 MUX, but it doesn't make it nearly as clear that you have 2 choices to pick from. 2-bit 2-1 MUX indicates that there are 2 choices.

An Exercise

To see if you understand how the MUXes were constructed, try implementing a 2-bit 4-1 MUX, then a 4-bit 4-1 MUX using 1-bit 4-1 MUXes.

A 1-4 DeMUX

If a multiplexer is an input selector that chooses from one of N inputs and directs it to the output, then a demultiplexer is an output selector which has a single input and directs it to one of N outputs.

Even though a DeMUX appears to be the opposite of a MUX (an output selector versus an input selector), surprisingly, it's not used nearly as often as MUXes. MUXes seem to find more uses than a DeMUXes.

Suppose you have a 1-4 DeMUX. You want to pick one of four possible outputs. How many control inputs do you need? Again, it's the same idea of labelling one of four items. You need ceil( lg 4 ) = 2 bits.

The following is a diagram of a 1-4 DeMUX.

Chart for 1-4 DeMUX

This is the chart that describes the behavior of a 1-4 DeMUX.

c1c0z 0z 1z 2z 3
0 0 x 0 0 0
0 1 0 x 0 0
1 0 0 0 x 0
1 1 0 0 0 x

As you can see, x is directed to one of the outputs. The choice of which output it is directed to is basically the same as it is for the MUX. We treat c1..0 as a 2-bit UB number, which specifies the subscript of the output we want the input to be directed to.

What happens to the remaining outputs? For example, if we decide to direct x to z2, what values should the other 3 outputs have? Our solution is to have all of the remaining outputs set to 0.

This means that a DeMUX can have, at most one output that is 1. The remaining outputs are 0. This may not always be the behavior you want, but it's easy enough to design a DeMUX such that the remaining outputs are, say, 1.

Summary

A MUX is an input selector. It allows you to select from 1 of N inputs and direct it to the output using ceil( lg N ) control bits.

A MUX is also a combinational logic device meaning that once the input to the MUX changes, then after a small delay, the output changes. Unlike a register, a MUX does not use a clock to control it.

A MUX is very handy in a CPU because there are many occasions where you need to select one of several different inputs to some device. Usually, these MUXes are 32-bit m-1 MUX for some value of m.

A DeMUX is an output selector, letting you pick one of N outputs to direct an input to.

posted on 2007-01-23 18:38 Charles 閱讀(467) 評(píng)論(0)  編輯 收藏 引用 所屬分類: 拿來主義
<2025年9月>
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011

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

常用鏈接

留言簿(4)

隨筆分類(70)

隨筆檔案(71)

charles推薦訪問

搜索

  •  

積分與排名

  • 積分 - 51563
  • 排名 - 449

最新評(píng)論

閱讀排行榜

評(píng)論排行榜

青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <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成人免费在线观看| 日韩亚洲欧美高清| 亚洲美女尤物影院| 日韩午夜电影| 午夜精品久久久久久久99水蜜桃| 一区二区三区欧美在线观看| 亚洲深夜av| 欧美一区2区视频在线观看| 久久精品国产精品亚洲综合| 久久婷婷人人澡人人喊人人爽| 久久午夜电影网| 亚洲欧洲在线免费| 宅男噜噜噜66国产日韩在线观看| 亚洲一区二区精品视频| 久久久www| 欧美三区视频| 伊大人香蕉综合8在线视| 日韩视频在线观看免费| 欧美一区网站| 亚洲国产天堂久久国产91| 中国成人在线视频| 久久久久久久999| 欧美极品色图| 国精产品99永久一区一区| 亚洲免费观看高清在线观看 | 欧美视频一区二区三区在线观看| 国产拍揄自揄精品视频麻豆| 亚洲国产精品第一区二区| 亚洲午夜av电影| 玖玖国产精品视频| 亚洲网站在线播放| 欧美成人自拍视频| 国语精品一区| 亚洲综合国产| 最近中文字幕mv在线一区二区三区四区 | 亚洲欧美国产另类| 欧美激情第六页| 午夜精品理论片| 欧美日韩成人在线视频| 在线观看日韩av电影| 久久国产精品久久久| 99在线精品视频| 免费亚洲电影在线| 经典三级久久| 久久蜜桃香蕉精品一区二区三区| 在线中文字幕一区| 欧美日韩一级片在线观看| 91久久亚洲| 欧美成人综合| 久久综合网络一区二区| 一区一区视频| 美女精品在线观看| 久久九九免费视频| 精品1区2区| 美女亚洲精品| 老司机精品视频一区二区三区| 国产亚洲一区二区三区在线播放| 亚洲欧美另类在线| 亚洲伊人伊色伊影伊综合网 | 欧美一二三视频| 国产日韩亚洲欧美综合| 欧美一区二区在线免费播放| 亚洲午夜女主播在线直播| 国产精品sss| 亚洲欧洲av一区二区| 亚洲一区二区免费在线| 国产欧美 在线欧美| 久久精品国产999大香线蕉| 午夜精品av| 国产一区二区三区成人欧美日韩在线观看| 亚洲综合二区| 欧美在线啊v一区| 伊人婷婷久久| 最新国产の精品合集bt伙计| 欧美另类人妖| 亚洲欧美一级二级三级| 午夜在线视频观看日韩17c| 国产主播一区二区三区| 美女视频黄免费的久久| 欧美激情精品久久久久久| 一本大道久久a久久综合婷婷| 日韩亚洲欧美精品| 国产精品永久免费观看| 久热精品视频在线| 欧美国产专区| 亚洲欧美视频在线| 久久久久.com| 亚洲免费观看| 亚洲欧美日韩国产一区二区三区| 国产一区99| 最新成人av在线| 国产伦精品一区二区三区高清版| 在线播放精品| 亚洲第一精品福利| 欧美一区二区视频97| 欧美日韩一区二区三区在线视频 | 在线综合亚洲| 午夜在线a亚洲v天堂网2018| 激情一区二区| 夜夜夜久久久| 亚洲福利视频二区| 一区二区三区四区在线| 影音先锋在线一区| 亚洲性色视频| 亚洲精品免费在线播放| 亚洲欧美一区二区三区在线| 亚洲黄页一区| 欧美亚洲在线播放| 亚洲一本视频| 免费久久久一本精品久久区| 欧美成人免费在线视频| 欧美在线视频二区| 欧美福利一区二区三区| 久久精品官网| 国产精品成人在线| 亚洲国产成人在线| 激情六月综合| 香蕉av777xxx色综合一区| 亚洲私拍自拍| 欧美精品福利在线| 欧美成人国产va精品日本一级| 国产精品护士白丝一区av| 亚洲第一精品福利| 在线日韩欧美| 欧美主播一区二区三区美女 久久精品人| 日韩视频在线一区二区| 你懂的国产精品永久在线| 久久久久欧美| 国产午夜精品久久久| 中国成人亚色综合网站| 一区二区三区欧美激情| 欧美成人dvd在线视频| 美女露胸一区二区三区| 国产一区二区三区自拍| 香港久久久电影| 欧美中文字幕久久| 国产精品系列在线播放| 亚洲特色特黄| 亚洲欧美三级伦理| 国产精品久久久久毛片软件| 99国产精品私拍| 一区二区欧美在线观看| 欧美特黄a级高清免费大片a级| 亚洲精品资源美女情侣酒店| 亚洲精品久久久久久久久久久久 | 欧美一区二区视频网站| 午夜欧美不卡精品aaaaa| 欧美日韩一区二区三区免费看| 亚洲人被黑人高潮完整版| 欧美三日本三级三级在线播放| 欧美自拍丝袜亚洲| 国产日韩在线一区| 亚洲自拍另类| 欧美中在线观看| 国产一区二区无遮挡| 久久亚洲不卡| 亚洲精品日韩激情在线电影| 亚洲午夜国产成人av电影男同| 欧美午夜视频网站| 亚洲欧美电影在线观看| 久久婷婷国产麻豆91天堂| 悠悠资源网亚洲青| 欧美大片一区二区三区| 中国成人亚色综合网站| 久久国产视频网站| 亚洲国产毛片完整版| 欧美日韩国产成人在线观看 | 久久精品夜色噜噜亚洲a∨| 久久天天狠狠| 亚洲区欧美区| 国产精品三区www17con| 亚洲欧美日韩专区| 欧美黄色免费网站| 亚洲无线一线二线三线区别av| 国产精品久久久久久久久 | 欧美日韩一区二区在线观看| 亚洲视频成人| 免费看亚洲片| 亚洲深爱激情| 亚洲国产精品美女| 国产精品高精视频免费| 久久久久久亚洲精品不卡4k岛国| 亚洲国产精品悠悠久久琪琪| 亚洲尤物精选| 亚洲国产激情| 国产精品私拍pans大尺度在线| 狂野欧美一区| 亚洲视频香蕉人妖| 欧美黄色免费网站| 久久精品盗摄| 亚洲一区免费| 亚洲欧洲在线播放| 国产一区二区三区日韩| 欧美日韩三级电影在线| 久久久久国产精品麻豆ai换脸| 日韩亚洲欧美成人| 欧美激情视频一区二区三区不卡| 欧美一级艳片视频免费观看| 亚洲清纯自拍|