Changeset 437 for soft/giet_vm/giet_drivers/sim_driver.h
- Timestamp:
- Nov 3, 2014, 10:53:00 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_drivers/sim_driver.h
r258 r437 5 5 // Copyright (c) UPMC-LIP6 6 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 //////////////////////////////////////////////////////////////////////////////// 7 17 8 18 #ifndef _GIET_SIM_DRIVERS_H_ … … 15 25 enum SoclibSimhelperRegisters 16 26 { 17 SIMHELPER_SC_STOP, 18 SIMHELPER_END_WITH_RETVAL, 19 SIMHELPER_EXCEPT_WITH_VAL, 20 SIMHELPER_PAUSE_SIM, 21 SIMHELPER_CYCLES, 22 SIMHELPER_SIGINT, 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 23 33 }; 24 34 25 /////////////////////////////////////////////////////////////////////////////////// 26 // SIM_HELPER access functions 27 /////////////////////////////////////////////////////////////////////////////////// 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 //////////////////////////////////////////////////////////////////////////////// 40 extern void _sim_helper_access( unsigned int register_index, 41 unsigned int value, 42 unsigned int* retval ); 28 43 29 extern unsigned int _sim_helper_access( unsigned int register_index,30 unsigned int value,31 unsigned int* retval );32 33 ///////////////////////////////////////////////////////////////////////////////////34 44 35 45 #endif
Note: See TracChangeset
for help on using the changeset viewer.