contention
Competition by parts of a system or its users for a limited resource.
contention: when multiple signals fight for the same wire
In electrical systems, contention occurs when two or more signal sources or devices attempt to drive the same conductor simultaneously. This creates a conflict because each source is trying to set the voltage to a different state, usually 0V or 5V (or whatever logic levels define the system). When contention happens, the actual voltage floats between the intended states, producing an undefined logic level that can cause logic errors, data corruption, or hardware damage depending on the circuit topology and current levels involved.
Contention is most common in multi-source bus architectures where several devices might share a single data line or control line. Classic examples include parallel buses in older computers, where multiple chips could attempt to write to the same data bus line, or in open-collector or open-drain output stages where multiple drivers are deliberately connected to a shared line with a pull-up resistor. The pull-up allows any driver to pull the line low, but if two drivers conflict, the results are unpredictable.
The severity of contention depends on the output impedance of the conflicting sources. If two TTL outputs drive against each other, the low impedance creates a large current spike that can heat the output transistors and degrade them over time. If a CMOS driver conflicts with another CMOS driver, the power dissipation is typically higher than a TTL-to-TTL conflict. In either case, repeated contention will shorten component life and increase the risk of permanent failure.
Prevention and Detection
Proper system design prevents contention through tri-state (high-impedance) logic, where drivers can be disabled when not actively driving the line. Protocols enforce this with enable or chip-select signals that ensure only one driver is active at any given moment. Shared busses also rely on arbitration logic that grants access to only one master device per cycle. In modern digital systems, contention is largely avoided by using point-to-point serial links instead of shared parallel buses, eliminating the competition for conductors altogether.
When contention does occur inadvertently in a system, it typically manifests as intermittent data corruption, timing violations, or unexplained bit errors. Logic analysers can reveal the characteristic floating voltage levels or glitches on affected signals. Thermal imaging may show localized hot spots at the output stage of the conflicting driver.