简体   繁体   English

a、b 和 Y 之间应该存在哪个逻辑门/电路?

[英]Which logic gate/circuit should be present between a, b & Y?

如何完成a、b、Y之间的电路?

Thanks for pondering over my question.感谢您考虑我的问题。
Above is a digital logic circuit with 2 inputs, & 1 output.上面是一个带有 2 个输入和 1 个 output 的数字逻辑电路。 I want following logic to be implemented in sequence:我希望按顺序实现以下逻辑:

  1. b = 0, a = 0, Y = 0 b = 0,a = 0,Y = 0
  2. b = 1, a = 0, Y = 1 b = 1,a = 0,Y = 1
  3. b = 0, a = 1, Y = 1 b = 0,a = 1,Y = 1
  4. b = 1, a = 1 should be explicitly avoided so that both a & b are not 1 simultaneously b = 1,应明确避免 a = 1,以便 a & b 不同时为 1
  5. Suppose step 3 is tried before step 2, then output should be 0, ie, Y = 0.假设步骤 3 在步骤 2 之前尝试,那么 output 应该为 0,即 Y = 0。

Which logic gate or digital circuit will work for above sequence of logical ops?哪个逻辑门或数字电路适用于上述逻辑操作序列? I tried with OR and XOR gates, but they don't satisfy condition 5, and sequential operation can't be enforced.我尝试了 OR 和 XOR 门,但它们不满足条件 5,并且无法强制执行顺序操作。
Can I use 2-to-1 priority encoder such as the one shown in figure below?我可以使用如下图所示的 2 对 1 优先编码器吗?
优先编码器

Or may be some smart implementation of NOR SR latch?或者可能是 NOR SR 锁存器的一些智能实现? Please let me know of your thoughts.请让我知道你的想法。 Thanks ahead of the time.提前谢谢。

f XOR a seems to fit perfectly. f XOR a似乎非常合适。

How is it that you feel it contradicts condition 1?你怎么觉得它与条件 1 相矛盾?

a b c F Y
---------
0 0 0 0 0
0 0 1 1 1
0 1 0 1 1
0 1 1 1 1
1 0 0 0 1
1 0 1 1 0
1 1 0 1 0
1 1 1 1 0

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM