Simulation verification system and method for interrupt controller of hard-core MCU

A simulation verification and controller technology, which is applied in the field of simulation verification system, can solve problems such as difficulty in covering interrupt source triggering, reducing verification efficiency, and difficulty in ensuring that the function of the interrupt controller module is correct, etc.

CN103838899AActive Publication Date: 2014-06-04SHANGHAI HUAHONG INTEGRATED CIRCUIT
7 Cites 13 Cited by

Patent Information

Authority / Receiving Office
CN · China
Current Assignee / Owner
Publication Date
2014-06-04

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
Patent Text Reader

Abstract

The invention discloses a simulation verification system for an interrupt controller of a hard-core MCU. The simulation verification system comprises testing software and a simulation verification environment module. The testing software comprises a main program and an interrupt service routine. Value assignment is performed on a relevant interrupt register by the main program in a random mode, and the main program transmits interrupt register configuration, interrupt processing information and a software ready signal to the simulation verification environment module; the interrupt service routine records an interrupt mark number and an interrupt sequence; the simulation verification environment module produces interrupt setting information in a random mode and directly sets all interrupt flag bits in the simulation verification system; the testing software obtains the interrupt processing information in cooperation with the simulation verification environment module, and simulation verification of the interrupt controller is collaboratively completed under a certain flow control. The invention further discloses a simulation verification method for the interrupt controller of the hard-core MCU. According to the simulation verification system and method for the interrupt controller of the hard-core MCU, verification efficiency can be enhanced, the coverage rate can be increased, and reusability is quite high.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention relates to the field of SOC (system on chip) function verification, in particular to a simulation verification system for an interrupt controller of a hard-core MCU (Micro Control Unit micro control unit). The invention also relates to a simulation verification method for an interrupt controller of a hard-core MCU. Background technique

[0002] The interrupt system is an important part of the MCU. The interrupt system is generally used for real-time control, automatic fault processing, and data transmission with peripheral devices. A complete interrupt process includes: the interrupt source is generated, the interrupt source makes an interrupt request to the MCU, the MCU suspends the current program and turns to respond to the interrupt request, processes the interrupt service program corresponding to the interrupt source, and returns from the interrupt. The MCU often contains multiple interrupt sources, and the interrupt controller is u...

Examples

Embodiment Construction

[0018] In the actual application of hard-core MCU, interrupts are generated in various situations. Manually writing interrupt test cases can only configure interrupt registers for special applications, and then trigger interrupts under certain conditions, which will cause a lot of problems in simulation verification. Omission of possible conditions. The present invention uses a random method to simulate and verify the interrupt controller, which can reduce the workload of manually writing test cases and efficiently improve the coverage of simulation verification, so it is very necessary.

[0019] The random setting includes the random setting of each relevant interrupt register in the software test piece; the random setting of the hard-core MCU interrupt flag bit.

[0020] see figure 1 As shown, in one embodiment, the simulation verification system for the interrupt controller of the hard-core MCU includes: DUT (Design Under Test: design under test) module ( figure 1 The par...