Advertisement
ortem_kats

Untitled

Apr 26th, 2020
2,666
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Modelling
  2. NewFU={Mnemo="Gant" FUType=FUGant}
  3. NewFU={Mnemo="Eventser" FUType=FUEventser}
  4. NewFU={Mnemo="Scheduler" FUType=FUScheduler}
  5. NewFU={Mnemo="Mul1" FUType=FUStreamFloatAlu}
  6.  
  7. Eventser.CurrentTimePointPopMk=Gant.CurrentTimeRefSet
  8.  
  9. Eventser.ContextPopMk=Scheduler.EventserContextSet
  10.  
  11. Scheduler.ContextPopMk=Mul1.SchedulerContextSet
  12.  
  13. Eventser.OutProgSet={Eventser.EventCapsPopMk=Gant.EventSet}
  14.  
  15. Eventser.EventRequestProgSet={Eventser.EventRequestCapsPopMk=Gant.OperandsSet}
  16.  
  17. Eventser.FinProgSet={Gant.Draw Console.LnOut="Время выполнения программы: " Eventser.CurrentTimePointPopMk=Console.Out Console.LnOut="Коэффициент параллелизма: " Eventser.ParallelFactorPopMk=Console.LnOut}
  18.  
  19. Scheduler.NCoresSet=3 // 1 - ; 2 - ; 3 - ; 4 - ; 5 - ; 6 - ;
  20.  
  21. Mul1.SubTimeSet=2
  22. Mul1.MulTimeSet=9
  23. Mul1.DivTimeSet=10
  24. Mul1.RegLoadTimeSet=0.2
  25. ContextTemplate=nil
  26. Mul1.ManualModeSet=true
  27. Mul1.ContextPop=ContextTemplate
  28.  
  29. NewFU={Mnemo="Mul2" FUType=ContextTemplate}
  30. NewFU={Mnemo="Mul3" FUType=ContextTemplate}
  31. NewFU={Mnemo="Mul4" FUType=ContextTemplate}
  32. NewFU={Mnemo="Mul5" FUType=ContextTemplate}
  33. NewFU={Mnemo="Mul6" FUType=ContextTemplate}
  34. NewFU={Mnemo="Mul7" FUType=ContextTemplate}
  35. NewFU={Mnemo="Mul8" FUType=ContextTemplate}
  36. NewFU={Mnemo="Mul9" FUType=ContextTemplate}
  37. NewFU={Mnemo="Mul10" FUType=ContextTemplate}
  38. NewFU={Mnemo="Mul11" FUType=ContextTemplate}
  39. NewFU={Mnemo="Mul12" FUType=ContextTemplate}
  40. NewFU={Mnemo="Mul13" FUType=ContextTemplate}
  41. NewFU={Mnemo="Mul14" FUType=ContextTemplate}
  42. NewFU={Mnemo="Sum1" FUType=ContextTemplate}
  43. NewFU={Mnemo="Sum2" FUType=ContextTemplate}
  44. NewFU={Mnemo="Div1" FUType=ContextTemplate}
  45. NewFU={Mnemo="Div2" FUType=ContextTemplate}
  46. NewFU={Mnemo="Div3" FUType=ContextTemplate}
  47. NewFU={Mnemo="Div4" FUType=ContextTemplate}
  48.  
  49. a#14.77
  50. b#29.5
  51. H#5
  52. R#7
  53. D#14
  54. S#154
  55.  
  56. \\Описание пересылок данных
  57. Mul1.ReceiverMkSet=Mul5.Mul
  58. Mul2.ReceiverMkSet=Mul10.Mul
  59. Mul2.ReceiverMkSet=Sum2.Sub2
  60. Mul3.ReceiverMkSet=Div1.Div2
  61. Mul3.ReceiverMkSet=Div2.Div2
  62. Mul3.ReceiverMkSet=Div4.Div2
  63. Mul4.ReceiverMkSet=Mul11.Mul
  64. Mul4.ReceiverMkSet=Sum2.Sub1
  65. Mul5.ReceiverMkSet=Mul7.Mul
  66. Mul6.ReceiverMkSet=Div1.Div1
  67. Mul8.ReceiverMkSet=Div3.Div1
  68. Mul10.ReceiverMkSet=Mul6.Mul
  69. Mul10.ReceiverMkSet=Sum1.Sub2
  70. Mul11.ReceiverMkSet=Sum1.Sub1
  71. Mul13.ReceiverMkSet=Mul9.Mul
  72. Mul14.ReceiverMkSet=Div4.Div1
  73. Sum1.ReceiverMkSet=Div2.Div1
  74. Sum2.ReceiverMkSet=Mul14.Mul
  75. Div3.ReceiverMkSet=Mul13.Mul
  76.  
  77. Mul9.ReceiverMkSet=Console.LnOut
  78. Mul7.ReceiverMkSet=Console.LnOut
  79. Mul12.ReceiverMkSet=Console.LnOut
  80. Div1.ReceiverMkSet=Console.LnOut
  81. Div4.ReceiverMkSet=Console.LnOut
  82. Div2.ReceiverMkSet=Console.LnOut
  83.  
  84. Eventser.EventWaitSet={TimeAtr=0 Mk={Mul5.Mul=pi}}
  85. Eventser.EventWaitSet={TimeAtr=0 Mk={Mul3.Mul=pi}}
  86. Eventser.EventWaitSet={TimeAtr=0 Mk={Mul9.Mul=pi}}
  87. Eventser.EventWaitSet={TimeAtr=0 Mk={Mul1.Mul=R}}
  88. Eventser.EventWaitSet={TimeAtr=0 Mk={Mul1.Mul=R}}
  89. Eventser.EventWaitSet={TimeAtr=0 Mk={Mul8.Mul=D}}
  90. Eventser.EventWaitSet={TimeAtr=0 Mk={Mul8.Mul=D}}
  91. Eventser.EventWaitSet={TimeAtr=0 Mk={Mul7.Mul=H}}
  92. Eventser.EventWaitSet={TimeAtr=0 Mk={Mul12.Mul=H}}
  93. Eventser.EventWaitSet={TimeAtr=0 Mk={Mul13.Mul=H}}
  94. Eventser.EventWaitSet={TimeAtr=0 Mk={Mul12.Mul=S}}
  95. Eventser.EventWaitSet={TimeAtr=0 Mk={Mul6.Mul=3}}
  96. Eventser.EventWaitSet={TimeAtr=0 Mk={Mul2.Mul=a}}
  97. Eventser.EventWaitSet={TimeAtr=0 Mk={Mul2.Mul=a}}
  98. Eventser.EventWaitSet={TimeAtr=0 Mk={Mul10.Mul=a}}
  99. Eventser.EventWaitSet={TimeAtr=0 Mk={Mul11.Mul=a}}
  100. Eventser.EventWaitSet={TimeAtr=0 Mk={Mul14.Mul=a}}
  101. Eventser.EventWaitSet={TimeAtr=0 Mk={Mul3.Mul=4}}
  102. Eventser.EventWaitSet={TimeAtr=0 Mk={Div3.Div2=4}}
  103. Eventser.EventWaitSet={TimeAtr=0 Mk={Mul4.Mul=b}}
  104. Eventser.EventWaitSet={TimeAtr=0 Mk={Mul4.Mul=b}}
  105.  
  106. Eventser.Start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement