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
9b594ff3
Commit
9b594ff3
authored
Sep 01, 2022
by
Roberto Louro Magueta
Committed by
luis_pereira87
Oct 27, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix AWGN channel
parent
abb6fadd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletion
+17
-1
openair1/SIMULATION/NR_PHY/pucchsim.c
openair1/SIMULATION/NR_PHY/pucchsim.c
+1
-1
openair1/SIMULATION/TOOLS/random_channel.c
openair1/SIMULATION/TOOLS/random_channel.c
+16
-0
No files found.
openair1/SIMULATION/NR_PHY/pucchsim.c
View file @
9b594ff3
...
...
@@ -354,7 +354,7 @@ int main(int argc, char **argv)
printf
(
"-b number of HARQ bits (1-2)
\n
"
);
printf
(
"-B payload to be transmitted on PUCCH
\n
"
);
printf
(
"-m initial cyclic shift m0
\n
"
);
printf
(
"-T to check nacktoack miss for format 1"
);
printf
(
"-T to check nacktoack miss for format 1
\n
"
);
exit
(
-
1
);
break
;
}
...
...
openair1/SIMULATION/TOOLS/random_channel.c
View file @
9b594ff3
...
...
@@ -1616,6 +1616,22 @@ int random_channel(channel_desc_t *desc, uint8_t abstraction_flag) {
struct
complexd
phase
,
alpha
,
beta
;
start_meas
(
&
desc
->
random_channel
);
// For AWGN channel, the received signal (Srx) is equal to transmitted signal (Stx) plus noise (N), i.e., Srx = Stx + N,
// therefore, the channel matrix is the identity matrix.
if
(
desc
->
modelid
==
AWGN
)
{
for
(
aarx
=
0
;
aarx
<
desc
->
nb_rx
;
aarx
++
)
{
for
(
aatx
=
0
;
aatx
<
desc
->
nb_tx
;
aatx
++
)
{
desc
->
ch
[
aarx
+
(
aatx
*
desc
->
nb_rx
)][
0
].
r
=
aarx
%
desc
->
nb_tx
==
aatx
?
1
.
0
:
0
.
0
;
desc
->
ch
[
aarx
+
(
aatx
*
desc
->
nb_rx
)][
0
].
i
=
0
.
0
;
acorr
[
aarx
+
(
aatx
*
desc
->
nb_rx
)].
r
=
desc
->
ch
[
aarx
+
(
aatx
*
desc
->
nb_rx
)][
0
].
r
;
acorr
[
aarx
+
(
aatx
*
desc
->
nb_rx
)].
i
=
desc
->
ch
[
aarx
+
(
aatx
*
desc
->
nb_rx
)][
0
].
i
;
}
}
cblas_zcopy
(
desc
->
nb_tx
*
desc
->
nb_rx
,
(
void
*
)
acorr
,
1
,
(
void
*
)
desc
->
a
[
0
],
1
);
stop_meas
(
&
desc
->
random_channel
);
desc
->
first_run
=
0
;
return
0
;
}
bzero
(
acorr
,
desc
->
nb_tx
*
desc
->
nb_rx
*
sizeof
(
struct
complexd
));
for
(
i
=
0
;
i
<
(
int
)
desc
->
nb_taps
;
i
++
)
{
...
...
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