DistComp.emam 331 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
package tests.dist;

component DistComp{
    component SubComp1{
        ports out Q out1,
              out Q out2;
    }

    component SubComp2{
        ports in Q in1,
              in Q in2;
    }

    instance SubComp1 sub1;
    instance SubComp2 sub2;

    connect sub1.out1 -> sub2.in1;
    connect sub1.out2 -> sub2.in2;
}