I2C Bus Busy Flag
Multi-master I2C systems require nodes to monitor ongoing transmissions before asserting control over the shared bus. The bus busy flag prevents collisions by tracking whether a data transaction is currently active.
The circuit maintains a state flag busy that indicates if the bus is in use. It is set to 1 when a start condition is detected (start_det is 1) and cleared to 0 when a stop condition is detected (stop_det is 1). If neither condition is detected, the flag holds its previous state. If both conditions are asserted simultaneously, the stop condition takes priority and clears the bus.
| start_det | stop_det | busy (next) | |-------------|------------|---------------| | 0 | 0 | busy (prev) | | 1 | 0 | 1 | | 0 | 1 | 0 | | 1 | 1 | 0 |
Constraints
- Implement using asynchronous logic.
- Do not use clock signals or edge-triggered flip-flops.
- The
stop_detsignal must have priority over thestart_detsignal.
Topics
Solve this problem
Place the gates, wire them up and watch the signals settle. Every submission runs on the same simulation engine that grades it.
This problem is part of Codiode Pro. The statement above is free to read.
The circuit builder and code editor need a desktop screen. On a phone, read the problem here and open it on a laptop to solve.