Merge remote-tracking branch 'origin/NR_MAC_gNB_handle_DLSCH_with_DCI10_common_SS' into integration_2023_w31
This commit is contained in:
@@ -240,11 +240,16 @@ int NRRIV2PRBOFFSET(int locationAndBandwidth,int N_RB) {
|
||||
}
|
||||
|
||||
/* TS 38.214 ch. 6.1.2.2.2 - Resource allocation type 1 for DL and UL */
|
||||
int PRBalloc_to_locationandbandwidth0(int NPRB,int RBstart,int BWPsize) {
|
||||
AssertFatal(NPRB>0 && (NPRB + RBstart <= BWPsize),"Illegal NPRB/RBstart Configuration (%d,%d) for BWPsize %d\n",NPRB,RBstart,BWPsize);
|
||||
int PRBalloc_to_locationandbandwidth0(int NPRB, int RBstart, int BWPsize)
|
||||
{
|
||||
AssertFatal(NPRB>0 && (NPRB + RBstart <= BWPsize),
|
||||
"Illegal NPRB/RBstart Configuration (%d,%d) for BWPsize %d\n",
|
||||
NPRB, RBstart, BWPsize);
|
||||
|
||||
if (NPRB <= 1+(BWPsize>>1)) return(BWPsize*(NPRB-1)+RBstart);
|
||||
else return(BWPsize*(BWPsize+1-NPRB) + (BWPsize-1-RBstart));
|
||||
if (NPRB <= 1 + (BWPsize >> 1))
|
||||
return (BWPsize * (NPRB - 1) + RBstart);
|
||||
else
|
||||
return (BWPsize * (BWPsize + 1 - NPRB) + (BWPsize - 1 - RBstart));
|
||||
}
|
||||
|
||||
int PRBalloc_to_locationandbandwidth(int NPRB,int RBstart) {
|
||||
|
||||
Reference in New Issue
Block a user