Integrated Circuit Bus Hang Detection Using Command Timeout Counters
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing chip systems face issues with bus hanging, where a command fails to release the bus properly, leading to a locked state and impaired data transmission, often resulting in performance degradation or system collapse due to untimely detection of bus occupation.
Innovation Solution
A method and apparatus for detecting bus access state by counting first commands using counters to determine the number and time-out duration, comparing against a preset threshold to identify bus occupation, and sending interrupt-based reports to handle hanging states.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If bus access is monitored without counters and time-out detection, then device complexity is reduced, but reliability deteriorates due to undetected bus hanging
Solution Approach 1:
The patent applies preliminary action by pre-configuring counter units and time-out detection mechanisms before bus operations begin. The counter units are预先 set to monitor specific bus channels, and time-out thresholds are predetermined, enabling automatic detection without requiring complex real-time analysis during bus operations.
Solution Approach 2:
The detection system is segmented into multiple independent counter units, each monitoring a specific bus channel. This segmentation allows the system to track multiple bus operations simultaneously using simple, modular components rather than a single complex detection mechanism.
2Measurement precision
If multiple counters are used to track command numbers and time-out durations, then measurement precision is improved, but device complexity increases
Solution Approach 1:
The counter units serve multiple functions: they count the number of commands on specific bus channels, track time-out durations, and provide data for bus hanging determination. This multi-functionality reduces the need for separate specialized components for each measurement task.
Solution Approach 2:
The patent uses simplified counter models that replicate the essential monitoring functionality without requiring complex measurement infrastructure. Each counter unit is a standardized, reusable component that can be instantiated multiple times for different bus channels.
3Loss of time
If bus hanging detection is implemented early through command counting, then loss of time is reduced by preventing system crashes, but device complexity increases
Solution Approach 1:
The system implements continuous feedback by constantly monitoring command counts and time-out durations through the counter units. When a bus operation exceeds the predetermined time-out threshold, the feedback mechanism triggers a bus hanging determination, enabling early detection and prevention of system crashes before they occur.
Data Source
AI summary
The embodiments of the present disclosure disclose a method and apparatus for detecting a bus access state in an integrated circuit, medium, and a device, where the method includes: detecting first commands transmitted by a first channel of the bus in the integrated circuit; accumulating, by a first counter, a number of the first commands to obtain a first accumulated value; counting, based on the first accumulated value, a time-out duration for the first commands accumulated in the first counter by a second counter to obtain a second accumulated value; and determining, based on a relationship between the second accumulated value and a preset threshold, the access state of the bus.


