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
Michael Black
OpenXG-RAN
Commits
fe5cd3d2
Commit
fe5cd3d2
authored
May 26, 2020
by
Raymond Knopp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed bug for long PRACH sequence configuration, flipped HARQ bits for 2-bit PUCCH0 UCI report
parent
8f8894d7
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
6 deletions
+9
-6
openair1/PHY/NR_TRANSPORT/pucch_rx.c
openair1/PHY/NR_TRANSPORT/pucch_rx.c
+2
-2
openair1/SCHED_NR_UE/pucch_uci_ue_nr.c
openair1/SCHED_NR_UE/pucch_uci_ue_nr.c
+5
-3
openair1/SIMULATION/NR_PHY/ulsim.c
openair1/SIMULATION/NR_PHY/ulsim.c
+1
-0
openair2/LAYER2/NR_MAC_COMMON/nr_mac_common.c
openair2/LAYER2/NR_MAC_COMMON/nr_mac_common.c
+1
-1
No files found.
openair1/PHY/NR_TRANSPORT/pucch_rx.c
View file @
fe5cd3d2
...
@@ -409,8 +409,8 @@ void nr_decode_pucch0(PHY_VARS_gNB *gNB,
...
@@ -409,8 +409,8 @@ void nr_decode_pucch0(PHY_VARS_gNB *gNB,
uci_pdu
->
harq
->
harq_confidence_level
=
xrtmag_dB
-
(
gNB
->
measurements
.
n0_subband_power_tot_dB
[
pucch_pdu
->
prb_start
]
+
gNB
->
pucch0_thres
);
uci_pdu
->
harq
->
harq_confidence_level
=
xrtmag_dB
-
(
gNB
->
measurements
.
n0_subband_power_tot_dB
[
pucch_pdu
->
prb_start
]
+
gNB
->
pucch0_thres
);
uci_pdu
->
harq
->
harq_list
=
(
nfapi_nr_harq_t
*
)
malloc
(
2
);
uci_pdu
->
harq
->
harq_list
=
(
nfapi_nr_harq_t
*
)
malloc
(
2
);
uci_pdu
->
harq
->
harq_list
[
0
].
harq_value
=
index
&
0x01
;
uci_pdu
->
harq
->
harq_list
[
1
].
harq_value
=
index
&
0x01
;
uci_pdu
->
harq
->
harq_list
[
1
].
harq_value
=
(
index
>>
1
)
&
0x01
;
uci_pdu
->
harq
->
harq_list
[
0
].
harq_value
=
(
index
>>
1
)
&
0x01
;
if
(
pucch_pdu
->
sr_flag
==
1
)
{
if
(
pucch_pdu
->
sr_flag
==
1
)
{
uci_pdu
->
sr
=
calloc
(
1
,
sizeof
(
*
uci_pdu
->
sr
));
uci_pdu
->
sr
=
calloc
(
1
,
sizeof
(
*
uci_pdu
->
sr
));
...
...
openair1/SCHED_NR_UE/pucch_uci_ue_nr.c
View file @
fe5cd3d2
...
@@ -198,7 +198,7 @@ bool pucch_procedures_ue_nr(PHY_VARS_NR_UE *ue, uint8_t gNB_id, UE_nr_rxtx_proc_
...
@@ -198,7 +198,7 @@ bool pucch_procedures_ue_nr(PHY_VARS_NR_UE *ue, uint8_t gNB_id, UE_nr_rxtx_proc_
/* update current context */
/* update current context */
int
subframe_number
=
(
proc
->
nr_tti_rx
)
/
(
ue
->
frame_parms
.
ttis_per_subframe
);
int
subframe_number
=
(
proc
->
nr_tti_rx
)
/
(
ue
->
frame_parms
.
slots_per_subframe
);
//
ttis_per_subframe);
nb_pucch_format_4_in_subframes
[
subframe_number
]
=
0
;
/* reset pucch format 4 counter at current rx position */
nb_pucch_format_4_in_subframes
[
subframe_number
]
=
0
;
/* reset pucch format 4 counter at current rx position */
int
dl_harq_pid
=
ue
->
dlsch
[
ue
->
current_thread_id
[
proc
->
nr_tti_rx
]][
gNB_id
][
0
]
->
current_harq_pid
;
int
dl_harq_pid
=
ue
->
dlsch
[
ue
->
current_thread_id
[
proc
->
nr_tti_rx
]][
gNB_id
][
0
]
->
current_harq_pid
;
...
@@ -439,7 +439,7 @@ bool pucch_procedures_ue_nr(PHY_VARS_NR_UE *ue, uint8_t gNB_id, UE_nr_rxtx_proc_
...
@@ -439,7 +439,7 @@ bool pucch_procedures_ue_nr(PHY_VARS_NR_UE *ue, uint8_t gNB_id, UE_nr_rxtx_proc_
}
}
nb_symbols
=
nb_symbols_excluding_dmrs
[
nb_symbols_total
-
4
][
index_additional_dmrs
][
index_hopping
];
nb_symbols
=
nb_symbols_excluding_dmrs
[
nb_symbols_total
-
4
][
index_additional_dmrs
][
index_hopping
];
nb_of_prbs
=
1
;
nb_of_prbs
=
1
;
subframe_number
=
nr_tti_tx
/
(
ue
->
frame_parms
.
ttis_per_subframe
);
subframe_number
=
nr_tti_tx
/
(
ue
->
frame_parms
.
slots_per_subframe
);
//
ttis_per_subframe);
nb_pucch_format_4_in_subframes
[
subframe_number
]
++
;
/* increment number of transmit pucch 4 in current subframe */
nb_pucch_format_4_in_subframes
[
subframe_number
]
++
;
/* increment number of transmit pucch 4 in current subframe */
NR_TST_PHY_PRINTF
(
"PUCCH Number of pucch format 4 in subframe %d is %d
\n
"
,
subframe_number
,
nb_pucch_format_4_in_subframes
[
subframe_number
]);
NR_TST_PHY_PRINTF
(
"PUCCH Number of pucch format 4 in subframe %d is %d
\n
"
,
subframe_number
,
nb_pucch_format_4_in_subframes
[
subframe_number
]);
N_sc_ctrl_RB
=
N_SC_RB
/
(
nb_pucch_format_4_in_subframes
[
subframe_number
]);
N_sc_ctrl_RB
=
N_SC_RB
/
(
nb_pucch_format_4_in_subframes
[
subframe_number
]);
...
@@ -698,6 +698,8 @@ uint8_t get_downlink_ack(PHY_VARS_NR_UE *ue, uint8_t gNB_id, UE_nr_rxtx_proc_t
...
@@ -698,6 +698,8 @@ uint8_t get_downlink_ack(PHY_VARS_NR_UE *ue, uint8_t gNB_id, UE_nr_rxtx_proc_t
int
V_DAI_m_DL
=
0
;
int
V_DAI_m_DL
=
0
;
NR_UE_MAC_INST_t
*
mac
=
get_mac_inst
(
0
);
NR_UE_MAC_INST_t
*
mac
=
get_mac_inst
(
0
);
if
(
mac
->
DLbwp
[
0
]
==
NULL
)
return
;
if
(
mac
->
DLbwp
[
0
]
->
bwp_Dedicated
->
pdsch_Config
->
choice
.
setup
->
maxNrofCodeWordsScheduledByDCI
[
0
]
==
2
)
{
if
(
mac
->
DLbwp
[
0
]
->
bwp_Dedicated
->
pdsch_Config
->
choice
.
setup
->
maxNrofCodeWordsScheduledByDCI
[
0
]
==
2
)
{
two_transport_blocks
=
TRUE
;
two_transport_blocks
=
TRUE
;
number_of_code_word
=
2
;
number_of_code_word
=
2
;
...
@@ -1205,7 +1207,7 @@ int trigger_periodic_scheduling_request(PHY_VARS_NR_UE *ue, uint8_t gNB_id, UE_n
...
@@ -1205,7 +1207,7 @@ int trigger_periodic_scheduling_request(PHY_VARS_NR_UE *ue, uint8_t gNB_id, UE_n
return
(
1
);
/* period is slot */
return
(
1
);
/* period is slot */
}
}
int16_t
N_slot_frame
=
NR_NUMBER_OF_SUBFRAMES_PER_FRAME
*
ue
->
frame_parms
.
ttis_per_subframe
;
int16_t
N_slot_frame
=
NR_NUMBER_OF_SUBFRAMES_PER_FRAME
*
ue
->
frame_parms
.
slots_per_subframe
;
//
ttis_per_subframe;
if
(((
proc
->
frame_tx
*
N_slot_frame
)
+
proc
->
nr_tti_tx
-
SR_offset
)
%
SR_periodicity
==
0
)
{
if
(((
proc
->
frame_tx
*
N_slot_frame
)
+
proc
->
nr_tti_tx
-
SR_offset
)
%
SR_periodicity
==
0
)
{
return
(
1
);
return
(
1
);
}
}
...
...
openair1/SIMULATION/NR_PHY/ulsim.c
View file @
fe5cd3d2
...
@@ -747,6 +747,7 @@ int main(int argc, char **argv)
...
@@ -747,6 +747,7 @@ int main(int argc, char **argv)
((
int16_t
*
)
&
gNB
->
common_vars
.
rxdata
[
0
][
slot_offset
])[
i
],
((
int16_t
*
)
&
gNB
->
common_vars
.
rxdata
[
0
][
slot_offset
])[
i
],
((
int16_t
*
)
&
gNB
->
common_vars
.
rxdata
[
0
][
slot_offset
])[
1
+
i
]);
((
int16_t
*
)
&
gNB
->
common_vars
.
rxdata
[
0
][
slot_offset
])[
1
+
i
]);
fclose
(
input_fd
);
fclose
(
input_fd
);
LOG_M
(
"rxsig0.m"
,
"rx0"
,
gNB
->
common_vars
.
rxdata
[
0
][
slot_offset
],
slot_length
,
1
,
1
);
}
}
////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////
...
...
openair2/LAYER2/NR_MAC_COMMON/nr_mac_common.c
View file @
fe5cd3d2
...
@@ -1065,7 +1065,7 @@ uint8_t compute_nr_root_seq(NR_RACH_ConfigCommon_t *rach_config,
...
@@ -1065,7 +1065,7 @@ uint8_t compute_nr_root_seq(NR_RACH_ConfigCommon_t *rach_config,
uint8_t
ncs_index
=
rach_config
->
rach_ConfigGeneric
.
zeroCorrelationZoneConfig
;
uint8_t
ncs_index
=
rach_config
->
rach_ConfigGeneric
.
zeroCorrelationZoneConfig
;
uint16_t
format0
=
get_format0
(
config_index
,
unpaired
);
uint16_t
format0
=
get_format0
(
config_index
,
unpaired
);
uint16_t
NCS
=
get_NCS
(
ncs_index
,
format0
,
rach_config
->
restrictedSetConfig
);
uint16_t
NCS
=
get_NCS
(
ncs_index
,
format0
,
rach_config
->
restrictedSetConfig
);
uint16_t
L_ra
=
(
rach_config
->
prach_RootSequenceIndex
.
present
)
?
139
:
839
;
uint16_t
L_ra
=
(
rach_config
->
prach_RootSequenceIndex
.
present
==
NR_RACH_ConfigCommon__prach_RootSequenceIndex_PR_l139
)
?
139
:
839
;
uint16_t
r
,
u
,
index
,
q
,
d_u
,
n_shift_ra
,
n_shift_ra_bar
,
d_start
;
uint16_t
r
,
u
,
index
,
q
,
d_u
,
n_shift_ra
,
n_shift_ra_bar
,
d_start
;
uint32_t
w
;
uint32_t
w
;
uint8_t
found_preambles
=
0
;
uint8_t
found_preambles
=
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