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
canghaiwuhen
OpenXG-RAN
Commits
18a3747e
Commit
18a3747e
authored
Aug 03, 2020
by
Sakthivel Velumani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added the changed octave script
parent
fbd4df01
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
0 deletions
+51
-0
openair1/PHY/NR_REFSIG/nr_gen_mod_table.m
openair1/PHY/NR_REFSIG/nr_gen_mod_table.m
+51
-0
No files found.
openair1/PHY/NR_REFSIG/nr_gen_mod_table.m
View file @
18a3747e
...
...
@@ -126,6 +126,49 @@ end
end
end
%%QPSK byte
for
b0
=
0
:
1
for
b1
=
0
:
1
for
b2
=
0
:
1
for
b3
=
0
:
1
for
b4
=
0
:
1
for
b5
=
0
:
1
for
b6
=
0
:
1
for
b7
=
0
:
1
qpsk_byte_table2
(
b7
*
128
+
b6
*
64
+
b5
*
32
+
b4
*
16
+
b3
*
8
+
b2
*
4
+
b1
*
2
+
b0
*
1
+
1
,:)
=
[(
1
-
b0
*
2
)
*
QPSK
(
1
-
2
*
b1
)
*
QPSK
(
1
-
b2
*
2
)
*
QPSK
(
1
-
2
*
b3
)
*
QPSK
...
(
1
-
b4
*
2
)
*
QPSK
(
1
-
2
*
b5
)
*
QPSK
(
1
-
b6
*
2
)
*
QPSK
(
1
-
2
*
b7
)
*
QPSK
];
end
end
end
end
end
end
end
end
%%16QAM byte
qam16_byte_table2
=
[];
for
b0
=
0
:
1
for
b1
=
0
:
1
for
b2
=
0
:
1
for
b3
=
0
:
1
for
b4
=
0
:
1
for
b5
=
0
:
1
for
b6
=
0
:
1
for
b7
=
0
:
1
qam16_byte_table2
(
b7
*
128
+
b6
*
64
+
b5
*
32
+
b4
*
16
+
b3
*
8
+
b2
*
4
+
b1
*
2
+
b0
*
1
+
1
,:)
=
[
qam16_table
(
b0
*
2
+
b2
*
1
+
1
)
qam16_table
(
b1
*
2
+
b3
*
1
+
1
)
...
qam16_table
(
b4
*
2
+
b6
*
1
+
1
)
qam16_table
(
b5
*
2
+
b7
*
1
+
1
)
];
end
end
end
end
end
end
end
end
table
=
round
(
K
*
[
0
;
bpsk_table
(:);
qpsk_table
(:);
qam16_table2
(:);
qam64_table2
(:);
qam256_table2
(:)
]);
%scatter (real(qam256_table2), imag(qam256_table2), 'x');
save
mod_table
.
mat
table
...
...
@@ -133,6 +176,8 @@ save mod_table.mat table
table2
=
zeros
(
1
,
length
(
table
)
*
2
);
table2
(
1
:
2
:
end
)
=
real
(
table
);
table2
(
2
:
2
:
end
)
=
imag
(
table
);
qpsk_byte_table2
=
round
(
K
*
qpsk_byte_table2
'
(:));
qam16_byte_table2
=
round
(
K
*
qam16_byte_table2
'
(:));
fd
=
fopen
(
"nr_mod_table.h"
,
"w"
);
fprintf
(
fd
,
"#define NR_MOD_TABLE_SIZE_SHORT %d\n"
,
length
(
table
)
*
2
);
...
...
@@ -144,4 +189,10 @@ fprintf(fd,"#define NR_MOD_TABLE_QAM256_OFFSET %d\n", 87);
fprintf
(
fd
,
"short nr_mod_table[NR_MOD_TABLE_SIZE_SHORT] = {"
);
fprintf
(
fd
,
"%d,"
,
table2
(
1
:
end
-
1
));
fprintf
(
fd
,
"%d};\n"
,
table2
(
end
));
fprintf
(
fd
,
"short nr_qpsk_mod_table[2048] = {"
);
fprintf
(
fd
,
"%d,"
,
qpsk_byte_table2
(
1
:
end
-
1
));
fprintf
(
fd
,
"%d};\n"
,
qpsk_byte_table2
(
end
));
fprintf
(
fd
,
"short nr_qam16_mod_table[1024] = {"
);
fprintf
(
fd
,
"%d,"
,
qam16_byte_table2
(
1
:
end
-
1
));
fprintf
(
fd
,
"%d};\n"
,
qam16_byte_table2
(
end
));
fclose
(
fd
);
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