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
6384517c
Commit
6384517c
authored
Jan 03, 2025
by
Laurent THOMAS
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better code for PUCCH2 decoding
parent
bf69131c
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
312 additions
and
756 deletions
+312
-756
common/utils/LOG/log.c
common/utils/LOG/log.c
+19
-0
common/utils/LOG/log.h
common/utils/LOG/log.h
+3
-0
openair1/PHY/NR_TRANSPORT/pucch_rx.c
openair1/PHY/NR_TRANSPORT/pucch_rx.c
+288
-754
openair1/SIMULATION/NR_PHY/pucchsim.c
openair1/SIMULATION/NR_PHY/pucchsim.c
+2
-2
No files found.
common/utils/LOG/log.c
View file @
6384517c
...
...
@@ -651,6 +651,10 @@ void log_dump(int component,
wbuf
=
malloc
((
buffsize
*
10
)
+
64
+
MAX_LOG_TOTAL
);
break
;
case
LOG_DUMP_C16
:
wbuf
=
malloc
((
buffsize
*
10
)
+
64
+
MAX_LOG_TOTAL
);
break
;
case
LOG_DUMP_CHAR
:
default:
wbuf
=
malloc
((
buffsize
*
3
)
+
64
+
MAX_LOG_TOTAL
);
...
...
@@ -669,6 +673,21 @@ void log_dump(int component,
pos
=
pos
+
sprintf
(
wbuf
+
pos
,
"%04.4lf "
,
(
double
)((
double
*
)
buffer
)[
i
]);
break
;
case
LOG_DUMP_I16
:
{
int16_t
*
tmp
=
((
int16_t
*
)
buffer
)
+
i
;
pos
=
pos
+
sprintf
(
wbuf
+
pos
,
"%d, "
,
*
tmp
);
}
break
;
case
LOG_DUMP_C16
:
{
int16_t
*
tmp
=
((
int16_t
*
)
buffer
)
+
i
*
2
;
pos
=
pos
+
sprintf
(
wbuf
+
pos
,
"(%d,%d), "
,
*
tmp
,
*
(
tmp
+
1
));
}
break
;
case
LOG_DUMP_C32
:
{
int32_t
*
tmp
=
((
int32_t
*
)
buffer
)
+
i
*
2
;
pos
=
pos
+
sprintf
(
wbuf
+
pos
,
"(%d,%d), "
,
*
tmp
,
*
(
tmp
+
1
));
}
break
;
case
LOG_DUMP_CHAR
:
default:
pos
=
pos
+
sprintf
(
wbuf
+
pos
,
"%02x "
,
(
unsigned
char
)((
unsigned
char
*
)
buffer
)[
i
]);
...
...
common/utils/LOG/log.h
View file @
6384517c
...
...
@@ -335,6 +335,9 @@ int32_t write_file_matlab(const char *fname, const char *vname, void *data, int
* @{*/
#define LOG_DUMP_CHAR 0
#define LOG_DUMP_DOUBLE 1
#define LOG_DUMP_I16 2
#define LOG_DUMP_C16 3
#define LOG_DUMP_C32 4
// debugging macros
#define LOG_F LOG_I
/* because LOG_F was originaly to dump a message or buffer but is also used as a regular level...., to dump use LOG_DUMPMSG */
...
...
openair1/PHY/NR_TRANSPORT/pucch_rx.c
View file @
6384517c
This diff is collapsed.
Click to expand it.
openair1/SIMULATION/NR_PHY/pucchsim.c
View file @
6384517c
...
...
@@ -406,8 +406,8 @@ int main(int argc, char **argv)
if
((
format
<
2
)
&&
(
actual_payload
==
4
))
do_DTX
=
1
;
if
(
random_payload
)
{
srand
(
time
(
NULL
));
// Initialization, should only be called once.
actual_payload
=
rand
();
// Returns a pseudo-random integer between 0 and RAND_MAX.
double
tmp
=
uniformrandom
();
memcpy
(
&
actual_payload
,
&
tmp
,
sizeof
(
actual_payload
));
}
actual_payload
&=
nr_bit
<
64
?
(
1UL
<<
nr_bit
)
-
1
:
0xffffffffffffffff
;
...
...
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