# 901 Gate Guesser

## 901 : Gate Guesser

• Author: Fabio Ramirez Stern
• Description: A very simple gate guessing game - which I/O is connected to what?
• GitHub repository
• Clock: 0 Hz

### How it works

The input and inout (used as inpputs) pins are connected to 8 different logic gates, which lead to the outputs. Only one logic layer of combinatoric logic. Each input is hooked up to only one gate.

### How to test

No clock, enable or reset is used. As this is just one layer of combinatoric logic, you can simply check against a precalculated truth table. To play, flip the inputs and observe the output until you recognise what it must be.

### External hardware

Connect 16 switches to the input and inout pins, the 8 outputs are hooked up to one LED each (or other display hardware of your choice).

The solution is:

<details> <summary> SPOILER </summary>

out0 = in0 and in2

out1 = not in1

out2 = in5 and in7 and inA

out3 = in6 xor inC

out4 = in4 nand in9

out5 = in8 xnor B

out6 = inE nor inF

out7 = in3 or inD

</details>

### IO

#InputOutputBidirectional
0switch0gatey0switch8
1switch1gatey1switch9
2switch2gatey2switchA
3switch3gatey3switchB
4switch4gatey4switchC
5switch5gatey5switchD
6switch6gatey6switchE
7switch7gatey7switchF