|
|
|
@ -426,6 +426,7 @@ void test_scheduler_rand(sched_sim_events sim)
|
|
|
|
|
|
|
|
|
|
sched_sim_events rand_sim_params(uint32_t nof_ttis)
|
|
|
|
|
{
|
|
|
|
|
auto boolean_dist = []() { return std::uniform_int_distribution<>{0, 1}(srsenb::get_rand_gen()); };
|
|
|
|
|
sched_sim_events sim_gen;
|
|
|
|
|
uint32_t max_conn_dur = 10000, min_conn_dur = 500;
|
|
|
|
|
float P_ul_sr = srsenb::randf() * 0.5, P_dl = srsenb::randf() * 0.5;
|
|
|
|
@ -444,6 +445,10 @@ sched_sim_events rand_sim_params(uint32_t nof_ttis)
|
|
|
|
|
sim_gen.sim_args.default_ue_sim_cfg.periodic_cqi = true;
|
|
|
|
|
sim_gen.sim_args.start_tti = 0;
|
|
|
|
|
sim_gen.sim_args.sim_log = log_global.get();
|
|
|
|
|
sim_gen.sim_args.sched_args.pdsch_mcs =
|
|
|
|
|
boolean_dist() ? -1 : std::uniform_int_distribution<>{0, 24}(srsenb::get_rand_gen());
|
|
|
|
|
sim_gen.sim_args.sched_args.pusch_mcs =
|
|
|
|
|
boolean_dist() ? -1 : std::uniform_int_distribution<>{0, 24}(srsenb::get_rand_gen());
|
|
|
|
|
|
|
|
|
|
generator.tti_events.resize(nof_ttis);
|
|
|
|
|
|
|
|
|
|