NR_PHY: Optimize layer demapping for PDSCH/PUSCH receiver performance#286
Open
rupanjali-ux wants to merge 2 commits into
Open
NR_PHY: Optimize layer demapping for PDSCH/PUSCH receiver performance#286rupanjali-ux wants to merge 2 commits into
rupanjali-ux wants to merge 2 commits into
Conversation
- Use switch on mod_order to make memcpy size a compile-time constant, allowing the compiler to inline it as fixed-size vector stores Signed-off-by: Rupanjali <rupanjali.srivastava@openairinterface.org>
Move layer de-mapping logic into a shared nr_layer_demapping() in nr_phy_common, callable by both UE PDSCH and gNB PUSCH receivers. Signed-off-by: Rupanjali <rupanjali.srivastava@openairinterface.org>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Optimizes layer de-mapping in the NR receiver path and refactors the implementation into a common function shared by both the UE (PDSCH) and gNB (PUSCH) receive paths.
Commit 1: [NR_UE_PDSCH] Optimize PDSCH layer de-mapping
Uses a switch with a LAYER_DEMAPPING(MO) macro for modulation orders 2, 4, 6, and 8. Since the copy size is now known at compile time, the compiler can replace memcpy calls with inline fixed-size vector stores.
Commit 2: [NR_PHY] Common layer de-mapping implementation
Extract a common nr_layer_demapping() function for both UE and gNB. Update the UE and gNB receive paths to use the shared implementation, reducing code duplication while bringing the same optimization to the gNB PUSCH path.
With ./nr_dlsim -s30 -b106 -R106 -n100 -e25 -x2 -y2 -z2 -P, the layer demapping compute time reduces by ~30x.

Develop:
Post-optimization:
