
#INCLUDE "/home/amu5/users/georget/Phd/Simul/Defs/defs.inc"
#USE "/home/amu5/users/georget/Phd/Simul/library"
#USE "/home/amu5/users/georget/Phd/Simul/Decode2/Ctrl2"
#USE "/home/amu5/users/georget/Phd/Simul/Decode2/Dec2"
#USE "/home/amu5/users/georget/Phd/Simul/Decode2/NGen"


PROC Decode2(CHAN OF BUNDLE FromRegA,FromRegB,FromApipe,FromDatInt,FromCPsrA,
                             FromOplat,FromImm, ToApipe,ToDatIntBw,ToDatIntMb,
                             ToCPsr, ToOplatB, ToOplatA,ToReg,ToImm,Dec1NG,
                             Dec1Dec2, NGDec1A,Dec2Dec1A,Ctrl3Alx,
                             []CHAN OF DEB.MESSAGE screen, VAL INT report, evaluate) --8


  CHAN OF BUNDLE  FromDec2,FromNGen,ToDec2,Fromctrl2A,ToNGen,FromDec2A:

  SEQ
    PAR


      Ctrl2(FromRegA,FromRegB,FromApipe,FromDatInt, FromDec2,FromNGen,
            FromCPsrA,FromOplat,FromImm,ToApipe,ToDatIntBw,ToDatIntMb,ToDec2,
            ToCPsr,ToOplatB,ToOplatA,ToNGen,Fromctrl2A,ToReg,ToImm,
            FromDec2A,Ctrl3Alx, [screen FROM 0 FOR 6], report,evaluate)

      NGen(Dec1NG,FromNGen,NGDec1A,ToNGen, report)


      Dec2(ToDec2,FromDec2A,Dec1Dec2,Dec2Dec1A,FromDec2,Fromctrl2A,screen[7], report,evaluate)

:
