Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-RAN
Commits
686da85d
Commit
686da85d
authored
Mar 13, 2024
by
francescomani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
invalidPrintfArgType_sint
parent
1244c9a2
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
66 additions
and
46 deletions
+66
-46
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_bnProc/bnProcPc_gen_BG1_128.c
...oder/nrLDPC_tools/generator_bnProc/bnProcPc_gen_BG1_128.c
+9
-9
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_bnProc/bnProcPc_gen_BG2_128.c
...oder/nrLDPC_tools/generator_bnProc/bnProcPc_gen_BG2_128.c
+9
-9
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_bnProc_avx512/bnProcPc_gen_BG1_avx512.c
...C_tools/generator_bnProc_avx512/bnProcPc_gen_BG1_avx512.c
+6
-6
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_bnProc_avx512/bnProcPc_gen_BG2_avx512.c
...C_tools/generator_bnProc_avx512/bnProcPc_gen_BG2_avx512.c
+3
-3
openair1/PHY/MODULATION/nr_modulation.c
openair1/PHY/MODULATION/nr_modulation.c
+22
-2
openair1/PHY/NR_UE_ESTIMATION/nr_dl_channel_estimation.c
openair1/PHY/NR_UE_ESTIMATION/nr_dl_channel_estimation.c
+2
-2
openair2/F1AP/f1ap_cu_rrc_message_transfer.c
openair2/F1AP/f1ap_cu_rrc_message_transfer.c
+1
-1
openair2/LAYER2/NR_MAC_UE/config_ue_sl.c
openair2/LAYER2/NR_MAC_UE/config_ue_sl.c
+1
-1
openair2/RRC/NR/nr_rrc_config.c
openair2/RRC/NR/nr_rrc_config.c
+1
-1
openair2/RRC/NR/rrc_gNB.c
openair2/RRC/NR/rrc_gNB.c
+4
-4
radio/fhi_72/oran-config.c
radio/fhi_72/oran-config.c
+2
-2
radio/fhi_72/oran-init.c
radio/fhi_72/oran-init.c
+6
-6
No files found.
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_bnProc/bnProcPc_gen_BG1_128.c
View file @
686da85d
...
...
@@ -80,10 +80,10 @@ void nrLDPC_bnProcPc_BG1_generator_128(const char *dir, int R)
fprintf
(
fd
,
" // Process group with 1 CN
\n
"
);
fprintf
(
fd
,
" uint32_t M = (%d*Z + 15)>>4;
\n
"
,
lut_numBnInBnGroups
[
0
]);
fprintf
(
fd
,
" simde__m128i* p_bnProcBuf = (simde__m128i*) &bnProcBuf [%
d];
\n
"
,
lut_startAddrBnGroups
[
idxBnGroup
]);
fprintf
(
fd
,
" simde__m128i* p_bnProcBufRes = (simde__m128i*) &bnProcBufRes [%
d];
\n
"
,
lut_startAddrBnGroups
[
idxBnGroup
]);
fprintf
(
fd
,
" simde__m128i* p_llrProcBuf = (simde__m128i*) &llrProcBuf [%d];
\n
"
,
lut_startAddrBnGroupsLlr
[
idxBnGroup
]);
fprintf
(
fd
,
" simde__m128i* p_llrRes = (simde__m128i*) &llrRes [%d];
\n
"
,
lut_startAddrBnGroupsLlr
[
idxBnGroup
]);
fprintf
(
fd
,
" simde__m128i* p_bnProcBuf = (simde__m128i*) &bnProcBuf [%
u];
\n
"
,
lut_startAddrBnGroups
[
idxBnGroup
]);
fprintf
(
fd
,
" simde__m128i* p_bnProcBufRes = (simde__m128i*) &bnProcBufRes [%
u];
\n
"
,
lut_startAddrBnGroups
[
idxBnGroup
]);
fprintf
(
fd
,
" simde__m128i* p_llrProcBuf = (simde__m128i*) &llrProcBuf [%d];
\n
"
,
lut_startAddrBnGroupsLlr
[
idxBnGroup
]);
fprintf
(
fd
,
" simde__m128i* p_llrRes = (simde__m128i*) &llrRes [%d];
\n
"
,
lut_startAddrBnGroupsLlr
[
idxBnGroup
]);
fprintf
(
fd
,
" simde__m128i ymm0, ymm1, ymmRes0, ymmRes1;
\n
"
);
...
...
@@ -114,9 +114,9 @@ void nrLDPC_bnProcPc_BG1_generator_128(const char *dir, int R)
cnOffsetInGroup
=
(
lut_numBnInBnGroups
[
cnidx
]
*
NR_LDPC_ZMAX
)
>>
4
;
// Set pointers to start of group 2
fprintf
(
fd
,
" p_bnProcBuf = (simde__m128i*) &bnProcBuf [%
d];
\n
"
,
lut_startAddrBnGroups
[
idxBnGroup
]);
fprintf
(
fd
,
" p_llrProcBuf = (simde__m128i*) &llrProcBuf [%d];
\n
"
,
lut_startAddrBnGroupsLlr
[
idxBnGroup
]);
fprintf
(
fd
,
" p_llrRes = (simde__m128i*) &llrRes [%d];
\n
"
,
lut_startAddrBnGroupsLlr
[
idxBnGroup
]);
fprintf
(
fd
,
" p_bnProcBuf = (simde__m128i*) &bnProcBuf [%
u];
\n
"
,
lut_startAddrBnGroups
[
idxBnGroup
]);
fprintf
(
fd
,
" p_llrProcBuf = (simde__m128i*) &llrProcBuf [%d];
\n
"
,
lut_startAddrBnGroupsLlr
[
idxBnGroup
]);
fprintf
(
fd
,
" p_llrRes = (simde__m128i*) &llrRes [%d];
\n
"
,
lut_startAddrBnGroupsLlr
[
idxBnGroup
]);
// Loop over BNs
fprintf
(
fd
,
" for (int i=0;i<M;i++) {
\n
"
);
...
...
@@ -127,10 +127,10 @@ void nrLDPC_bnProcPc_BG1_generator_128(const char *dir, int R)
// Loop over CNs
for
(
k
=
1
;
k
<=
cnidx
;
k
++
)
{
fprintf
(
fd
,
" ymm0 = simde_mm_cvtepi8_epi16(p_bnProcBuf[%
d + i]);
\n
"
,
k
*
cnOffsetInGroup
);
fprintf
(
fd
,
" ymm0 = simde_mm_cvtepi8_epi16(p_bnProcBuf[%
u + i]);
\n
"
,
k
*
cnOffsetInGroup
);
fprintf
(
fd
,
" ymmRes0 = simde_mm_adds_epi16(ymmRes0, ymm0);
\n
"
);
fprintf
(
fd
,
" ymm1 = simde_mm_cvtepi8_epi16(simde_mm_srli_si128(p_bnProcBuf[%
d + i],8));
\n
"
,
k
*
cnOffsetInGroup
);
fprintf
(
fd
,
" ymm1 = simde_mm_cvtepi8_epi16(simde_mm_srli_si128(p_bnProcBuf[%
u + i],8));
\n
"
,
k
*
cnOffsetInGroup
);
fprintf
(
fd
,
" ymmRes1 = simde_mm_adds_epi16(ymmRes1, ymm1);
\n
"
);
}
...
...
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_bnProc/bnProcPc_gen_BG2_128.c
View file @
686da85d
...
...
@@ -81,10 +81,10 @@ void nrLDPC_bnProcPc_BG2_generator_128(const char *dir, int R)
fprintf
(
fd
,
" // Process group with 1 CN
\n
"
);
fprintf
(
fd
,
" uint32_t M = (%d*Z + 15)>>4;
\n
"
,
lut_numBnInBnGroups
[
0
]);
fprintf
(
fd
,
" simde__m128i* p_bnProcBuf = (simde__m128i*) &bnProcBuf [%
d];
\n
"
,
lut_startAddrBnGroups
[
idxBnGroup
]);
fprintf
(
fd
,
" simde__m128i* p_bnProcBufRes = (simde__m128i*) &bnProcBufRes [%
d];
\n
"
,
lut_startAddrBnGroups
[
idxBnGroup
]);
fprintf
(
fd
,
" simde__m128i* p_llrProcBuf = (simde__m128i*) &llrProcBuf [%d];
\n
"
,
lut_startAddrBnGroupsLlr
[
idxBnGroup
]);
fprintf
(
fd
,
" simde__m128i* p_llrRes = (simde__m128i*) &llrRes [%d];
\n
"
,
lut_startAddrBnGroupsLlr
[
idxBnGroup
]);
fprintf
(
fd
,
" simde__m128i* p_bnProcBuf = (simde__m128i*) &bnProcBuf [%
u];
\n
"
,
lut_startAddrBnGroups
[
idxBnGroup
]);
fprintf
(
fd
,
" simde__m128i* p_bnProcBufRes = (simde__m128i*) &bnProcBufRes [%
u];
\n
"
,
lut_startAddrBnGroups
[
idxBnGroup
]);
fprintf
(
fd
,
" simde__m128i* p_llrProcBuf = (simde__m128i*) &llrProcBuf [%d];
\n
"
,
lut_startAddrBnGroupsLlr
[
idxBnGroup
]);
fprintf
(
fd
,
" simde__m128i* p_llrRes = (simde__m128i*) &llrRes [%d];
\n
"
,
lut_startAddrBnGroupsLlr
[
idxBnGroup
]);
fprintf
(
fd
,
" simde__m128i ymm0, ymm1, ymmRes0, ymmRes1;
\n
"
);
...
...
@@ -115,9 +115,9 @@ void nrLDPC_bnProcPc_BG2_generator_128(const char *dir, int R)
cnOffsetInGroup
=
(
lut_numBnInBnGroups
[
cnidx
]
*
NR_LDPC_ZMAX
)
>>
4
;
// Set pointers to start of group 2
fprintf
(
fd
,
" p_bnProcBuf = (simde__m128i*) &bnProcBuf [%
d];
\n
"
,
lut_startAddrBnGroups
[
idxBnGroup
]);
fprintf
(
fd
,
" p_llrProcBuf = (simde__m128i*) &llrProcBuf [%d];
\n
"
,
lut_startAddrBnGroupsLlr
[
idxBnGroup
]);
fprintf
(
fd
,
" p_llrRes = (simde__m128i*) &llrRes [%d];
\n
"
,
lut_startAddrBnGroupsLlr
[
idxBnGroup
]);
fprintf
(
fd
,
" p_bnProcBuf = (simde__m128i*) &bnProcBuf [%
u];
\n
"
,
lut_startAddrBnGroups
[
idxBnGroup
]);
fprintf
(
fd
,
" p_llrProcBuf = (simde__m128i*) &llrProcBuf [%d];
\n
"
,
lut_startAddrBnGroupsLlr
[
idxBnGroup
]);
fprintf
(
fd
,
" p_llrRes = (simde__m128i*) &llrRes [%d];
\n
"
,
lut_startAddrBnGroupsLlr
[
idxBnGroup
]);
// Loop over BNs
fprintf
(
fd
,
" for (int i=0;i<M;i++) {
\n
"
);
...
...
@@ -128,10 +128,10 @@ void nrLDPC_bnProcPc_BG2_generator_128(const char *dir, int R)
// Loop over CNs
for
(
k
=
1
;
k
<=
cnidx
;
k
++
)
{
fprintf
(
fd
,
" ymm0 = simde_mm_cvtepi8_epi16(p_bnProcBuf[%
d + i]);
\n
"
,
k
*
cnOffsetInGroup
);
fprintf
(
fd
,
" ymm0 = simde_mm_cvtepi8_epi16(p_bnProcBuf[%
u + i]);
\n
"
,
k
*
cnOffsetInGroup
);
fprintf
(
fd
,
" ymmRes0 = simde_mm_adds_epi16(ymmRes0, ymm0);
\n
"
);
fprintf
(
fd
,
" ymm1 = simde_mm_cvtepi8_epi16(simde_mm_srli_si128(p_bnProcBuf[%
d + i],8));
\n
"
,
k
*
cnOffsetInGroup
);
fprintf
(
fd
,
" ymm1 = simde_mm_cvtepi8_epi16(simde_mm_srli_si128(p_bnProcBuf[%
u + i],8));
\n
"
,
k
*
cnOffsetInGroup
);
fprintf
(
fd
,
" ymmRes1 = simde_mm_adds_epi16(ymmRes1, ymm1);
\n
"
);
}
...
...
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_bnProc_avx512/bnProcPc_gen_BG1_avx512.c
View file @
686da85d
...
...
@@ -121,7 +121,7 @@ fprintf(fd, "// Process group with 1 CNs \n");
fprintf
(
fd
,
" zmm0 = simde_mm512_cvtepi8_epi16(p_bnProcBuf[%u + j]);
\n
"
,
k
*
cnOffsetInGroup
);
fprintf
(
fd
,
" zmmRes0 = simde_mm512_adds_epi16(zmmRes0, zmm0);
\n
"
);
fprintf
(
fd
,
" zmm1 = simde_mm512_cvtepi8_epi16(p_bnProcBuf[%
d
+ j +1]);
\n
"
,
k
*
cnOffsetInGroup
);
fprintf
(
fd
,
" zmm1 = simde_mm512_cvtepi8_epi16(p_bnProcBuf[%
u
+ j +1]);
\n
"
,
k
*
cnOffsetInGroup
);
fprintf
(
fd
,
" zmmRes1 = simde_mm512_adds_epi16(zmmRes1, zmm1);
\n
"
);
}
...
...
@@ -177,7 +177,7 @@ fprintf(fd, "// Process group with 2 CNs \n");
fprintf
(
fd
,
" zmm0 = simde_mm512_cvtepi8_epi16(p_bnProcBuf[%u + j]);
\n
"
,
k
*
cnOffsetInGroup
);
fprintf
(
fd
,
" zmmRes0 = simde_mm512_adds_epi16(zmmRes0, zmm0);
\n
"
);
fprintf
(
fd
,
" zmm1 = simde_mm512_cvtepi8_epi16(p_bnProcBuf[%
d
+ j +1]);
\n
"
,
k
*
cnOffsetInGroup
);
fprintf
(
fd
,
" zmm1 = simde_mm512_cvtepi8_epi16(p_bnProcBuf[%
u
+ j +1]);
\n
"
,
k
*
cnOffsetInGroup
);
fprintf
(
fd
,
" zmmRes1 = simde_mm512_adds_epi16(zmmRes1, zmm1);
\n
"
);
}
...
...
@@ -290,7 +290,7 @@ fprintf(fd, "// Process group with 4 CNs \n");
fprintf
(
fd
,
" zmm0 = simde_mm512_cvtepi8_epi16(p_bnProcBuf[%u + j]);
\n
"
,
k
*
cnOffsetInGroup
);
fprintf
(
fd
,
" zmmRes0 = simde_mm512_adds_epi16(zmmRes0, zmm0);
\n
"
);
fprintf
(
fd
,
" zmm1 = simde_mm512_cvtepi8_epi16(p_bnProcBuf[%
d
+ j +1]);
\n
"
,
k
*
cnOffsetInGroup
);
fprintf
(
fd
,
" zmm1 = simde_mm512_cvtepi8_epi16(p_bnProcBuf[%
u
+ j +1]);
\n
"
,
k
*
cnOffsetInGroup
);
fprintf
(
fd
,
" zmmRes1 = simde_mm512_adds_epi16(zmmRes1, zmm1);
\n
"
);
}
...
...
@@ -346,7 +346,7 @@ fprintf(fd, "// Process group with 5 CNs \n");
fprintf
(
fd
,
" zmm0 = simde_mm512_cvtepi8_epi16(p_bnProcBuf[%u + j]);
\n
"
,
k
*
cnOffsetInGroup
);
fprintf
(
fd
,
" zmmRes0 = simde_mm512_adds_epi16(zmmRes0, zmm0);
\n
"
);
fprintf
(
fd
,
" zmm1 = simde_mm512_cvtepi8_epi16(p_bnProcBuf[%
d
+ j +1]);
\n
"
,
k
*
cnOffsetInGroup
);
fprintf
(
fd
,
" zmm1 = simde_mm512_cvtepi8_epi16(p_bnProcBuf[%
u
+ j +1]);
\n
"
,
k
*
cnOffsetInGroup
);
fprintf
(
fd
,
" zmmRes1 = simde_mm512_adds_epi16(zmmRes1, zmm1);
\n
"
);
}
...
...
@@ -459,7 +459,7 @@ fprintf(fd, "// Process group with 7 CNs \n");
fprintf
(
fd
,
" zmm0 = simde_mm512_cvtepi8_epi16(p_bnProcBuf[%u + j]);
\n
"
,
k
*
cnOffsetInGroup
);
fprintf
(
fd
,
" zmmRes0 = simde_mm512_adds_epi16(zmmRes0, zmm0);
\n
"
);
fprintf
(
fd
,
" zmm1 = simde_mm512_cvtepi8_epi16(p_bnProcBuf[%
d
+ j +1]);
\n
"
,
k
*
cnOffsetInGroup
);
fprintf
(
fd
,
" zmm1 = simde_mm512_cvtepi8_epi16(p_bnProcBuf[%
u
+ j +1]);
\n
"
,
k
*
cnOffsetInGroup
);
fprintf
(
fd
,
" zmmRes1 = simde_mm512_adds_epi16(zmmRes1, zmm1);
\n
"
);
}
...
...
@@ -1479,7 +1479,7 @@ fprintf(fd, "// Process group with 25 CNs \n");
fprintf
(
fd
,
" zmm0 = simde_mm512_cvtepi8_epi16(p_bnProcBuf[%u + j]);
\n
"
,
k
*
cnOffsetInGroup
);
fprintf
(
fd
,
" zmmRes0 = simde_mm512_adds_epi16(zmmRes0, zmm0);
\n
"
);
fprintf
(
fd
,
" zmm1 = simde_mm512_cvtepi8_epi16(p_bnProcBuf[%
d
+ j +1]);
\n
"
,
k
*
cnOffsetInGroup
);
fprintf
(
fd
,
" zmm1 = simde_mm512_cvtepi8_epi16(p_bnProcBuf[%
u
+ j +1]);
\n
"
,
k
*
cnOffsetInGroup
);
fprintf
(
fd
,
" zmmRes1 = simde_mm512_adds_epi16(zmmRes1, zmm1);
\n
"
);
}
...
...
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_bnProc_avx512/bnProcPc_gen_BG2_avx512.c
View file @
686da85d
...
...
@@ -575,7 +575,7 @@ fprintf(fd, "// Process group with 9 CNs \n");
fprintf
(
fd
,
" zmm0 = simde_mm512_cvtepi8_epi16(p_bnProcBuf[%u + j]);
\n
"
,
k
*
cnOffsetInGroup
);
fprintf
(
fd
,
" zmmRes0 = simde_mm512_adds_epi16(zmmRes0,zmm0);
\n
"
);
fprintf
(
fd
,
" zmm1 = simde_mm512_cvtepi8_epi16(p_bnProcBuf[%
d
+ j +1]);
\n
"
,
k
*
cnOffsetInGroup
);
fprintf
(
fd
,
" zmm1 = simde_mm512_cvtepi8_epi16(p_bnProcBuf[%
u
+ j +1]);
\n
"
,
k
*
cnOffsetInGroup
);
fprintf
(
fd
,
" zmmRes1 = simde_mm512_adds_epi16(zmmRes1,zmm1);
\n
"
);
}
...
...
@@ -1195,7 +1195,7 @@ fprintf(fd, "// Process group with 20 CNs \n");
fprintf
(
fd
,
" zmm0 = simde_mm512_cvtepi8_epi16(p_bnProcBuf[%u + j]);
\n
"
,
k
*
cnOffsetInGroup
);
fprintf
(
fd
,
" zmmRes0 = simde_mm512_adds_epi16(zmmRes0,zmm0);
\n
"
);
fprintf
(
fd
,
" zmm1 = simde_mm512_cvtepi8_epi16(p_bnProcBuf[%
d
+ j +1]);
\n
"
,
k
*
cnOffsetInGroup
);
fprintf
(
fd
,
" zmm1 = simde_mm512_cvtepi8_epi16(p_bnProcBuf[%
u
+ j +1]);
\n
"
,
k
*
cnOffsetInGroup
);
fprintf
(
fd
,
" zmmRes1 = simde_mm512_adds_epi16(zmmRes1,zmm1);
\n
"
);
}
...
...
@@ -1759,7 +1759,7 @@ fprintf(fd, "// Process group with 30 CNs \n");
fprintf
(
fd
,
" zmm0 = simde_mm512_cvtepi8_epi16(p_bnProcBuf[%u + j]);
\n
"
,
k
*
cnOffsetInGroup
);
fprintf
(
fd
,
" zmmRes0 = simde_mm512_adds_epi16(zmmRes0,zmm0);
\n
"
);
fprintf
(
fd
,
" zmm1 = simde_mm512_cvtepi8_epi16(p_bnProcBuf[%
d
+ j +1]);
\n
"
,
k
*
cnOffsetInGroup
);
fprintf
(
fd
,
" zmm1 = simde_mm512_cvtepi8_epi16(p_bnProcBuf[%
u
+ j +1]);
\n
"
,
k
*
cnOffsetInGroup
);
fprintf
(
fd
,
" zmmRes1 = simde_mm512_adds_epi16(zmmRes1,zmm1);
\n
"
);
}
...
...
openair1/PHY/MODULATION/nr_modulation.c
View file @
686da85d
...
...
@@ -805,8 +805,28 @@ void nr_layer_precoder_simd(const int n_layers,
#ifdef DEBUG_DLSCH_PRECODING_PRINT_WITH_TRIVIAL // Print simd and trivial result, TODO: To be removed
c16_t
*
y_simd
=
(
c16_t
*
)
&
y
;
printf
(
"debug_to_be_removed re_cnt=%d, sc=%d, y_simd=(%+4d,%+4d), (%+4d,%+4d), (%+4d,%+4d), (%+4d,%+4d)
\n
"
,
re_cnt
,
sc
,
y_simd
[
0
].
r
,
y_simd
[
0
].
i
,
y_simd
[
1
].
r
,
y_simd
[
1
].
i
,
y_simd
[
2
].
r
,
y_simd
[
2
].
i
,
y_simd
[
3
].
r
,
y_simd
[
3
].
i
);
printf
(
"debug_to_be_removed re_cnt=%d, sc=%d, y_triv=(%+4d,%+4d), (%+4d,%+4d), (%+4d,%+4d), (%+4d,%+4d)
\n
"
,
re_cnt
,
sc
,
y_triv
[
0
].
r
,
y_triv
[
0
].
i
,
y_triv
[
1
].
r
,
y_triv
[
1
].
i
,
y_triv
[
2
].
r
,
y_triv
[
2
].
i
,
y_triv
[
3
].
r
,
y_triv
[
3
].
i
);
printf
(
"debug_to_be_removed re_cnt=%u, sc=%u, y_simd=(%+4d,%+4d), (%+4d,%+4d), (%+4d,%+4d), (%+4d,%+4d)
\n
"
,
re_cnt
,
sc
,
y_simd
[
0
].
r
,
y_simd
[
0
].
i
,
y_simd
[
1
].
r
,
y_simd
[
1
].
i
,
y_simd
[
2
].
r
,
y_simd
[
2
].
i
,
y_simd
[
3
].
r
,
y_simd
[
3
].
i
);
printf
(
"debug_to_be_removed re_cnt=%u, sc=%u, y_triv=(%+4d,%+4d), (%+4d,%+4d), (%+4d,%+4d), (%+4d,%+4d)
\n
"
,
re_cnt
,
sc
,
y_triv
[
0
].
r
,
y_triv
[
0
].
i
,
y_triv
[
1
].
r
,
y_triv
[
1
].
i
,
y_triv
[
2
].
r
,
y_triv
[
2
].
i
,
y_triv
[
3
].
r
,
y_triv
[
3
].
i
);
#endif
}
}
openair1/PHY/NR_UE_ESTIMATION/nr_dl_channel_estimation.c
View file @
686da85d
...
...
@@ -647,7 +647,7 @@ c32_t nr_pbch_dmrs_correlation(const PHY_VARS_NR_UE *ue,
unsigned
int
k
=
ue
->
frame_parms
.
Nid_cell
%
4
;
DEBUG_PBCH
(
"PBCH DMRS Correlation : gNB_id %d , OFDM size %d, Ncp=%d, k=%
d
symbol %d
\n
"
,
DEBUG_PBCH
(
"PBCH DMRS Correlation : gNB_id %d , OFDM size %d, Ncp=%d, k=%
u
symbol %d
\n
"
,
proc
->
gNB_id
,
ue
->
frame_parms
.
ofdm_symbol_size
,
ue
->
frame_parms
.
Ncp
,
...
...
@@ -666,7 +666,7 @@ c32_t nr_pbch_dmrs_correlation(const PHY_VARS_NR_UE *ue,
const
c16_t
*
rxF
=
&
rxdataF
[
aarx
][
symbol_offset
+
k
];
DEBUG_PBCH
(
"pbch ch est pilot RB_DL %d
\n
"
,
ue
->
frame_parms
.
N_RB_DL
);
DEBUG_PBCH
(
"k %
d
, first_carrier %d
\n
"
,
k
,
ue
->
frame_parms
.
first_carrier_offset
);
DEBUG_PBCH
(
"k %
u
, first_carrier %d
\n
"
,
k
,
ue
->
frame_parms
.
first_carrier_offset
);
// Treat first 2 pilots specially (left edge)
computed_val
=
c32x16maddShift
(
*
pil
,
rxF
[
re_offset
],
computed_val
,
15
);
...
...
openair2/F1AP/f1ap_cu_rrc_message_transfer.c
View file @
686da85d
...
...
@@ -250,7 +250,7 @@ int CU_handle_UL_RRC_MESSAGE_TRANSFER(instance_t instance, sctp_assoc_t assoc_id
* let's put an assert to check that it is the expected DU UE ID. */
f1_ue_data_t
ue_data
=
cu_get_f1_ue_data
(
cu_ue_f1ap_id
);
if
(
ue_data
.
secondary_ue
!=
du_ue_f1ap_id
)
{
LOG_E
(
F1AP
,
"unexpected DU UE ID %
d received, expected it to be %ld
\n
"
,
ue_data
.
secondary_ue
,
du_ue_f1ap_id
);
LOG_E
(
F1AP
,
"unexpected DU UE ID %
u received, expected it to be %lu
\n
"
,
ue_data
.
secondary_ue
,
du_ue_f1ap_id
);
return
1
;
}
...
...
openair2/LAYER2/NR_MAC_UE/config_ue_sl.c
View file @
686da85d
...
...
@@ -181,7 +181,7 @@ static void sl_prepare_phy_config(int module_id,
phycfg
->
sl_bwp_config
.
sl_ssb_offset_point_a
=
diff
/
scs_scaling
;
#ifdef SL_DEBUG
printf
(
"diff:%
d, scaling:%d, pointa:%d, ssb:%d
\n
"
,
diff
,
scs_scaling
,
pointA_ARFCN
,
SSB_ARFCN
);
printf
(
"diff:%
u, scaling:%d, pointa:%u, ssb:%u
\n
"
,
diff
,
scs_scaling
,
pointA_ARFCN
,
SSB_ARFCN
);
#endif
phycfg
->
sl_bwp_config
.
sl_dc_location
=
(
bwp_generic
->
sl_TxDirectCurrentLocation_r16
)
?
...
...
openair2/RRC/NR/nr_rrc_config.c
View file @
686da85d
...
...
@@ -1881,7 +1881,7 @@ int encode_MIB_NR(NR_BCCH_BCH_Message_t *mib, int frame, uint8_t *buf, int buf_s
NR_BCCH_DL_SCH_Message_t
*
get_SIB1_NR
(
const
NR_ServingCellConfigCommon_t
*
scc
,
const
f1ap_plmn_t
*
plmn
,
uint64_t
cellID
,
int
tac
)
{
AssertFatal
(
cellID
<
(
1l
<<
36
),
"cellID must fit within 36 bits, but is %l
d
\n
"
,
cellID
);
AssertFatal
(
cellID
<
(
1l
<<
36
),
"cellID must fit within 36 bits, but is %l
u
\n
"
,
cellID
);
NR_BCCH_DL_SCH_Message_t
*
sib1_message
=
CALLOC
(
1
,
sizeof
(
NR_BCCH_DL_SCH_Message_t
));
AssertFatal
(
sib1_message
!=
NULL
,
"out of memory
\n
"
);
...
...
openair2/RRC/NR/rrc_gNB.c
View file @
686da85d
...
...
@@ -225,7 +225,7 @@ static int get_ssb_arfcn(const f1ap_served_cell_info_t *cell_info, const NR_MIB_
else
if
(
dl_arfcn
>=
2016667
&&
dl_arfcn
<
2795832
)
freqssb
=
freqpointa
+
60000
*
offsetToPointA
*
12
+
(
1
<<
scs
)
*
15000
*
(
kssb
+
10ll
*
12
);
else
AssertFatal
(
false
,
"Invalid absoluteFrequencyPointA: %
d
\n
"
,
dl_arfcn
);
AssertFatal
(
false
,
"Invalid absoluteFrequencyPointA: %
u
\n
"
,
dl_arfcn
);
int
bw_index
=
get_supported_band_index
(
scs
,
band
>
256
?
FR2
:
FR1
,
get_dl_bw
(
cell_info
));
int
band_size_hz
=
get_supported_bw_mhz
(
band
>
256
?
FR2
:
FR1
,
bw_index
)
*
1000
*
1000
;
...
...
@@ -253,7 +253,7 @@ static int get_ssb_arfcn(const f1ap_served_cell_info_t *cell_info, const NR_MIB_
const
NR_ServingCellConfigCommon_t
*
scc
=
RC
.
nrmac
[
0
]
->
common_channels
[
0
].
ServingCellConfigCommon
;
uint32_t
scc_ssb_arfcn
=
*
scc
->
downlinkConfigCommon
->
frequencyInfoDL
->
absoluteFrequencySSB
;
AssertFatal
(
ssb_arfcn
==
scc_ssb_arfcn
,
"mismatch of SCC SSB ARFCN original %
d vs. computed %d
! Note: you can remove this Assert, the gNB might run but UE "
"mismatch of SCC SSB ARFCN original %
u vs. computed %u
! Note: you can remove this Assert, the gNB might run but UE "
"connection instable
\n
"
,
scc_ssb_arfcn
,
ssb_arfcn
);
...
...
@@ -954,7 +954,7 @@ static void cuup_notify_reestablishment(gNB_RRC_INST *rrc, gNB_RRC_UE_t *ue_p)
pdu_session_to_mod_t
*
pdu_e1
=
find_or_next_pdu_session
(
&
req
,
pdu
->
param
.
pdusession_id
);
AssertError
(
pdu
!=
NULL
,
continue
,
"UE %
d
: E1 Bearer Context Modification: PDU session %d to setup is null
\n
"
,
"UE %
u
: E1 Bearer Context Modification: PDU session %d to setup is null
\n
"
,
ue_p
->
rrc_ue_id
,
pdu
->
param
.
pdusession_id
);
/* Prepare PDU for E1 Bearear Context Modification Request */
...
...
@@ -2305,7 +2305,7 @@ static void write_rrc_stats(const gNB_RRC_INST *rrc)
f1_ue_data_t
ue_data
=
cu_get_f1_ue_data
(
ue_ctxt
->
rrc_ue_id
);
fprintf
(
f
,
"UE %d CU UE ID %
d
DU UE ID %d RNTI %04x random identity %016lx"
,
"UE %d CU UE ID %
u
DU UE ID %d RNTI %04x random identity %016lx"
,
i
,
ue_ctxt
->
rrc_ue_id
,
ue_data
.
secondary_ue
,
...
...
radio/fhi_72/oran-config.c
View file @
686da85d
...
...
@@ -34,7 +34,7 @@
static
void
print_fh_eowd_cmn
(
unsigned
index
,
const
struct
xran_ecpri_del_meas_cmn
*
eowd_cmn
)
{
printf
(
"\
eowd_cmn[%
d
]:
\n
\
eowd_cmn[%
u
]:
\n
\
initiator_en %d
\n
\
numberOfSamples %d
\n
\
filterType %d
\n
\
...
...
@@ -61,7 +61,7 @@ static void print_fh_eowd_cmn(unsigned index, const struct xran_ecpri_del_meas_c
static
void
print_fh_eowd_port
(
unsigned
index
,
unsigned
vf
,
const
struct
xran_ecpri_del_meas_port
*
eowd_port
)
{
printf
(
"\
eowd_port[%
d][%d
]:
\n
\
eowd_port[%
u][%u
]:
\n
\
t1 %ld
\n
\
t2 %ld
\n
\
tr %ld
\n
\
...
...
radio/fhi_72/oran-init.c
View file @
686da85d
...
...
@@ -135,7 +135,7 @@ static uint32_t oran_allocate_uplane_buffers(
uint32_t
numBufs
=
XRAN_N_FE_BUF_LEN
*
ant
*
XRAN_NUM_OF_SYMBOL_PER_SLOT
;
status
=
xran_bm_init
(
instHandle
,
&
pool
,
numBufs
,
bufSize
);
AssertFatal
(
XRAN_STATUS_SUCCESS
==
status
,
"Failed at xran_bm_init(), status %d
\n
"
,
status
);
printf
(
"xran_bm_init() hInstance %p poolIdx %
d elements %d size %d
\n
"
,
instHandle
,
pool
,
numBufs
,
bufSize
);
printf
(
"xran_bm_init() hInstance %p poolIdx %
u elements %u size %u
\n
"
,
instHandle
,
pool
,
numBufs
,
bufSize
);
int
count
=
0
;
for
(
uint32_t
a
=
0
;
a
<
ant
;
++
a
)
{
for
(
uint32_t
j
=
0
;
j
<
XRAN_N_FE_BUF_LEN
;
++
j
)
{
...
...
@@ -158,7 +158,7 @@ static uint32_t oran_allocate_uplane_buffers(
}
}
}
printf
(
"xran_bm_allocate_buffer() hInstance %p poolIdx %
d
count %d
\n
"
,
instHandle
,
pool
,
count
);
printf
(
"xran_bm_allocate_buffer() hInstance %p poolIdx %
u
count %d
\n
"
,
instHandle
,
pool
,
count
);
return
pool
;
}
...
...
@@ -215,14 +215,14 @@ static void oran_allocate_cplane_buffers(void *instHandle,
uint32_t
bufSizeSec
=
sizeof
(
struct
xran_section_desc
);
status
=
xran_bm_init
(
instHandle
,
&
poolSec
,
numBufsSec
,
bufSizeSec
);
AssertFatal
(
XRAN_STATUS_SUCCESS
==
status
,
"Failed at xran_bm_init(), status %d
\n
"
,
status
);
printf
(
"xran_bm_init() hInstance %p poolIdx %
d elements %d size %d
\n
"
,
instHandle
,
poolSec
,
numBufsSec
,
bufSizeSec
);
printf
(
"xran_bm_init() hInstance %p poolIdx %
u elements %u size %u
\n
"
,
instHandle
,
poolSec
,
numBufsSec
,
bufSizeSec
);
uint32_t
poolPrb
;
uint32_t
numBufsPrb
=
XRAN_N_FE_BUF_LEN
*
ant
*
XRAN_NUM_OF_SYMBOL_PER_SLOT
;
uint32_t
bufSizePrb
=
size_of_prb_map
;
status
=
xran_bm_init
(
instHandle
,
&
poolPrb
,
numBufsPrb
,
bufSizePrb
);
AssertFatal
(
XRAN_STATUS_SUCCESS
==
status
,
"Failed at xran_bm_init(), status %d
\n
"
,
status
);
printf
(
"xran_bm_init() hInstance %p poolIdx %
d elements %d size %d
\n
"
,
instHandle
,
poolPrb
,
numBufsPrb
,
bufSizePrb
);
printf
(
"xran_bm_init() hInstance %p poolIdx %
u elements %u size %u
\n
"
,
instHandle
,
poolPrb
,
numBufsPrb
,
bufSizePrb
);
uint32_t
count1
=
0
;
uint32_t
count2
=
0
;
...
...
@@ -273,8 +273,8 @@ static void oran_allocate_cplane_buffers(void *instHandle,
}
}
}
printf
(
"xran_bm_allocate_buffer() hInstance %p poolIdx %
d count %d
\n
"
,
instHandle
,
poolPrb
,
count1
);
printf
(
"xran_bm_allocate_buffer() hInstance %p poolIdx %
d count %d
\n
"
,
instHandle
,
poolSec
,
count2
);
printf
(
"xran_bm_allocate_buffer() hInstance %p poolIdx %
u count %u
\n
"
,
instHandle
,
poolPrb
,
count1
);
printf
(
"xran_bm_allocate_buffer() hInstance %p poolIdx %
u count %u
\n
"
,
instHandle
,
poolSec
,
count2
);
}
/* callback not actively used */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment