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
wangjie
OpenXG-RAN
Commits
54c96644
Commit
54c96644
authored
Mar 11, 2019
by
Ahmed Hussein
Committed by
Thomas Schlichter
Jun 04, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fixes in "ulschsim.c" and "nr_ulsch_coding.c" + minor cleanups
parent
73db1628
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
14 deletions
+9
-14
openair1/PHY/NR_TRANSPORT/nr_ulsch_decoding.c
openair1/PHY/NR_TRANSPORT/nr_ulsch_decoding.c
+6
-7
openair1/PHY/NR_UE_TRANSPORT/nr_transport_ue.h
openair1/PHY/NR_UE_TRANSPORT/nr_transport_ue.h
+1
-1
openair1/PHY/NR_UE_TRANSPORT/nr_ulsch_coding.c
openair1/PHY/NR_UE_TRANSPORT/nr_ulsch_coding.c
+1
-1
openair1/SIMULATION/NR_PHY/ulschsim.c
openair1/SIMULATION/NR_PHY/ulschsim.c
+1
-5
No files found.
openair1/PHY/NR_TRANSPORT/nr_ulsch_decoding.c
View file @
54c96644
...
@@ -301,16 +301,15 @@ uint32_t nr_ulsch_decoding(PHY_VARS_gNB *phy_vars_gNB,
...
@@ -301,16 +301,15 @@ uint32_t nr_ulsch_decoding(PHY_VARS_gNB *phy_vars_gNB,
t_nrLDPC_time_stats
*
p_procTime
=
&
procTime
;
t_nrLDPC_time_stats
*
p_procTime
=
&
procTime
;
t_nrLDPC_procBuf
**
p_nrLDPC_procBuf
=
harq_process
->
p_nrLDPC_procBuf
;
t_nrLDPC_procBuf
**
p_nrLDPC_procBuf
=
harq_process
->
p_nrLDPC_procBuf
;
int16_t
z
[
68
*
384
];
int16_t
z
[
68
*
384
];
int8_t
l
[
68
*
384
];
int8_t
l
[
68
*
384
];
//int16_t inv_d [68*384];
uint8_t
kc
;
uint8_t
kc
;
uint8_t
Ilbrm
=
0
;
uint8_t
Ilbrm
=
0
;
uint32_t
Tbslbrm
=
950984
;
uint32_t
Tbslbrm
=
950984
;
uint16_t
nb_rb
=
30
;
//to update
uint16_t
nb_rb
=
30
;
//to update
uint8_t
nb_re_dmrs
=
6
;
uint8_t
nb_re_dmrs
=
6
;
uint16_t
length_dmrs
=
1
;
uint16_t
length_dmrs
=
1
;
double
Coderate
=
0
.
0
;
double
Coderate
=
0
.
0
;
uint32_t
i
,
j
;
uint32_t
i
,
j
;
...
...
openair1/PHY/NR_UE_TRANSPORT/nr_transport_ue.h
View file @
54c96644
...
@@ -153,7 +153,7 @@ typedef struct {
...
@@ -153,7 +153,7 @@ typedef struct {
/// Number of soft channel bits
/// Number of soft channel bits
uint32_t
G
;
uint32_t
G
;
// Number of modulated symbols carrying data
// Number of modulated symbols carrying data
uint
8
_t
num_of_mod_symbols
;
uint
32
_t
num_of_mod_symbols
;
// This is "L" in TS 38.214 V15.4.0 subclause 6.1.2.1
// This is "L" in TS 38.214 V15.4.0 subclause 6.1.2.1
uint8_t
number_of_symbols
;
uint8_t
number_of_symbols
;
// This is "S" in TS 38.214 V15.4.0 subclause 6.1.2.1
// This is "S" in TS 38.214 V15.4.0 subclause 6.1.2.1
...
...
openair1/PHY/NR_UE_TRANSPORT/nr_ulsch_coding.c
View file @
54c96644
...
@@ -446,7 +446,7 @@ int nr_ulsch_encoding(NR_UE_ULSCH_t *ulsch,
...
@@ -446,7 +446,7 @@ int nr_ulsch_encoding(NR_UE_ULSCH_t *ulsch,
}
}
memcpy
(
ulsch
->
g
,
harq_process
->
f
,
G
>>
3
);
// g is the concatenated code block
memcpy
(
ulsch
->
g
,
harq_process
->
f
,
G
);
// g is the concatenated code block
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME
(
VCD_SIGNAL_DUMPER_FUNCTIONS_ENB_DLSCH_ENCODING
,
VCD_FUNCTION_OUT
);
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME
(
VCD_SIGNAL_DUMPER_FUNCTIONS_ENB_DLSCH_ENCODING
,
VCD_FUNCTION_OUT
);
...
...
openair1/SIMULATION/NR_PHY/ulschsim.c
View file @
54c96644
...
@@ -138,9 +138,7 @@ int main(int argc, char **argv) {
...
@@ -138,9 +138,7 @@ int main(int argc, char **argv) {
uint16_t
N_RB_DL
=
106
,
N_RB_UL
=
106
,
mu
=
1
;
uint16_t
N_RB_DL
=
106
,
N_RB_UL
=
106
,
mu
=
1
;
//unsigned char frame_type = 0;
//unsigned char frame_type = 0;
int
frame
=
0
,
subframe
=
0
;
int
frame
=
0
,
subframe
=
0
;
int
frame_length_complex_samples
;
NR_DL_FRAME_PARMS
*
frame_parms
;
NR_DL_FRAME_PARMS
*
frame_parms
;
uint32_t
Nsoft
=
0
;
double
sigma
;
double
sigma
;
unsigned
char
qbits
=
8
;
unsigned
char
qbits
=
8
;
int
ret
;
int
ret
;
...
@@ -374,8 +372,6 @@ int main(int argc, char **argv) {
...
@@ -374,8 +372,6 @@ int main(int argc, char **argv) {
phy_init_nr_gNB
(
gNB
,
0
,
0
);
phy_init_nr_gNB
(
gNB
,
0
,
0
);
frame_length_complex_samples
=
frame_parms
->
samples_per_subframe
;
//configure UE
//configure UE
UE
=
malloc
(
sizeof
(
PHY_VARS_NR_UE
));
UE
=
malloc
(
sizeof
(
PHY_VARS_NR_UE
));
memcpy
(
&
UE
->
frame_parms
,
frame_parms
,
sizeof
(
NR_DL_FRAME_PARMS
));
memcpy
(
&
UE
->
frame_parms
,
frame_parms
,
sizeof
(
NR_DL_FRAME_PARMS
));
...
@@ -513,7 +509,7 @@ int main(int argc, char **argv) {
...
@@ -513,7 +509,7 @@ int main(int argc, char **argv) {
}
}
*/
*/
if
(
ulsch_ue
->
harq_processes
[
0
]
->
f
[
i
]
==
0
)
if
(
ulsch_ue
->
g
[
i
]
==
0
)
modulated_input
[
i
]
=
1
.
0
;
///sqrt(2); //QPSK
modulated_input
[
i
]
=
1
.
0
;
///sqrt(2); //QPSK
else
else
modulated_input
[
i
]
=
-
1
.
0
;
///sqrt(2);
modulated_input
[
i
]
=
-
1
.
0
;
///sqrt(2);
...
...
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