Changes between Version 15 and Version 16 of Writing Rules/Tlmt
- Timestamp:
- Dec 27, 2007, 10:43:53 AM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Writing Rules/Tlmt
v15 v16 18 18 = B) Single VCI initiator and single VCI target = 19 19 20 Figure 1 presents a minimal system containing one single initiator, and one single target. In the proposed example, the initiator module doesn't contains any parallelism, and can be modeled by a single SC_THREAD, describing a single PDES process. The activity of the '''my_initiator ''' module is described by the SC_THREAD '''execLoop()''', that contain an infinite loop. The variable '''m_time''' represents the PDES process local time.20 Figure 1 presents a minimal system containing one single initiator, and one single target. In the proposed example, the '''my_initiator''' module behavior is modeled by the SC_THREAD '''execLoop()''', that contains an infinite loop. The member variable '''m_time''' ('''H''' on the figure) represents the PDES process local time. The call-back function '''rspReceived()''' is executed when a VCI response packet is received by the initiator module. 21 21 22 22 [[Image(tlmt_figure_1.png, nolink)]] 23 23 24 Contrary to the initiator, the target module has a purely reactive behaviour. There is no need to use a SC_THREAD to describe the target behaviour : A simple method is enough. 24 Contrary to the initiator, the target module has a purely reactive behaviour. There is no need to use a SC_THREAD : The target behaviour is entirely described by the call-back function '''cmdReceived()''', that is executed when a VCI command 25 packet is received by the target module. 25 26 26 27 The VCI communication channel is a point-to-point bi-directionnal channel, encapsulating two separated uni-directionnal channels : one to transmit the VCI command packet, one to transmit the VCI response packet. … … 274 275 275 276 Interrupts are asynchronous events that are not transported by the VCI network. 276 As illustrated in Figure 5, each interrupt line is modeled by a specific point to point, uni-directional channel. It use two ports of type '' !'IrqOutPort''' and '''!IrqinPort''' that must be declared as member variables of the source and destination modules respectively.277 As illustrated in Figure 5, each interrupt line is modeled by a specific point to point, uni-directional channel. It use two ports of type '''!IrqOutPort''' and '''!IrqinPort''' that must be declared as member variables of the source and destination modules respectively. 277 278 278 279 [[Image(tlmt_figure_5.png, nolink)]]