FT¶
-
class
NetworkSim.simulation.process.transmitter.
FT
(env, ram, transmitter_id, simulator, until, model=None)[source]¶ Fixed transmitter simulator.
- Parameters
env (simpy Environment) – The simulation environment.
ram (RAM) – The RAM at which the transmitter access its information.
transmitter_id (int) – The transmitter ID.
simulator (BaseSimulator) – The simulator used.
model (Model, optional) – The network model used for the simulation. Default is
Model()
.
- Variables
transmitted_data_packet (list) –
A list keeping the information of the transmitted data packets, containing the columns:
Timestamp
Raw Packet
Destination ID
transmitted_control_packet (list) –
A list keeping the information of the transmitted control packets, containing the columns:
Timestamp
Raw Packet
Destination ID
-
transmit_on_control_ring
()[source]¶ Fixed Transmitter process to add a new control packet onto the ring.
This process operates at the transmission data clock frequency. Ring slot check is performed on both the control and the data ring.
In this process:
The first data packet in the RAM queue is peeked;
A new control packet is generated based on the data packet information;
The control packet is added to the control ring when a slot is available;
The subsystem informs the data transmitter to start transmission.