simple Hub
  gates:
    out: outport[];
endsimple

simple Station
  gates:
    in: In;
endsimple

module Star
  submodules:
    hub: Hub
      gatesizes: outport[4];
    station: Station[4];
  connections:
    for i=0..3 do
      Hub.outport[i] --> Station[i].In;
    endfor
endmodule

network star: Star
endnetwork
