5G New Radio¶
Warning
HermesPy’s implementation of the 5G New Radio (5GNR) standard is currently under active development. It is, by no means, a valid implementation of the standard.
- class NRSlotLink(num_resource_blocks=24, selected_transmit_ports=None, selected_receive_ports=None, carrier_frequency=None, bits_source=None, frame_generator=None, seed=None)[source]¶
Bases:
SimplexLinkA simplex link for 5G NR simulations considering only a single slot.
- Parameters:
num_resource_blocks (
int) – Number of resource blocks within a single slot. Must be at least 24 to meet the minimum slot bandwidth requirements of 5G NR. The maximum number depends on the overall bandwidth available for the given frequency range.selected_transmit_ports (
Sequence[int] |None) – The indices of the transmit ports to be used. IfNone, all available ports are used.selected_receive_ports (
Sequence[int] |None) – The indices of the receive ports to be used. IfNone, all available ports are used.carrier_frequency (
float|None) – The carrier frequency in Hz. IfNone, the default carrier frequency of the devices is used.bits_source (
BitsSource|None) – The bits source to be used for generating the transmitted bits. IfNone, a default random bits source is used.frame_generator (
FrameGenerator|None) – The frame generator to be used for generating the frames. IfNone, a default frame generator is used.seed (
int|None) – The seed for the random number generator. IfNone, a random seed is used.
- classmethod Deserialize(process)[source]¶
Deserialize an object’s state.
Objects cannot be deserialized directly, instead a
Factorymust be instructed to carry out the deserialization process.- Parameters:
process (
DeserializationProcess) – The current stage of the deserialization process. This object is generated by theFactoryand provides an interface to deserialization methods supporting multiple backends.- Return type:
- Returns:
The deserialized object.