Physical Sidelink Control Channel (PSCCH)
This module maps the Physical Control Channel (PSCCH) payload onto the resource grid as per control resource set configurations. The demodulation reference signal (DMRS) for PDCCH is filled in resource grid to equalizing information at the receiver.[3GPPTS38211PSCCHRM]_
An example of how to initialize and call the PSCCH resource mapping object
Nrb = 10
pscchPayload = np.random.choice([-np.sqrt(0.5)-1j*np.sqrt(0.5),-np.sqrt(0.5)+1j*np.sqrt(0.5),+np.sqrt(0.5)-1j*np.sqrt(0.5),+np.sqrt(0.5)+1j*np.sqrt(0.5)],size = (2,270))
numSymbols = 3
symbNumber = np.sort(np.random.choice(np.arange(2,14), size = numSymbols, replace = False))
slotNumber = int(np.random.randint(14))
scramblingID = int(np.random.randint(2**16))
PSCCHResMapObj = ResourceMappingPSCCH(Nrb)
resourceGrid = PSCCHResMapObj(pscchPayload,symbNumber,slotNumber,scramblingID)
#to display the Grid
PSCCHResMapObj.displayResourceGrid()
- class toolkit5G.ResourceMapping.ResourceMappingPSCCH(Nrb)[source]
- Parameters:
Nrb (int) – Number of Physical Resource Blocks allocated for Physical Sidelink Control Channel
- Input:
symbNumber (int) – \(\in \{2,3, \dots ,14\}\).
scramblingID (int) – Defines the scramblingID \(\in \{0,1, \dots ,65535\}\).
slotNumber (int) – Defines the number of slot, used for DMRS generation \(\in \{0,1, \dots ,65535\}\).
- Output:
[
numPorts
, 14,numResourceBlocks*12
], np.complex32 – PSCCH and PSCCH-DMRS loaded Grid.- Raises:
ValueError – [Error in resourceMappingPSCCH]: ‘Nrb’ must be an interger!
ValueError – [Error in resourceMappingPSCCH]: ‘numSymbols’ must be an interger!
ValueError – [Error in resourceMappingPSCCH]: ‘NsymbPerSlots’ must be an integer!
ValueError – [Error in resourceMappingPSCCH]: ‘numBatches’ must be interger!
- ResourceMappingPSCCH.ReturnPayloadIndices()[source]
- ResourceMappingPSCCH.displayResourceGrid(displayGrid=True)[source]
- References:
- [3GPPTS38211PSCCHRM]
(3GPP TS 38.211 version 17.1.0 Release 17) 5G;NR;Physical channels and modulation ‘5.2.2 Low-PAPR sequence generation type 1’