摘要:
A microcontroller software testing tool is disclosed for testing and debugging software for a semiconductor circuit. The microcontroller software testing tool includes a simulator for simulating the execution of the software program on the target semiconductor circuit and an emulator to permit emulation before the actual silicon exists. The emulator utilizes the same high definition language specification, such as VHDL models, that define the silicon during the fabrication process plus additional logic to model behavior of the emulated processor. In a simulation mode, the microcontroller software testing tool simulates the target semiconductor circuit on a general purpose computing device, by interpreting the instructions in the software using an instruction set of the target semiconductor circuit, and otherwise behaving like the target semiconductor circuit; and executes and evaluates the software on the simulated semiconductor circuit. The microcontroller software testing tool monitors the estimated time to execute the software on the semiconductor circuit. In an emulation mode, the microcontroller software testing tool utilizes a low-cost field programmable gate array programmed with a hardware description language description of the target semiconductor circuit. The microcontroller software testing tool is accessible by means of a data exchange protocol provided by the operating system. The microcontroller software testing tool preferably provides a modular configuration. The microcontroller software testing tool monitors the percentage of the code that is executed during testing.