• <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>
            posts - 71,  comments - 41,  trackbacks - 0
            ? 2003 by Charles C. Lin. All rights reserved.

            Introduction

            Digital logic circuits can be divided into two categories: combinational logic and sequential logic.

            Combinational logic devices implement Boolean functions. A Boolean function has k bits of input and m bits of output, where k >= 0 and m >= 1.

            Any combinational logic device can be constructed out of AND gates, OR gates, and NOT gates. However, they can also be completely constructed using only NAND gates, or using only NOR gates.

            You can describe the behavior of a combinational logic device using a truth table.

            Control vs. Data Inputs

            We can often divide the inputs of a combinational logic device into two categories: data inputs and control inputs.

            Control inputs let you control what the device does. For example, if you have a blender, there are often several buttons to let you decide how you want to chop the food. Or a washing machine has several choices you can pick depending on the kind of clothes you are going to wash. It lets you select temperature, time, and the amount of agitation.

            If you have N choices for the different operations that a combinational logic device can perform, then you need ceil( lg N ) control bits to specify the operation. This result should be familiar, because we discussed it in a previous set of notes.

            Some combinational logic devices do not have control inputs. They only have data inputs. However, many of the ones we consider do have them. The combinational logic device doesn't really distinguish between data and control inputs. To the device, it's all just inputs.

            However, as humans who use these devices, it's useful to think of these two categories.

            Changing the Inputs

            If you change the values of the inputs to a combinational logic device, there is some short, but finite delay before the output changes. The output can't change instantaneously.

            Notice that this behavior is different from a register. A register is a sequential logic device, which can only change its value at a clock edge. A combinational logic device can change its outputs as soon as the inputs change (plus a little delay from input to output).

            Again, it's useful to think that values are continuously being fed to a combinational logic device and the outputs change as the inputs change.

            Here's another useful analogy. Suppose you have a flashlight that can shine red light or green light. There's a switch on the flashlight that allows you to switch between red and green.

            Suppose you have a light sensor. If the light sensor detects green light, it plays the musical note of "A". If it detects red light, it plays the musical note of "C". If it detects no light, then it doesn't play anything.

            So, you shine green light onto the sensor, and it begins to play the note "A". Then, you switch it to red light, and there is a small delay, before it starts to play the note "C".

            Then, you switch it back to green light, and, after a tiny delay, it goes back to playing "A".

            Finally, you turn the flashlight off, and after a small delay, it stops playing. Notice that as long as the flashlight was shining on the sensor, it played something, but when it was turned off, it stopped playing. The flashlight had to continuously emit red or green light for the sensor device to play a note.

            This is one way to think about how circuits work. There is a continuous flow of current into the device. The current's voltage is either interpreted as 0 or 1, and can be changed. If the input changes, then after a small delay, the output current is updated to the new value.

            Diagram of a Generic Combinational Logic Device

            As you can see, there are k bits of data input, n bits of control inputs, and m bits of output.

            When the inputs change, then there is a small delay before the output changes. We see this in the next section.

            An Example with XOR

            Suppose we have a XOR2 which is a 2-input XOR gate.

            Initially, we have two inputs, x and y, whose value are both 0. The output z is 0, as well. Then we change x to 1, and the output z, after some delay becomes 1. Then, we change y to 1, and after some delay, the output z becomes 0.

            Here's a timing diagram to illustrate the behavior.

            As you can see, at time (1), x changes to 1. However, it takes until time (2) for z to change to 1. Then, at time (3), y changes to 1, but it takes until time (4) for z to change back to 0.

            The amount of time for z to change is called the circuit delay, and we write it as "delta" T. This time is usually very short. Nevertheless, it's not zero.

            Because it's not zero, it affects the way circuits are designed. The smaller the value of delta T, the quicker we can make the circuit.

            Summary

            Unlike a sequential logic device (such as a register), a combinational logic device does not use a clock. Once the input value changes, the output values of a combinational logic device changes, after a small circuit delay. Of course, sometimes the output value doesn't change at all even if the input changes.

            For example, suppose you have an AND gate. If both inputs are 0, then one input is changed to 1, then the output is still 0. However. in those cases where the output changes, there is a delay.

            A combinational logic device can be specified by using a truth table, and is an implementation of a Boolean function. Any Boolean function can be implemented using a combination of AND, OR, and NOT gates (or only using NAND gates, or only using NOR gates).

            posted on 2007-01-23 18:15 Charles 閱讀(417) 評論(0)  編輯 收藏 引用 所屬分類: 拿來主義
            <2025年8月>
            272829303112
            3456789
            10111213141516
            17181920212223
            24252627282930
            31123456

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

            常用鏈接

            留言簿(4)

            隨筆分類(70)

            隨筆檔案(71)

            charles推薦訪問

            搜索

            •  

            積分與排名

            • 積分 - 51397
            • 排名 - 449

            最新評論

            閱讀排行榜

            評論排行榜

            日本精品一区二区久久久| 久久综合九色综合欧美就去吻| 伊人久久精品无码av一区| 久久久久久精品免费看SSS| 国产精品久久国产精品99盘| 国产精品成人久久久久三级午夜电影| 久久久久亚洲AV成人网| 亚洲中文字幕无码久久综合网 | 久久久久国色AV免费观看| 国内精品九九久久精品| avtt天堂网久久精品| 99久久做夜夜爱天天做精品| 国产亚洲色婷婷久久99精品| 久久久亚洲精品蜜桃臀| 久久精品一区二区| 国产精品久久久久jk制服| 97精品伊人久久大香线蕉| A级毛片无码久久精品免费| 亚洲精品乱码久久久久久| 欧美久久久久久精选9999| 色综合久久天天综合| 国产国产成人精品久久| 久久精品国产男包| 国产精品99久久久精品无码| 久久久久久青草大香综合精品| 久久久久久久尹人综合网亚洲| 久久综合国产乱子伦精品免费| 综合久久久久久中文字幕亚洲国产国产综合一区首 | 久久99精品国产99久久| 久久ZYZ资源站无码中文动漫| 久久亚洲精品国产亚洲老地址| 欧美亚洲日本久久精品| 色欲综合久久躁天天躁| 亚洲欧美精品一区久久中文字幕| 精品久久久久国产免费| 久久精品无码一区二区日韩AV| 中文字幕成人精品久久不卡| 国产精品无码久久四虎| 久久久91人妻无码精品蜜桃HD| 欧美粉嫩小泬久久久久久久| 一级a性色生活片久久无少妇一级婬片免费放 |