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
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
zzha zzha
OpenXG-RAN
Commits
4e50e36e
Commit
4e50e36e
authored
May 17, 2020
by
Raymond Knopp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
intermediate commit, pucch2 RX with polar still not complete
parent
f043c63a
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
252 additions
and
169 deletions
+252
-169
openair1/PHY/CODING/TESTBENCH/polartest.c
openair1/PHY/CODING/TESTBENCH/polartest.c
+2
-2
openair1/PHY/NR_TRANSPORT/pucch_rx.c
openair1/PHY/NR_TRANSPORT/pucch_rx.c
+242
-148
openair1/PHY/NR_UE_TRANSPORT/pucch_nr.c
openair1/PHY/NR_UE_TRANSPORT/pucch_nr.c
+7
-18
openair1/SIMULATION/NR_PHY/pucchsim.c
openair1/SIMULATION/NR_PHY/pucchsim.c
+1
-1
No files found.
openair1/PHY/CODING/TESTBENCH/polartest.c
View file @
4e50e36e
...
@@ -121,9 +121,9 @@ int main(int argc, char *argv[])
...
@@ -121,9 +121,9 @@ int main(int argc, char *argv[])
crcTableInit
();
crcTableInit
();
if
(
polarMessageType
==
0
)
{
//PBCH
if
(
polarMessageType
==
0
)
{
//PBCH
aggregation_level
=
NR_POLAR_PBCH_AGGREGATION_LEVEL
;
aggregation_level
=
NR_POLAR_PBCH_AGGREGATION_LEVEL
;
}
else
if
(
polarMessageType
==
1
)
{
//DCI
}
else
if
(
polarMessageType
==
1
)
{
//DCI
coderLength
=
108
*
aggregation_level
;
coderLength
=
108
*
aggregation_level
;
}
else
if
(
polarMessageType
==
2
)
{
//UCI
}
else
if
(
polarMessageType
==
2
)
{
//UCI
//pucch2 parameters, 1 symbol, aggregation_level = NPRB
//pucch2 parameters, 1 symbol, aggregation_level = NPRB
AssertFatal
(
aggregation_level
>
2
,
"For UCI formats, aggregation (N_RB) should be > 2
\n
"
);
AssertFatal
(
aggregation_level
>
2
,
"For UCI formats, aggregation (N_RB) should be > 2
\n
"
);
...
...
openair1/PHY/NR_TRANSPORT/pucch_rx.c
View file @
4e50e36e
This diff is collapsed.
Click to expand it.
openair1/PHY/NR_UE_TRANSPORT/pucch_nr.c
View file @
4e50e36e
...
@@ -908,24 +908,13 @@ void nr_uci_encoding(uint64_t payload,
...
@@ -908,24 +908,13 @@ void nr_uci_encoding(uint64_t payload,
// CRC bits are not attached, and coding small block lengths (subclause 5.3.3)
// CRC bits are not attached, and coding small block lengths (subclause 5.3.3)
b
[
0
]
=
encodeSmallBlock
((
uint16_t
*
)
&
payload
,
A
);
b
[
0
]
=
encodeSmallBlock
((
uint16_t
*
)
&
payload
,
A
);
}
else
if
(
A
>=
12
)
{
}
else
if
(
A
>=
12
)
{
AssertFatal
(
1
==
0
,
"Polar encoding not supported yet for UCI
\n
"
);
AssertFatal
(
A
<
65
,
"Polar encoding not supported yet for UCI with more than 64 bits
\n
"
);
// procedure in subclause 6.3.1.2.1 (UCI encoded by Polar code -> subclause 6.3.1.3.1)
t_nrPolar_params
*
currentPtr
=
nr_polar_params
(
NR_POLAR_UCI_PUCCH_MESSAGE_TYPE
,
/*if ((A>=360 && E>=1088)||(A>=1013)) {
A
,
I_seg = 1;
nrofPRB
,
} else {
1
,
I_seg = 0;
NULL
);
}*/
polar_encoder_fast
(
&
payload
,
b
,
0
,
0
,
currentPtr
);
/*if (A>=20) {
// parity bits (subclause 5.2.1) computed by setting L=11 and using generator polynomial gCRC11(D) (subclause 5.1)
L=11;
} else if (A<=19) {
// parity bits (subclause 5.2.1) computed by setting L=6 and using generator polynomial gCRC6(D) (subclause 5.1)
L=6;
}*/
// code block segmentation and CRC attachment is performed according to subclause 5.2.1
// polar coding subclause 5.3.1
}
}
}
}
...
...
openair1/SIMULATION/NR_PHY/pucchsim.c
View file @
4e50e36e
...
@@ -336,7 +336,7 @@ int main(int argc, char **argv)
...
@@ -336,7 +336,7 @@ int main(int argc, char **argv)
}
}
AssertFatal
(((
format
<
2
)
&&
(
nr_bit
<
3
)
&&
(
actual_payload
<
4
))
||
AssertFatal
(((
format
<
2
)
&&
(
nr_bit
<
3
)
&&
(
actual_payload
<
4
))
||
((
format
==
2
)
&&
(
nr_bit
>
2
)
&&
(
nr_bit
<
12
)),
"illegal combination format %d, nr_bit %d
\n
"
,
((
format
==
2
)
&&
(
nr_bit
>
2
)
&&
(
nr_bit
<
65
)),
"illegal combination format %d, nr_bit %d
\n
"
,
format
,
nr_bit
);
format
,
nr_bit
);
actual_payload
&=
((
1
<<
nr_bit
)
-
1
);
actual_payload
&=
((
1
<<
nr_bit
)
-
1
);
...
...
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