Stage 9: Background Noise

The background noise stage is the tenth stage of the radio transceiver pipeline, and is specified by the “bkgnoise model” attribute of the radio receiver. It is executed immediately after return of the received power stage, with no simulation time elapsing in between. The purpose of this stage is to represent the effect of all noise sources except for other concurrently arriving transmissions (because these are accounted for by the interference noise stage). The expected result is the sum of the power (in watts) of other noise sources, measured at the receiver’s location and in the receiver channel’s band. Typical background noise sources include thermal or galactic noise, emissions from neighboring electronics, and otherwise unmodeled radio transmissions (such as commercial radio, amateur radio, or television, depending on frequency).

The Simulation Kernel does not itself make use of the result of this stage, but it does reserve a TDA, represented by the symbolic constant OPC_TDA_RA_BKGNOISE, for the purpose of storing the result and communicating it to later pipeline stages. Normally, the background noise value is later added to other noise sources to compute a total noise level in the signal-to-noise ratio stage. The Kernel requires that the background noise stage procedure accept a packet address as its sole argument. Syntax requirements for this stage are specified in Figure 96.

Figure 96: Templates for Radio Transceiver Pipeline: Background Noise Stage

Not MT-safe (will execute sequentially in a parallel simulation):

void
bkg_noise_template (Packet* pk)
	{
	double result;

	FIN (bkg_noise_template (Packet* pk))

	/* extract required information from packet. */

	/* perform calculation of background noise power (in watts). */

	/* place result in TDA to make available to later stages. */
	op_td_set_dbl (pk, OPC_TDA_RA_BKGNOISE, result);

	FOUT
	}

MT-safe (can execute in parallel in a parallel simulation):

void
bkg_noise_template_mt (OP_SIM_CONTEXT_ARG_OPT_COMMA Packet* pk)
	{
	double result;

	FIN_MT (bkg_noise_template (Packet* pk))

	/* extract required information from packet. */

	/* perform calculation of background noise power (in watts). */

	/* place result in TDA to make available to later stages. */
	op_td_set_dbl (pk, OPC_TDA_RA_BKGNOISE, result);

	FOUT
	}