AdjMatrixComp.emam 463 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
package lab;

component AdjMatrixComp{


    component Sub1{
        ports out Q qOut1,
              out Q qOut2,
              out Q qOut3;
    }

    component Sub2{
        ports in Q qIn;
    }

    component Sub3{
        ports in Q qIn1,
              in Q qIn2;

    }

    instance Sub1 sub1;
    instance Sub2 sub2;
    instance Sub3 sub3;

    connect sub1.qOut1 -> sub2.qIn;
    connect sub1.qOut2 -> sub3.qIn1;
    connect sub1.qOut3 -> sub3.qIn2;

}