VIC™ - A compiler for Microchip’s PIC® Microcontrollers


Project sponsored by Selective Intellect Hosted on GitHub Pages — Theme by mattgraham

Table of Contents Prev  Next

Simulating VIC™ Code

As you have read in the syntax page on the Simulator block, VIC™ provides integration with a software simulator for Microchip's PIC® MCUs.

One such simulator is gpsim which we recommend you install on your operating system.

gpsim allows the user to write simple instructions to control the simulation and to create standard test fragments such as C-style asserts and debugger style break points, and to add peripherals like LEDs, 7-segment LEDs, switches, and ports like UART.

To abstract out these instructions and auto-generate gpsim specific code, VIC™ provides various in-built functions that will be described in this chapter. This will enable the user to write testing code in the same file where the Main block is present and keep the relevance of the testing visible.

For details on pragmas used by the simulator refer to the section on pragmas.

Simulator Control

Logging

Peripheral Attachments

Wave Simulations


Table of Contents Prev  Next

Vikas N Kumar (@vikasnkumar) is the author of VIC™. All copyrights belong to the author and Selective Intellect LLC.

VIC™ is licensed under the license terms of Perl.
The development of VIC™ is sponsored by Selective Intellect LLC.

This page was last updated on 2014-12-02 10:21:28 -0500.