一个XOR门背后的理念是,“如果一个或B是1,但是不同时,Q是1。”的reason why XOR might not be included in a list of gates is because you can implement it easily using the original three gates listed.
现在我们有一个功能叫做“全面加法器。”What a computer engineer then does is "black-box" it so that he or she can stop worrying about the details of the component. A黑盒为一个完整的加法器看起来像这样:
在这个电路中,有两个输入(D和E),你能想到的D“数据”E为“启用”。If E is 1, then Q will follow D. If E changes to 0, however, Q will remember whatever was last seen on D. A circuit that behaves in this way is generally referred to as a触发器。
现在你可能会问自己:“在这个世界上,好吗?”It turns out that the concept of "edge triggering" is very useful. The fact that J-K flip-flop only "latches" the J-K inputs on a transition from 1 to 0 makes it much more useful as a memory device. J-K flip-flops are also extremely useful in计数器(当得到了广泛应用创建一个数字时钟)。这里的一个例子4比特计数器使用j - k拖鞋: