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
alex037yang
OpenXG-RAN
Commits
ff31317d
Commit
ff31317d
authored
Feb 12, 2021
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DIRTY HACK DO NOT COMMIT: log ULSCH decisions in file
parent
e80a3b70
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
18 deletions
+24
-18
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
+20
-17
openair2/LAYER2/NR_MAC_gNB/main.c
openair2/LAYER2/NR_MAC_gNB/main.c
+4
-1
No files found.
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
View file @
ff31317d
...
...
@@ -33,6 +33,8 @@
#include "executables/softmodem-common.h"
#include "common/utils/nr/nr_common.h"
FILE
*
ulsch_log_file
;
//38.321 Table 6.1.3.1-1
const
uint32_t
NR_SHORT_BSR_TABLE
[
32
]
=
{
0
,
10
,
14
,
20
,
28
,
38
,
53
,
74
,
...
...
@@ -933,8 +935,9 @@ void nr_schedule_ulsch(module_id_t module_id,
}
UE_info
->
mac_stats
[
UE_id
].
ulsch_current_bytes
=
sched_pusch
->
tb_size
;
LOG_I
(
MAC
,
"%4d.%2d RNTI %04x UL sched %4d.%2d start %2d RBs %3d MCS %2d TBS %4d HARQ PID %2d round %d NDI %d est %6d sched %6d est BSR %6d
\n
"
,
fprintf
(
ulsch_log_file
,
"%4d.%2d RNTI %04x UL sched %4d.%2d start %2d RBs %3d MCS %2d TBS %4d HARQ PID %2d round %d NDI %d est %6d "
"sched %6d est BSR %6d
\n
"
,
frame
,
slot
,
rnti
,
...
...
openair2/LAYER2/NR_MAC_gNB/main.c
View file @
ff31317d
...
...
@@ -43,7 +43,7 @@
#include "executables/softmodem-common.h"
extern
RAN_CONTEXT_t
RC
;
extern
FILE
*
ulsch_log_file
;
void
mac_top_init_gNB
(
void
)
{
...
...
@@ -119,5 +119,8 @@ void mac_top_init_gNB(void)
}
}
ulsch_log_file
=
fopen
(
"ulsch.log"
,
"w"
);
DevAssert
(
ulsch_log_file
);
srand48
(
0
);
}
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