Changes between Version 68 and Version 69 of Writing Rules/Tlmt
- Timestamp:
- Nov 15, 2008, 6:17:44 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Writing Rules/Tlmt
v68 v69 19 19 messages piggybacked with time information. 20 20 Models complying to these rules can be used with the "standard" OSCI simulation engine (SystemC 2.x) and 21 the TLM2.0 protocol, but can also be used also with others simulation engines, especially distributed, parallelized simulation engines.21 the TLM2.0 library, but can also be used also with others simulation engines, especially distributed, parallelized simulation engines. 22 22 23 23 The examples presented below use the VCI/OCP communication protocol selected by the SoCLib project, … … 29 29 30 30 Figure 1 presents a minimal system containing one single VCI initiator, '''my_initiator''' , and one single 31 VCI target, '''my_target''' . The '''my_initiator''' module behavior is modeled by 32 the SC_THREAD '''execLoop()''', that contains an infinite loop. 31 VCI target, '''my_target''' . The initiator behavior is modeled by the SC_THREAD '''execLoop()''', that contains an infinite loop. 33 32 The call-back function '''vci_rsp_received()''' is executed when a VCI response packet is received by the initiator module. 34 33 … … 39 38 function '''vci_cmd_received()''', that is executed when a VCI command packet is received by the target module. 40 39 41 The VCI communication channel is a point-to-point bi-direction nal channel, encapsulating two separated uni-directionnal40 The VCI communication channel is a point-to-point bi-directional channel, encapsulating two separated uni-directional 42 41 channels: one to transmit the VCI command packet, one to transmit the VCI response packet. 43 42 44 = C) TLM-T VCI Transaction=45 46 The TLM2.0 standard allows the user to redefine both the payload and the phases of the transaction .43 = C) VCI Transaction in TLM-T = 44 45 The TLM2.0 standard allows the user to redefine both the payload and the phases of the transactions. 47 46 Two classes have been defined in '''soclib_vci_types''' : a '''tlmt_vci_transaction''' and a '''tlmt_phase". 48 47