A | B | C | | Y1 | Y0 |
0 | 0 | 0 | | 0 | 0 |
0 | 0 | 1 | | 0 | 1 |
0 | 1 | 0 | | 0 | 1 |
0 | 1 | 1 | | 1 | 0 |
1 | 0 | 0 | | 0 | 1 |
1 | 0 | 1 | | 1 | 0 |
1 | 1 | 0 | | 1 | 0 |
1 | 1 | 1 | | 1 | 1 |
- Write-out the sum-of-products for this truth table
+ Inputs are A, B, C.
+ Outputs are Y1, Y0
- Draw the circuit by hand
- Draw the circuit in Logisim
+ Manually test some inputs
- Create a run test vector
*NB:* circuits built from the sum-of-products have two stages - ANDs then ORs
- this is called a **programmable logic array** or PLA
## Assignment
- [Assignment 5](../../assignments/assignment-5/)
- Given a truth table, design a circuit
- Use sum-of-products
- implement it in Logisim
- test it with a test vector
- submit screenshot
## Decoder
- A **decoder** is another common circuit that has $n$ inputs and $2^n$ outputs
-
Only one output is a 1 at any given time (one for each possible combination of inputs)
-
If the input encodes the number 7, then the output bit for 7 is asserted and all others are zeros
## Decoder Truth Table
- Below is a 3-bit decoder truth table
