子模块全部聚合到了一个
simple Txc12
{
parameters:
@display("i=block/routing");
gates:
inout gate[]; // declare two way connections
}
network Tictoc12
{
@display("bgb=206,121");
types:
channel Channel extends ned.DelayChannel
{
delay = 100ms;
}
submodules:
tic[6]: Txc12 {
@display("p=90,50");
}
connections:
tic[0].gate++ <--> Channel <--> tic[1].gate++;
tic[1].gate++ <--> Channel <--> tic[2].gate++;
tic[1].gate++ <--> Channel <--> tic[4].gate++;
tic[3].gate++ <--> Channel <--> tic[4].gate++;
tic[0].gate++ <--> Channel <--> tic[5].gate++;
}
更换不同版本omnet