NED File src/simu5g/stack/d2d/NrNicEnbD2D.ned¶
Name |
Type |
Description |
|---|---|---|
compound module |
Device-to-Device (D2D) capable NR gNodeB network interface. It extends NrNicEnb by swapping in the D2D-capable NR MAC leaf and the D2D-capable eNB PHY, and by enabling the D2D mode controller and mode selection. It is the NR counterpart of LteNicEnbD2D. |
Source code¶
//
// Simu5G
//
// Copyright (C) 2019-2021 Giovanni Nardini, Giovanni Stea, Antonio Virdis et al. (University of Pisa)
// Copyright (C) 2022-2026 Giovanni Nardini, Giovanni Stea et al. (University of Pisa)
//
// This file is part of a software released under the license included in file
// "license.pdf". Please read LICENSE and README files before using it.
// The above files and the present reference are part of the software itself,
// and cannot be removed from it.
//
package simu5g.stack.d2d;
import simu5g.stack.NrNicEnb;
//
// Device-to-Device (D2D) capable NR gNodeB network interface. It extends
// ~NrNicEnb by swapping in the D2D-capable NR MAC leaf and the D2D-capable eNB
// PHY, and by enabling the D2D mode controller and mode selection. It is the NR
// counterpart of ~LteNicEnbD2D.
//
// The PDCP and RLC entities are missing from the submodules on purpose: the RRC
// layer's ~BearerManagement creates them per bearer at run time.
//
module NrNicEnbD2D extends NrNicEnb
{
parameters:
mac.typename = default("NrMacGnbD2D");
phy.typename = default("PhyEnbD2D");
ip2nic.typename = default("Ip2NicD2D");
rlcMux.typename = default("RlcMuxD2D");
rrc.bearerManagement.lteRlcUmEntityModuleType = default("simu5g.stack.d2d.rlc.LteRlcUmEntityD2D");
rrc.bearerManagement.nrRlcUmEntityModuleType = default("simu5g.stack.d2d.rlc.NrRlcUmEntityD2D");
// Use the D2D-capable channel model (matching the NrNicEnb default of
// TR 38.901 on the gNodeB's channelModel slot)
channelModelType = default("D2dChannelModel");
channelModel[*].pathLossType = default("Tr38901");
rrc.typename = default("RrcD2D");
rrc.hasD2DModeSelection = true;
rrc.connectionControl.typename = default("ConnectionControlEnbD2D");
}