Examples

Hello World

This example shows how to use Verisocks with a minimalistic test case. The test does nothing except executing the $verisocks_init() system task and requesting from Verisocks the simulator name and version and then send an Hello World! string to the simulator using the info command of the TCP protocol.

The Python helper function setup_sim() is used in order to easily set up the simulation with the Icarus simulator in the Python test function.

All the sources and corresponding README file can be found in the example repository folder.

SPI master

This example shows how to use Verisocks with a simple SPI master model in order to drive a full-duplex SPI bus with arbitrary content as well as read the results sent by an SPI slave on the same bus. For the purpose of the example, a simplistic SPI slave sends back the same content that was sent by the master in the previous transaction.

All the sources and corresponding README file can be found in the spi master example repository folder.