Now that we've designed the NOT chip, let's design the AND chip.
┌───────────┐
IN[0] ●─┤ │
│ AND ├─● OUT
IN[1] ●─┤ │
└───────────┘
The AND chip has 2 IN pins and 1 OUT pin.
The OUT pin will transmit a powered signal only when both IN pins receive power.
AND.IN ║ AND.OUT
────────║─────────
00 ║ 0
01 ║ 0
10 ║ 0
11 ║ 1
The circuit board will come pre-installed with INPUT and OUTPUT chips as shown below:
───────┐ ┌────────
├─● OUT[0] │
INPUT │ IN ●─┤ OUTPUT
├─● OUT[1] │
───────┘ └────────
Note that because the NOT circuit board was designed in the previous problem,
the NOT chip is now available to be directly placed onto circuit boards.
While the terms "Chips" and "Circuit Boards" refer to two physically different items,
they are identical with respect to their functional logic capabilities.
That is, in theory any logic designed on a circuit board could be transferred into an integrated chip,
which could then in turn be placed onto another circuit board.
Digital Logic Circuit Interface
For these Digital Logic Circuits tasks, you will not be providing an answer string you would for other tasks.
Instead, your Solution Code will be interpreted directly to place chips onto the circuitboard and connect them with wires.
Click here to learn the Digital Logic Circuit Syntax used on this site.
After the chips have been placed and connected, the server will run a series of tests, randomly assigning values to the input pin(s) and checking to see if the output pins read the corresponding expected values. If all tests produce the expected outputs, then the circuitboard is considered a success.
Even though we won't be using the "Your answer" box, you'll still need to put something in that box to submit your solution. Just put anything - it will not be passed to the interpreter.
Truth Table
Design a circuit board which satisfies the following Truth Table:
INPUT.OUT ║ OUTPUT.IN
───────────║───────────
00 ║ 0
01 ║ 0
10 ║ 0
11 ║ 1