← ProblemsCircuits / Combinational Logic / Basic Gates

Gates

64%basics

Build a combinational circuit with two inputs, a and b, that drives seven outputs, each computed by a different gate:

  • out_and = a AND b
  • out_or = a OR b
  • out_xor = a XOR b
  • out_nand = NOT (a AND b)
  • out_nor = NOT (a OR b)
  • out_xnor = NOT (a XOR b)
  • out_anotb = a AND (NOT b)