This application is a National Stage application of PCT application PCT/EP02/00503 filed Jan. 18, 2002, which was published in English under PCT Article 21(2) on Jul. 24, 2003, Publication Number WO 03/060719.
The present invention relates to a system and a method of clocking an IP core during a debugging operation.
In the design of integrated circuits, there is an increasing demand for emulation and verification tools. Hardware-based verification solutions have been around for years in two different embodiments: accelerators and emulators. Useful tools in emulation systems are so-called IP-Xpress kits which are emulation-ready kits for concurrent hardware and software verification of processor-based systems. Such IP-Xpress kits use microprocessor or DSP chips, mounted onto a printed-circuit-board to provide the functionality of the device to be connected to a design mapped into the emulator, and the kits consist of a board and HDL-wrapper files.
All processor-type IP cores require some external clock source. Hence, one or more clock signals are provided to the IP-Xpress boards. The clocks are provided either directly from the internal clock generators of the emulator or they may be driven from the design loaded onto the emulator.
Another way of providing clock to an IP core is by using a clock oscillator mounted onto the IP-Xpress board. In this case any frequency can be applied, i.e. there are no maximum clock frequency constraints due to the emulation system.
A key advantage of an IP-Xpress kit is to provide a fast running system verification environment in which application software is running on the IP core and this stimulating the design mapped to the emulator. In case of faulty system behaviour, the cause for this could either be in the application software or in the design (provided the IP core is functioning correctly). In order to identify the erroneous component of the system both the application software as well as the design has to be debugged. This can be done most conveniently when the hardware and software are stopped synchronously. On the one hand, this gives a good correlation between the design's status and the actual software execution, and on the other hand it enables to interrogate all resources of the design mapped onto the emulator system. This may mean, however, that the emulator clocks are stopped. In case the IP core is clocked by a clock generated by the emulator system, this would mean that the IP core is not clocked anymore. Hence, the software debugger would not necessarily work and as a result the resources of the software execution were not visible and a full system debugging would not be possible.
It is the object of the present invention to provide a system and a method of clocking an IP core during a debugging operation. This object is achieved with the features of the claims.
In order to achieve this object, according to the present invention, the clock generation for the IP core when entering the system debugging mode is implemented on the IP-Xpress board itself. There is provided a clock oscillator and a switching means, and the switching means switches to the clock oscillator provided on the IP-Xpress board as soon as the system debug mode is entered. In order to initiate the switching operation, the switching means monitors signals specific to the IP core which indicate a breakpoint, e.g., EMU0/1 in case of TI C6x DSPs, and if these indicate that a breakpoint has been entered, the clock output of the switching means is driven from the clock oscillator. Hence, the IP core is continuously clocked even when the clocks of the emulator system are stopped. Furthermore, the software debugger is still functional in its system debug mode and all IP core internal resources and the software execution status can be investigated.
Upon leaving the system debug mode, the switching means is signalled to switch back to the clocks of the emulator system, and the system execution can continue in its normal operational mode.
The present invention will now be described with reference to
During normal operation of the emulator system, the switching means feeds a “regular” clock through its output. When the system debug mode is entered, the switching means switches from this “regular” clock to the clock oscillator provided on the IP-Xpress board.
The following code fractions demonstrate how the switching to the clock oscillator can be implemented inside the switching means.
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/EP02/00503 | 1/18/2002 | WO | 00 | 10/25/2005 |
Publishing Document | Publishing Date | Country | Kind |
---|---|---|---|
WO03/060719 | 7/24/2003 | WO | A |
Number | Name | Date | Kind |
---|---|---|---|
6473727 | Kirsch et al. | Oct 2002 | B1 |
Number | Date | Country |
---|---|---|
0 685 793 | Dec 1995 | EP |
11-259329 | Sep 1999 | JP |
0120784 | Mar 2001 | WO |
Number | Date | Country | |
---|---|---|---|
20060059388 A1 | Mar 2006 | US |