
This circuit takes eight digital inputs (IN0–IN7), processes some of them through logic gates, and drives eight outputs (OUT0–OUT7) that are connected to a seven-segment display.
Inputs IN0, IN1, and IN2 are electrically tied together, forming a single signal called A.
This signal is fed into three NOT gates.
These inverted signals drive OUT0, OUT1, and OUT2.
Some inputs are not modified by any logic gates:
These outputs always match their corresponding inputs.
Inputs IN5 and IN6 are connected to an XOR gate.
This result drives OUT6.
Inputs IN6 and IN7 are connected to an AND gate.
This result drives OUT7.
The outputs are wired to segments of a seven-segment display.
By changing the input values, the combination of active outputs determines which segments light up and ther
| Output | Logic Description |
|---|---|
| OUT0 | ¬A |
| OUT1 | ¬A |
| OUT2 | ¬A |
| OUT3 | IN3 |
| OUT4 | IN4 |
| OUT5 | IN5 |
| OUT6 | IN5 ⊕ IN6 |
| OUT7 | IN6 AND IN7 |
List external hardware used in your project (e.g. PMOD, LED display, etc), if any
| # | Input | Output | Bidirectional |
|---|---|---|---|
| 0 | A_IN0 (shared input, tied with ui[1] and ui[2]) | OUT0 (NOT A, seven-segment control) | |
| 1 | A_IN1 (shared input, tied with ui[0] and ui[2]) | OUT1 (NOT A, seven-segment control) | |
| 2 | A_IN2 (shared input, tied with ui[0] and ui[1]) | OUT2 (NOT A, seven-segment control) | |
| 3 | IN3 (direct to output) | OUT3 (direct from IN3) | |
| 4 | IN4 (direct to output) | OUT4 (direct from IN4) | |
| 5 | IN5 (XOR and direct) | OUT5 (direct from IN5) | |
| 6 | IN6 (XOR and AND) | OUT6 (IN5 XOR IN6) | |
| 7 | IN7 (AND input) | OUT7 (IN6 AND IN7) |