source: soft/giet_vm/giet_drivers/sim_driver.h @ 457

Last change on this file since 457 was 437, checked in by alain, 10 years ago

Introducing dynamic allocation of peripheral channel(TTY, NIC, TIM, CMA)
Removint the ICU driver : ICU component not supported anymore.
Removing the FBF driver.

File size: 2.1 KB
Line 
1///////////////////////////////////////////////////////////////////////////////////
2// File     : sim_driver.h
3// Date     : 23/11/2013
4// Author   : alain greiner / cesar fuguet
5// Copyright (c) UPMC-LIP6
6///////////////////////////////////////////////////////////////////////////////////
7// The sim_driver.c and sim_driver.h files are part ot the GIET-VM nano-kernel.
8//
9// This driver supports the vci_sim_helper component, that is a pseudo hardware
10// component available in the SoCLib library, and providing a monitoring service
11// in a virtual prototyping environment.
12//
13// There is at most one such component in the architecture.
14//
15// The SEG_SIM_BASE address must be defined in the hard_config.h file.
16////////////////////////////////////////////////////////////////////////////////
17
18#ifndef _GIET_SIM_DRIVERS_H_
19#define _GIET_SIM_DRIVERS_H_
20
21///////////////////////////////////////////////////////////////////////////////////
22// SIM_HELPER registers offsets
23///////////////////////////////////////////////////////////////////////////////////
24
25enum SoclibSimhelperRegisters
26{
27    SIMHELPER_SC_STOP,                 // stop simulation
28    SIMHELPER_END_WITH_RETVAL,         // Not supported
29    SIMHELPER_EXCEPT_WITH_VAL,         // Not supported
30    SIMHELPER_PAUSE_SIM,               // Not supported
31    SIMHELPER_CYCLES,                  // Return number of cycles
32    SIMHELPER_SIGINT,                  // Not supported
33};
34
35////////////////////////////////////////////////////////////////////////////////
36// Accesses the Simulation Helper Component.
37// - If the access is on a write register, the simulation will stop.
38// - If the access is on a read register, value is written in retval buffer.
39////////////////////////////////////////////////////////////////////////////////
40extern void _sim_helper_access( unsigned int  register_index,
41                                unsigned int  value,
42                                unsigned int* retval ); 
43
44
45#endif
46
47// Local Variables:
48// tab-width: 4
49// c-basic-offset: 4
50// c-file-offsets:((innamespace . 0)(inline-open . 0))
51// indent-tabs-mode: nil
52// End:
53// vim: filetype=c:expandtab:shiftwidth=4:tabstop=4:softtabstop=4
54
Note: See TracBrowser for help on using the repository browser.