5GNR Subframe¶
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 NRSubframe(numerology, num_resource_blocks=24)[source]¶
Bases:
NRSlotMock of a 5G NR subframe.
Note that only the rough frame structure is implemented, reference symbols and synchronization patterns are not placed according to the actual 5G NR standard. This is intended for testing and demonstration purposes only.
- Parameters:
numerology (
int) – The 5G NR numerology index (0 to 6) defining the subcarrier spacing and slot duration.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.
- 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.
- static num_subframe_slots(numerology)[source]¶
Calculate the number of slots in a 5G NR subframe for a given numerology.
- serialize(process)[source]¶
Serialize this object’s state.
Objects cannot be serialized directly, instead a
Factorymust be instructed to carry out the serialization process.- Parameters:
process (
SerializationProcess) – The current stage of the serialization process. This object is generated by theFactoryand provides an interface to serialization methods supporting multiple backends.- Return type: