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
ZhouShuya
OpenXG-RAN
Commits
44daf9cf
Commit
44daf9cf
authored
Apr 08, 2020
by
NCTU_CS_ISIP Terngyin&NY&GK&KM
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NCTU OpinConnect
parent
20133c81
Changes
7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
398 additions
and
22 deletions
+398
-22
cmake_targets/build_oai
cmake_targets/build_oai
+10
-1
common/utils/LOG/vcd_signal_dumper.c
common/utils/LOG/vcd_signal_dumper.c
+20
-0
common/utils/LOG/vcd_signal_dumper.h
common/utils/LOG/vcd_signal_dumper.h
+20
-0
common/utils/T/T_defs.h
common/utils/T/T_defs.h
+9
-10
common/utils/T/T_messages.txt
common/utils/T/T_messages.txt
+51
-0
openair1/PHY/CODING/TESTBENCH/ldpctest.c
openair1/PHY/CODING/TESTBENCH/ldpctest.c
+256
-11
openair1/PHY/CODING/nrLDPC_encoder/defs.h
openair1/PHY/CODING/nrLDPC_encoder/defs.h
+32
-0
No files found.
cmake_targets/build_oai
View file @
44daf9cf
...
...
@@ -24,6 +24,15 @@
# brief OAI automated build tool that can be used to install, compile, run OAI.
# author Navid Nikaein, Lionel GAUTHIER, Laurent Thomas
# file build_oai
# brief Adjust simlist
# author Terngyin, NY, GK, KM (ISIP)
# email tyhsu@cs.nctu.edu.tw
# date 07-04-2020
# version 1.0
# note
# warning
set
-e
# Include helper functions
...
...
@@ -661,7 +670,7 @@ function main() {
if
[
"
$SIMUS_PHY
"
=
"1"
]
;
then
echo_info
"Compiling physical unitary tests simulators"
# TODO: fix: dlsim_tm4 pucchsim prachsim pdcchsim pbchsim mbmssim
simlist
=
"nr_dlsim "
simlist
=
"nr_dlsim
ldpctest
"
#simlist="dlsim ulsim ldpctest polartest smallblocktest nr_pbchsim nr_dlschsim nr_ulschsim nr_dlsim nr_ulsim nr_pucchsim"
for
f
in
$simlist
;
do
compilations
\
...
...
common/utils/LOG/vcd_signal_dumper.c
View file @
44daf9cf
...
...
@@ -31,6 +31,16 @@
* \warning
*/
/*!\file vcd_signal_dumper.c
* \brief Add some VCD signals of multi_ldpc_encoder
* \author Terngyin, NY, GK, KM (ISIP)
* \email tyhsu@cs.nctu.edu.tw
* \date 07-04-2020
* \version 1.0
* \note
* \warning
*/
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
...
...
@@ -63,6 +73,7 @@ struct vcd_module_s {
const
char
*
eurecomVariablesNames
[]
=
{
"frame_number_TX0_eNB"
,
"multi_enc_finish"
,
"mask_ru"
,
"mask_tx_ru"
,
"frame_number_TX1_eNB"
,
...
...
@@ -254,6 +265,15 @@ const char* eurecomVariablesNames[] = {
const
char
*
eurecomFunctionsNames
[]
=
{
/* softmodem signals */
"rt_sleep"
,
"multi_enc"
,
"multi_enc_0"
,
"multi_enc_1"
,
"multi_enc_2"
,
"multi_enc_3"
,
"multi_enc_4"
,
"multi_enc_5"
,
"multi_enc_6"
,
"multi_enc_7"
,
"trx_read"
,
"trx_write"
,
"trx_read_ue"
,
...
...
common/utils/LOG/vcd_signal_dumper.h
View file @
44daf9cf
...
...
@@ -32,6 +32,16 @@
* \warning
*/
/*!\file vcd_signal_dumper.h
* \brief Add some VCD signals of multi_ldpc_encoder
* \author Terngyin, NY, GK, KM (ISIP)
* \email tyhsu@cs.nctu.edu.tw
* \date 07-04-2020
* \version 1.0
* \note
* \warning
*/
#ifndef VCD_SIGNAL_DUMPER_H_
#define VCD_SIGNAL_DUMPER_H_
...
...
@@ -40,6 +50,7 @@
/* WARNING: if you edit the enums below, update also string definitions in vcd_signal_dumper.c */
typedef
enum
{
VCD_SIGNAL_DUMPER_VARIABLES_FRAME_NUMBER_TX0_ENB
=
0
,
VCD_SIGNAL_DUMPER_VARIABLES_MULTI_ENC_FINISH
,
VCD_SIGNAL_DUMPER_VARIABLES_MASK_RU
,
VCD_SIGNAL_DUMPER_VARIABLES_MASK_TX_RU
,
VCD_SIGNAL_DUMPER_VARIABLES_FRAME_NUMBER_TX1_ENB
,
...
...
@@ -234,6 +245,15 @@ typedef enum {
typedef
enum
{
/* softmodem signals */
VCD_SIGNAL_DUMPER_FUNCTIONS_RT_SLEEP
=
0
,
VCD_SIGNAL_DUMPER_FUNCTIONS_MULTI_ENC
,
VCD_SIGNAL_DUMPER_FUNCTIONS_MULTI_ENC_0
,
VCD_SIGNAL_DUMPER_FUNCTIONS_MULTI_ENC_1
,
VCD_SIGNAL_DUMPER_FUNCTIONS_MULTI_ENC_2
,
VCD_SIGNAL_DUMPER_FUNCTIONS_MULTI_ENC_3
,
VCD_SIGNAL_DUMPER_FUNCTIONS_MULTI_ENC_4
,
VCD_SIGNAL_DUMPER_FUNCTIONS_MULTI_ENC_5
,
VCD_SIGNAL_DUMPER_FUNCTIONS_MULTI_ENC_6
,
VCD_SIGNAL_DUMPER_FUNCTIONS_MULTI_ENC_7
,
VCD_SIGNAL_DUMPER_FUNCTIONS_TRX_READ
,
VCD_SIGNAL_DUMPER_FUNCTIONS_TRX_WRITE
,
VCD_SIGNAL_DUMPER_FUNCTIONS_TRX_READ_UE
,
...
...
common/utils/T/T_defs.h
View file @
44daf9cf
...
...
@@ -19,16 +19,15 @@
* contact@openairinterface.org
*/
/*!\file common/utils/T/T_defs.h
* \brief
* \author
* \date
* \version
* \company EURECOM
* \email
/*!\file T_defs.h
* \brief Update VCD_NUM_FUNCTIONS and VCD_NUM_VARIABLES
* \author Terngyin, NY, GK, KM (ISIP)
* \email tyhsu@cs.nctu.edu.tw
* \date 07-04-2020
* \version 1.0
* \note
* \warning
*/
*/
#ifndef _T_defs_H_
#define _T_defs_H_
...
...
@@ -73,10 +72,10 @@ typedef struct {
}
T_cache_t
;
/* number of VCD functions (to be kept up to date! see in T_messages.txt) */
#define VCD_NUM_FUNCTIONS (2
47)
#define VCD_NUM_FUNCTIONS (2
56) //origin : 247
/* number of VCD variables (to be kept up to date! see in T_messages.txt) */
#define VCD_NUM_VARIABLES (18
6)
#define VCD_NUM_VARIABLES (18
7) //origin : 186
/* first VCD function (to be kept up to date! see in T_messages.txt) */
#define VCD_FIRST_FUNCTION ((uintptr_t)T_VCD_FUNCTION_RT_SLEEP)
...
...
common/utils/T/T_messages.txt
View file @
44daf9cf
#general logs
ID = ENB_MASTER_TICK
DESC = eNodeB master tick - one tick per ms, to be used as "reference clock", mostly for ticktime view
...
...
@@ -1211,6 +1212,11 @@ ID = VCD_VARIABLE_FRAME_NUMBER_TX0_ENB
GROUP = ALL:VCD:ENB:VCD_VARIABLE
FORMAT = ulong,value
VCD_NAME = frame_number_TX0_eNB
ID = VCD_VARIABLE_MULTI_ENC_FINISH
DESC = VCD variable MULTI_ENC_FINISH
GROUP = ALL:VCD:ENB:VCD_VARIABLE
FORMAT = ulong,value
VCD_NAME = multi_enc_finish
ID = VCD_VARIABLE_MASK_RU
DESC = VCD variable MASK_RU
GROUP = ALL:VCD:ENB:VCD_VARIABLE
...
...
@@ -2146,6 +2152,51 @@ ID = VCD_FUNCTION_RT_SLEEP
GROUP = ALL:VCD:ENB:VCD_FUNCTION
FORMAT = int,value
VCD_NAME = rt_sleep
ID = VCD_FUNCTION_MULTI_ENC
DESC = VCD function MULTI_ENC
GROUP = ALL:VCD:ENB:VCD_FUNCTION
FORMAT = int,value
VCD_NAME = multi_enc
ID = VCD_FUNCTION_MULTI_ENC_0
DESC = VCD function MULTI_ENC_0
GROUP = ALL:VCD:ENB:VCD_FUNCTION
FORMAT = int,value
VCD_NAME = multi_enc_0
ID = VCD_FUNCTION_MULTI_ENC_1
DESC = VCD function MULTI_ENC_1
GROUP = ALL:VCD:ENB:VCD_FUNCTION
FORMAT = int,value
VCD_NAME = multi_enc_1
ID = VCD_FUNCTION_MULTI_ENC_2
DESC = VCD function MULTI_ENC_2
GROUP = ALL:VCD:ENB:VCD_FUNCTION
FORMAT = int,value
VCD_NAME = multi_enc_2
ID = VCD_FUNCTION_MULTI_ENC_3
DESC = VCD function MULTI_ENC_3
GROUP = ALL:VCD:ENB:VCD_FUNCTION
FORMAT = int,value
VCD_NAME = multi_enc_3
ID = VCD_FUNCTION_MULTI_ENC_4
DESC = VCD function MULTI_ENC_4
GROUP = ALL:VCD:ENB:VCD_FUNCTION
FORMAT = int,value
VCD_NAME = multi_enc_4
ID = VCD_FUNCTION_MULTI_ENC_5
DESC = VCD function MULTI_ENC_5
GROUP = ALL:VCD:ENB:VCD_FUNCTION
FORMAT = int,value
VCD_NAME = multi_enc_5
ID = VCD_FUNCTION_MULTI_ENC_6
DESC = VCD function MULTI_ENC_6
GROUP = ALL:VCD:ENB:VCD_FUNCTION
FORMAT = int,value
VCD_NAME = multi_enc_6
ID = VCD_FUNCTION_MULTI_ENC_7
DESC = VCD function MULTI_ENC_7
GROUP = ALL:VCD:ENB:VCD_FUNCTION
FORMAT = int,value
VCD_NAME = multi_enc_7
ID = VCD_FUNCTION_TRX_READ
DESC = VCD function TRX_READ
GROUP = ALL:VCD:ENB:VCD_FUNCTION
...
...
openair1/PHY/CODING/TESTBENCH/ldpctest.c
100755 → 100644
View file @
44daf9cf
This diff is collapsed.
Click to expand it.
openair1/PHY/CODING/nrLDPC_encoder/defs.h
100755 → 100644
View file @
44daf9cf
...
...
@@ -29,8 +29,40 @@
* \warning
*/
/*!\file defs.h
* \brief Declarations of parameters of multi_ldpc_encoder
* \author Terngyin, NY, GK, KM (ISIP)
* \email tyhsu@cs.nctu.edu.tw
* \date 07-04-2020
* \version 1.0
* \note
* \warning
*/
#include "PHY/TOOLS/time_meas.h"
// ==[START]multi_ldpc_encoder
//#define thread_num 2 // ==Change thread_num here ==
#define thread_num_max 8 // ==Change max tread_num here ==
typedef
struct
{
int
id
;
volatile
int
flag_wait
;
pthread_t
pthread
;
pthread_cond_t
cond
;
pthread_mutex_t
mutex
;
pthread_attr_t
attr
;
volatile
uint8_t
complete
;
unsigned
char
**
test_input
;
unsigned
char
**
channel_input_optim
;
int
Zc
;
int
Kb
;
short
block_length
;
short
BG
;
int
n_segments
;
//unsigned int macro_num; //Not necessary to do
}
multi_ldpc_encoder
;
// ==[END]multi_ldpc_encoder
/*ldpc_encoder.c*/
int
encode_parity_check_part_orig
(
unsigned
char
*
c
,
unsigned
char
*
d
,
short
BG
,
short
Zc
,
short
Kb
,
short
block_length
);
...
...
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