This invention discloses an embedded SoC-level real-time monitoring and analysis device, comprising a
bus comparator, a
system event counter, and a
control register set. The
bus comparator acquires access signals from the
address bus, data
bus, and instruction bus in real time and compares them with preset matching rules. Upon matching, it generates a trigger
signal to drive the event
status register to
record, output interrupt signals, or debug signals, and serves as the input event for the
system event counter. The
system event counter monitors various events generated during operation, and generates a trigger
signal when the monitoring result equals a preset reference value. The
control register set configures the matching conditions of the bus
comparator, sets the counting mode of the system event counter, and reads the comparison status, event counting results, and related monitoring information through the
bus interface. This invention introduces a configurable event capture mechanism and multiple counting
modes at the hardware level, reducing reliance on
software debugging and improving the real-time performance of monitoring and analysis.