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
ea984f8c
Commit
ea984f8c
authored
Mar 07, 2022
by
francescomani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
using a global definition for the number of nscid for dmrs
parent
d7b117ba
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
13 deletions
+15
-13
openair1/PHY/INIT/nr_init.c
openair1/PHY/INIT/nr_init.c
+6
-6
openair1/PHY/INIT/nr_init_ue.c
openair1/PHY/INIT/nr_init_ue.c
+5
-5
openair1/PHY/NR_UE_TRANSPORT/nr_initial_sync.c
openair1/PHY/NR_UE_TRANSPORT/nr_initial_sync.c
+2
-2
openair1/PHY/defs_nr_common.h
openair1/PHY/defs_nr_common.h
+2
-0
No files found.
openair1/PHY/INIT/nr_init.c
View file @
ea984f8c
...
...
@@ -142,10 +142,10 @@ int phy_init_nr_gNB(PHY_VARS_gNB *gNB,
AssertFatal
(
pdsch_dmrs
[
slot
]
!=
NULL
,
"NR init: pdsch_dmrs for slot %d - malloc failed
\n
"
,
slot
);
for
(
int
symb
=
0
;
symb
<
fp
->
symbols_per_slot
;
symb
++
)
{
pdsch_dmrs
[
slot
][
symb
]
=
(
uint32_t
**
)
malloc16
(
2
*
sizeof
(
uint32_t
*
));
pdsch_dmrs
[
slot
][
symb
]
=
(
uint32_t
**
)
malloc16
(
NR_NB_NSCID
*
sizeof
(
uint32_t
*
));
AssertFatal
(
pdsch_dmrs
[
slot
][
symb
]
!=
NULL
,
"NR init: pdsch_dmrs for slot %d symbol %d - malloc failed
\n
"
,
slot
,
symb
);
for
(
int
q
=
0
;
q
<
2
;
q
++
)
{
for
(
int
q
=
0
;
q
<
NR_NB_NSCID
;
q
++
)
{
pdsch_dmrs
[
slot
][
symb
][
q
]
=
(
uint32_t
*
)
malloc16
(
NR_MAX_PDSCH_DMRS_INIT_LENGTH_DWORD
*
sizeof
(
uint32_t
));
AssertFatal
(
pdsch_dmrs
[
slot
][
symb
][
q
]
!=
NULL
,
"NR init: pdsch_dmrs for slot %d symbol %d nscid %d - malloc failed
\n
"
,
slot
,
symb
,
q
);
}
...
...
@@ -153,17 +153,17 @@ int phy_init_nr_gNB(PHY_VARS_gNB *gNB,
}
for
(
int
nscid
=
0
;
nscid
<
2
;
nscid
++
)
{
for
(
int
nscid
=
0
;
nscid
<
NR_NB_NSCID
;
nscid
++
)
{
gNB
->
pdsch_gold_init
[
nscid
]
=
cfg
->
cell_config
.
phy_cell_id
.
value
;
nr_init_pdsch_dmrs
(
gNB
,
nscid
,
cfg
->
cell_config
.
phy_cell_id
.
value
);
}
//PUSCH DMRS init
gNB
->
nr_gold_pusch_dmrs
=
(
uint32_t
****
)
malloc16
(
2
*
sizeof
(
uint32_t
***
));
gNB
->
nr_gold_pusch_dmrs
=
(
uint32_t
****
)
malloc16
(
NR_NB_NSCID
*
sizeof
(
uint32_t
***
));
uint32_t
****
pusch_dmrs
=
gNB
->
nr_gold_pusch_dmrs
;
for
(
int
nscid
=
0
;
nscid
<
2
;
nscid
++
)
{
for
(
int
nscid
=
0
;
nscid
<
NR_NB_NSCID
;
nscid
++
)
{
pusch_dmrs
[
nscid
]
=
(
uint32_t
***
)
malloc16
(
fp
->
slots_per_frame
*
sizeof
(
uint32_t
**
));
AssertFatal
(
pusch_dmrs
[
nscid
]
!=
NULL
,
"NR init: pusch_dmrs for nscid %d - malloc failed
\n
"
,
nscid
);
...
...
@@ -178,7 +178,7 @@ int phy_init_nr_gNB(PHY_VARS_gNB *gNB,
}
}
for
(
int
nscid
=
0
;
nscid
<
2
;
nscid
++
)
{
for
(
int
nscid
=
0
;
nscid
<
NR_NB_NSCID
;
nscid
++
)
{
gNB
->
pusch_gold_init
[
nscid
]
=
cfg
->
cell_config
.
phy_cell_id
.
value
;
nr_gold_pusch
(
gNB
,
nscid
,
gNB
->
pusch_gold_init
[
nscid
]);
}
...
...
openair1/PHY/INIT/nr_init_ue.c
View file @
ea984f8c
...
...
@@ -242,11 +242,11 @@ int init_nr_ue_signal(PHY_VARS_NR_UE *ue, int nb_connected_gNB)
AssertFatal
(
pusch_dmrs
[
slot
]
!=
NULL
,
"init_nr_ue_signal: pusch_dmrs for slot %d - malloc failed
\n
"
,
slot
);
for
(
symb
=
0
;
symb
<
fp
->
symbols_per_slot
;
symb
++
)
{
pusch_dmrs
[
slot
][
symb
]
=
(
uint32_t
**
)
malloc16
(
2
*
sizeof
(
uint32_t
*
));
pusch_dmrs
[
slot
][
symb
]
=
(
uint32_t
**
)
malloc16
(
NR_NB_NSCID
*
sizeof
(
uint32_t
*
));
AssertFatal
(
pusch_dmrs
[
slot
][
symb
]
!=
NULL
,
"init_nr_ue_signal: pusch_dmrs for slot %d symbol %d - malloc failed
\n
"
,
slot
,
symb
);
for
(
q
=
0
;
q
<
2
;
q
++
)
{
pusch_dmrs
[
slot
][
symb
][
q
]
=
(
uint32_t
*
)
malloc16
(
NR_MAX_P
D
SCH_DMRS_INIT_LENGTH_DWORD
*
sizeof
(
uint32_t
));
for
(
q
=
0
;
q
<
NR_NB_NSCID
;
q
++
)
{
pusch_dmrs
[
slot
][
symb
][
q
]
=
(
uint32_t
*
)
malloc16
(
NR_MAX_P
U
SCH_DMRS_INIT_LENGTH_DWORD
*
sizeof
(
uint32_t
));
AssertFatal
(
pusch_dmrs
[
slot
][
symb
][
q
]
!=
NULL
,
"init_nr_ue_signal: pusch_dmrs for slot %d symbol %d codeword %d - malloc failed
\n
"
,
slot
,
symb
,
q
);
}
}
...
...
@@ -321,10 +321,10 @@ int init_nr_ue_signal(PHY_VARS_NR_UE *ue, int nb_connected_gNB)
AssertFatal
(
pdsch_dmrs
[
slot
]
!=
NULL
,
"NR init: pdsch_dmrs for slot %d - malloc failed
\n
"
,
slot
);
for
(
int
symb
=
0
;
symb
<
fp
->
symbols_per_slot
;
symb
++
)
{
pdsch_dmrs
[
slot
][
symb
]
=
(
uint32_t
**
)
malloc16
(
NR_
MAX_NB_CODEWORDS
*
sizeof
(
uint32_t
*
));
pdsch_dmrs
[
slot
][
symb
]
=
(
uint32_t
**
)
malloc16
(
NR_
NB_NSCID
*
sizeof
(
uint32_t
*
));
AssertFatal
(
pdsch_dmrs
[
slot
][
symb
]
!=
NULL
,
"NR init: pdsch_dmrs for slot %d symbol %d - malloc failed
\n
"
,
slot
,
symb
);
for
(
int
q
=
0
;
q
<
NR_
MAX_NB_CODEWORDS
;
q
++
)
{
for
(
int
q
=
0
;
q
<
NR_
NB_NSCID
;
q
++
)
{
pdsch_dmrs
[
slot
][
symb
][
q
]
=
(
uint32_t
*
)
malloc16
(
NR_MAX_PDSCH_DMRS_INIT_LENGTH_DWORD
*
sizeof
(
uint32_t
));
AssertFatal
(
pdsch_dmrs
[
slot
][
symb
][
q
]
!=
NULL
,
"NR init: pdsch_dmrs for slot %d symbol %d codeword %d - malloc failed
\n
"
,
slot
,
symb
,
q
);
}
...
...
openair1/PHY/NR_UE_TRANSPORT/nr_initial_sync.c
View file @
ea984f8c
...
...
@@ -343,13 +343,13 @@ int nr_initial_sync(UE_nr_rxtx_proc_t *proc,
nr_gold_pdcch
(
ue
,
fp
->
Nid_cell
);
// compute the scrambling IDs for PDSCH DMRS
for
(
int
i
=
0
;
i
<
2
;
i
++
)
{
for
(
int
i
=
0
;
i
<
NR_NB_NSCID
;
i
++
)
{
ue
->
scramblingID_dlsch
[
i
]
=
fp
->
Nid_cell
;
nr_gold_pdsch
(
ue
,
i
,
ue
->
scramblingID_dlsch
[
i
]);
}
// initialize the pusch dmrs
for
(
int
i
=
0
;
i
<
2
;
i
++
)
{
for
(
int
i
=
0
;
i
<
NR_NB_NSCID
;
i
++
)
{
ue
->
scramblingID_ulsch
[
i
]
=
fp
->
Nid_cell
;
nr_init_pusch_dmrs
(
ue
,
ue
->
scramblingID_ulsch
[
i
],
i
);
}
...
...
openair1/PHY/defs_nr_common.h
View file @
ea984f8c
...
...
@@ -114,6 +114,8 @@
#define NR_RX_NB_TH 1
#define NR_NB_TH_SLOT 2
#define NR_NB_NSCID 2
extern
const
uint8_t
nr_rv_round_map
[
4
];
static
inline
...
...
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