Changes between Version 2 and Version 3 of Component/Vci Sim Helper
- Timestamp:
- Oct 4, 2013, 5:37:04 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Component/Vci Sim Helper
v2 v3 8 8 the simulation process. It can make the simulation stop, exit or crash different ways. 9 9 10 It has four mapped register accepting only writes.10 It has six mapped register: 5 accepting only writes, and one accepting only reads. 11 11 12 12 Possible actions are: 13 13 * Make the simulator call `sc_stop()` 14 * Make the simulator call `exit( val)`, with a given `val`14 * Make the simulator call `exit(val)`, with a given `val` 15 15 * Make the simulator throw an exception with a given value in message 16 * Make the simulator raise the interrupt signal SIGINT 16 17 * Make the simulator pause (i.e. wait for a keyboard event) 18 * Make the simulator return the number of cycles of simulation 17 19 18 Registers a re:20 Registers accepting writes are: 19 21 * `SIMHELPER_SC_STOP` (at offset 0x0): Call `sc_stop()` 20 22 * `SIMHELPER_END_WITH_RETVAL` (at offset 0x4): Call `exit(val)` 21 * `SIMHELPER_EXCEPT_WITH_VAL` (at offset 0x8): Create a `soclib::exception::RunTimeError("Simulation yielded error level " +val)`23 * `SIMHELPER_EXCEPT_WITH_VAL` (at offset 0x8): Create a `soclib::exception::RunTimeError("Simulation yielded error level " + val)` 22 24 * `SIMHELPER_PAUSE_SIM` (at offset 0xc): Pause simulation 25 * `SIMHELPER_SIGINT` (at offset 0x14): Raise interrupt signal (SIGINT) 26 27 Register accepting reads is: 28 * `SIMHELPER_CYCLES` (at offset 0x10): Returns the number of cycles 29 23 30 24 31 == 2) Component definition & usage == … … 52 59 VciSimhelper simhelper("simhelper", 53 60 IntTab(2,3), 54 mapping_table 61 mapping_table); 55 62 }}} 56 63