Skip to content

fix(nrPDSCHDMRS): gate 8/9-symbol additional DMRS on DMRSAdditionalPo… - #84

Open
ThereWasAYang wants to merge 2 commits into
catkira:masterfrom
ThereWasAYang:260603
Open

fix(nrPDSCHDMRS): gate 8/9-symbol additional DMRS on DMRSAdditionalPo…#84
ThereWasAYang wants to merge 2 commits into
catkira:masterfrom
ThereWasAYang:260603

Conversation

@ThereWasAYang

Copy link
Copy Markdown

Fixes #83

PDSCHDMRSSyms() appended an extra DMRS at symbol 7 for any 8- or 9-symbol PDSCH allocation, regardless of DMRSAdditionalPosition. When DMRSAdditionalPosition == 0 the type A single-symbol DMRS must contain only the front-loaded symbol l0, but the function returned two symbols.

All other duration branches (10/11, 12, 13/14) already gate the additional DMRS on add_pos; the [8, 9] branch was missing that check. Add the if add_pos >= 1 guard so the result matches 3GPP TS 38.211 Table 7.4.1.1.2-3.

This also corrects the downstream APIs that rely on PDSCHDMRSSyms: nrPDSCHDMRSIndices, nrPDSCHDMRS, nrPDSCHIndices and nrPDSCHPTRS.

ThereWasAYang and others added 2 commits June 3, 2026 23:40
…sition

PDSCHDMRSSyms() appended an extra DMRS at symbol 7 for any 8- or 9-symbol
PDSCH allocation, regardless of DMRSAdditionalPosition. When
DMRSAdditionalPosition == 0 the type A single-symbol DMRS must contain only
the front-loaded symbol l0, but the function returned two symbols.

All other duration branches (10/11, 12, 13/14) already gate the additional
DMRS on add_pos; the [8, 9] branch was missing that check. Add the
`if add_pos >= 1` guard so the result matches 3GPP TS 38.211
Table 7.4.1.1.2-3.

This also corrects the downstream APIs that rely on PDSCHDMRSSyms:
nrPDSCHDMRSIndices, nrPDSCHDMRS, nrPDSCHIndices and nrPDSCHPTRS.
@fredsonnenwald fredsonnenwald mentioned this pull request Jul 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

nrPDSCHDMRS inserts an extra DMRS symbol for 8/9-symbol PDSCH when DMRSAdditionalPosition=0

1 participant