🏠 Homework
✏️ Execises
K-maps counter
D0 = enable XOR count[0]D1 = (enable AND count[0]) XOR count[1]
| Enable | Current State | Next State |
|---|---|---|
| count | count | |
| 0 | 0 | 0 |
| 0 | 0 | 1 |
| 0 | 1 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 0 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |
| 1 | 1 | 1 |
When enable is 0, the next state is the same as the current state (the counter holds its value). When enable is 1, the counter increments.
K-Map for D0 (Next State of count)
| enable \ countcount | 00 | 01 | 11 | 10 |
|---|---|---|---|---|
| 0 | 0 | 1 | 1 | 0 |
| 1 | 1 | 0 | 0 | 1 |
D0 = enable’·count[0] + enable·count[0]’
D0 = enable XOR count[0]
K-Map for D1 (Next State of count)
| enable \ countcount | 00 | 01 | 11 | 10 |
|---|---|---|---|---|
| 0 | 0 | 0 | 1 | 1 |
| 1 | 0 | 1 | 0 | 1 |
D1 = count[1]·count[0]’ + enable·count[1]‘·count[0] + enable’·count[1]·count[0]
D1 = (enable AND count[0]) XOR count[1]
