source: branches/reconfiguration/softs/drivers/simhelper.h @ 940

Last change on this file since 940 was 850, checked in by cfuguet, 10 years ago

reconf: introducing a softs directory in the reconfiguration branch

  • This softs directory contains a minimalistic (giet-like) library of drivers and some utility functions.
  • Introducing a simple unit test in the vci_cc_vcache_wrapper component to test the newly introduced watchdog timer mechanism. This unit test uses the minimalistic library.
File size: 937 bytes
Line 
1/**
2 * \file   simhelper.h
3 * \date   26 August, 2014
4 * \author Cesar Fuguet <cesar.fuguet-tortolero@lip6.fr>
5 *
6 * \brief  simhelper driver
7 */
8#ifndef SIMHELPER_H
9#define SIMHELPER_H
10
11/**
12 * \note the size of each register depends on the VCI cell size implemented by
13 * the simhelper (i.e. when this component is connected to the external IO
14 * network, this parameter is 8 bytes = 2x32 bits words).
15 */
16enum SoclibSimhelperRegisters {
17    SIMH_STOP = 0,      /**< Write only */
18    SIMH_EXIT = 1,      /**< Write only */
19    SIMH_EXCEPTION = 2, /**< Write only */
20    SIMH_PAUSE = 3,     /**< Write only */
21    SIMH_CYCLES = 4,    /**< Read  only */
22    SIMH_SIGINT = 5,    /**< Write only */
23
24    SIMH_CELLSIZE = 2,  /**< Number of 32 bits words by register */
25};
26
27/**
28 * \brief stop simulation by throwing a RunTimeError
29 */
30void simh_stop_simulation();
31
32#endif
33
34/*
35 * vim: tabstop=4 : softtabstop=4 : shiftwidth=4 : expandtab
36 */
Note: See TracBrowser for help on using the repository browser.