tecscde 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (237) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +12 -0
  3. data/.rubocop.yml +125 -0
  4. data/.rubocop_todo.yml +188 -0
  5. data/CHANGELOG.md +3 -0
  6. data/Gemfile +6 -0
  7. data/LICENSE +46 -0
  8. data/LICENSE.ja +32 -0
  9. data/README.ja.md +200 -0
  10. data/README.md +35 -0
  11. data/Rakefile +27 -0
  12. data/bin/tecscde +64 -0
  13. data/glade/tecscde-cell-property.glade +205 -0
  14. data/glade/tecscde-celltype-property.glade +172 -0
  15. data/glade/tecscde-celltype.glade +414 -0
  16. data/glade/tecscde-export.glade +161 -0
  17. data/glade/test-cell-plugin.rb +51 -0
  18. data/glade/test-cell-property.rb +35 -0
  19. data/glade/test-export.rb +35 -0
  20. data/glade/test-palette.rb +26 -0
  21. data/lib/tcflow.rb +148 -0
  22. data/lib/tecscde.rb +65 -0
  23. data/lib/tecscde/NewCell.png +0 -0
  24. data/lib/tecscde/SelectArrow.png +0 -0
  25. data/lib/tecscde/attr_tree_view.rb +253 -0
  26. data/lib/tecscde/cell_plugin_dialog.glade +294 -0
  27. data/lib/tecscde/cell_plugin_dialog.rb +89 -0
  28. data/lib/tecscde/celltype_tree_view.rb +105 -0
  29. data/lib/tecscde/change_set_control.rb +35 -0
  30. data/lib/tecscde/change_set_control/change_set.rb +32 -0
  31. data/lib/tecscde/change_set_control/change_set_manager.rb +62 -0
  32. data/lib/tecscde/command.rb +35 -0
  33. data/lib/tecscde/control.rb +491 -0
  34. data/lib/tecscde/highlighted_objects.rb +180 -0
  35. data/lib/tecscde/logger.rb +74 -0
  36. data/lib/tecscde/main_view_and_model.rb +80 -0
  37. data/lib/tecscde/palette.glade +553 -0
  38. data/lib/tecscde/palette.rb +174 -0
  39. data/lib/tecscde/preferences.glade +117 -0
  40. data/lib/tecscde/preferences.rb +44 -0
  41. data/lib/tecscde/tecs_model.rb +1137 -0
  42. data/lib/tecscde/tecs_model/hbar.rb +68 -0
  43. data/lib/tecscde/tecs_model/tm_c_port.rb +122 -0
  44. data/lib/tecscde/tecs_model/tm_c_port_array.rb +98 -0
  45. data/lib/tecscde/tecs_model/tm_cell.rb +496 -0
  46. data/lib/tecscde/tecs_model/tm_e_port.rb +126 -0
  47. data/lib/tecscde/tecs_model/tm_e_port_array.rb +78 -0
  48. data/lib/tecscde/tecs_model/tm_join.rb +293 -0
  49. data/lib/tecscde/tecs_model/tm_join_bar.rb +146 -0
  50. data/lib/tecscde/tecs_model/tm_port.rb +238 -0
  51. data/lib/tecscde/tecs_model/tm_port_array.rb +246 -0
  52. data/lib/tecscde/tecs_model/tm_region.rb +107 -0
  53. data/lib/tecscde/tecs_model/tm_uneditable.rb +68 -0
  54. data/lib/tecscde/tecs_model/vbar.rb +68 -0
  55. data/lib/tecscde/templates/_cell_info.cde.erb +15 -0
  56. data/lib/tecscde/templates/_join_info.cde.erb +28 -0
  57. data/lib/tecscde/templates/main.cde.erb +49 -0
  58. data/lib/tecscde/tm_object.rb +91 -0
  59. data/lib/tecscde/version.rb +4 -0
  60. data/lib/tecscde/view.rb +58 -0
  61. data/lib/tecscde/view/cairo_matrix.rb +90 -0
  62. data/lib/tecscde/view/canvas.rb +59 -0
  63. data/lib/tecscde/view/constants.rb +114 -0
  64. data/lib/tecscde/view/main_view.rb +1245 -0
  65. data/lib/tecsflow.rb +475 -0
  66. data/lib/tecsflow/C_parser.tab.rb +2471 -0
  67. data/lib/tecsflow/C_parser.y.rb +1087 -0
  68. data/lib/tecsflow/classes.rb +421 -0
  69. data/lib/tecsgen.rb +581 -0
  70. data/lib/tecsgen/core/C_parser.tab.rb +2477 -0
  71. data/lib/tecsgen/core/C_parser.y +1032 -0
  72. data/lib/tecsgen/core/bnf-deb.tab.rb +5193 -0
  73. data/lib/tecsgen/core/bnf.tab.rb +5193 -0
  74. data/lib/tecsgen/core/bnf.y +2211 -0
  75. data/lib/tecsgen/core/componentobj.rb +7901 -0
  76. data/lib/tecsgen/core/ctypes.rb +226 -0
  77. data/lib/tecsgen/core/expression.rb +1031 -0
  78. data/lib/tecsgen/core/gen_xml.rb +374 -0
  79. data/lib/tecsgen/core/generate.rb +5206 -0
  80. data/lib/tecsgen/core/location.rb +116 -0
  81. data/lib/tecsgen/core/messages.rb +101 -0
  82. data/lib/tecsgen/core/optimize.rb +456 -0
  83. data/lib/tecsgen/core/plugin.rb +332 -0
  84. data/lib/tecsgen/core/pluginModule.rb +165 -0
  85. data/lib/tecsgen/core/syntaxobj.rb +1234 -0
  86. data/lib/tecsgen/core/tecs_lang.rb +306 -0
  87. data/lib/tecsgen/core/tecsgen.rb +453 -0
  88. data/lib/tecsgen/core/tecsinfo.rb +860 -0
  89. data/lib/tecsgen/core/tool_info.rb +258 -0
  90. data/lib/tecsgen/core/types.rb +1632 -0
  91. data/lib/tecsgen/core/unjoin_plugin.rb +218 -0
  92. data/lib/tecsgen/core/value.rb +650 -0
  93. data/lib/tecsgen/messages/messages_console_en_US.rb +1171 -0
  94. data/lib/tecsgen/messages/messages_console_ja_JP.rb +1171 -0
  95. data/lib/tecsgen/messages/messages_file_en_US.rb +334 -0
  96. data/lib/tecsgen/messages/messages_file_ja_JP.rb +163 -0
  97. data/lib/tecsgen/plugin/ATK1AlarmPlugin.rb +196 -0
  98. data/lib/tecsgen/plugin/ATK1DelayTaskPlugin.rb +106 -0
  99. data/lib/tecsgen/plugin/ATK1EventPlugin.rb +147 -0
  100. data/lib/tecsgen/plugin/ATK1ISRPlugin.rb +174 -0
  101. data/lib/tecsgen/plugin/ATK1KernelPlugin.rb +287 -0
  102. data/lib/tecsgen/plugin/ATK1ResourcePlugin.rb +124 -0
  103. data/lib/tecsgen/plugin/ATK1TaskPlugin.rb +220 -0
  104. data/lib/tecsgen/plugin/C2TECSBridgePlugin.rb +210 -0
  105. data/lib/tecsgen/plugin/CellPlugin.rb +61 -0
  106. data/lib/tecsgen/plugin/CelltypePlugin.rb +72 -0
  107. data/lib/tecsgen/plugin/CompositePlugin.rb +66 -0
  108. data/lib/tecsgen/plugin/DomainPlugin.rb +89 -0
  109. data/lib/tecsgen/plugin/HRP2AlarmHandlerPlugin.rb +76 -0
  110. data/lib/tecsgen/plugin/HRP2Cache.rb +1 -0
  111. data/lib/tecsgen/plugin/HRP2CyclicHandlerPlugin.rb +75 -0
  112. data/lib/tecsgen/plugin/HRP2DataqueuePlugin.rb +68 -0
  113. data/lib/tecsgen/plugin/HRP2EventflagPlugin.rb +68 -0
  114. data/lib/tecsgen/plugin/HRP2FixedSizeMemoryPoolPlugin.rb +68 -0
  115. data/lib/tecsgen/plugin/HRP2HandlerPlugin.rb +117 -0
  116. data/lib/tecsgen/plugin/HRP2KernelObjectPlugin.rb +372 -0
  117. data/lib/tecsgen/plugin/HRP2ObjectPlugin.rb +94 -0
  118. data/lib/tecsgen/plugin/HRP2Plugin.rb +140 -0
  119. data/lib/tecsgen/plugin/HRP2PostHook.rb +111 -0
  120. data/lib/tecsgen/plugin/HRP2PriorityDataqueuePlugin.rb +66 -0
  121. data/lib/tecsgen/plugin/HRP2RPCPlugin.rb +319 -0
  122. data/lib/tecsgen/plugin/HRP2SVCPlugin.rb +473 -0
  123. data/lib/tecsgen/plugin/HRP2SemaphorePlugin.rb +67 -0
  124. data/lib/tecsgen/plugin/HRP2TaskPlugin.rb +200 -0
  125. data/lib/tecsgen/plugin/HRPHandlerPlugin.rb +125 -0
  126. data/lib/tecsgen/plugin/HRPKernelObjectManager.rb +72 -0
  127. data/lib/tecsgen/plugin/HRPKernelObjectPlugin.rb +333 -0
  128. data/lib/tecsgen/plugin/HRPObjectPlugin.rb +93 -0
  129. data/lib/tecsgen/plugin/HRPPlugin.rb +356 -0
  130. data/lib/tecsgen/plugin/HRPRPCPlugin.rb +407 -0
  131. data/lib/tecsgen/plugin/HRPSVCPlugin.rb +859 -0
  132. data/lib/tecsgen/plugin/HRPTaskPlugin.rb +107 -0
  133. data/lib/tecsgen/plugin/Mruby2CBridgePlugin.rb +86 -0
  134. data/lib/tecsgen/plugin/MrubyBridgeCellPlugin.rb +264 -0
  135. data/lib/tecsgen/plugin/MrubyBridgeCelltypePlugin.rb +293 -0
  136. data/lib/tecsgen/plugin/MrubyBridgeCompositePlugin.rb +49 -0
  137. data/lib/tecsgen/plugin/MrubyBridgePlugin.rb +67 -0
  138. data/lib/tecsgen/plugin/MrubyBridgeSignaturePlugin.rb +1307 -0
  139. data/lib/tecsgen/plugin/MrubyInfoBridgePlugin.rb +14 -0
  140. data/lib/tecsgen/plugin/MrubyInfoBridgeSignaturePlugin.rb +994 -0
  141. data/lib/tecsgen/plugin/MultiPlugin.rb +57 -0
  142. data/lib/tecsgen/plugin/NotifierPlugin.rb +1217 -0
  143. data/lib/tecsgen/plugin/OpaqueMarshalerPlugin.rb +81 -0
  144. data/lib/tecsgen/plugin/OpaqueRPCPlugin.rb +323 -0
  145. data/lib/tecsgen/plugin/RPCPlugin.rb +266 -0
  146. data/lib/tecsgen/plugin/RepeatCellPlugin.rb +166 -0
  147. data/lib/tecsgen/plugin/RepeatJoinPlugin.rb +130 -0
  148. data/lib/tecsgen/plugin/SharedOpaqueRPCPlugin.rb +357 -0
  149. data/lib/tecsgen/plugin/SharedRPCPlugin.rb +329 -0
  150. data/lib/tecsgen/plugin/SignaturePlugin.rb +77 -0
  151. data/lib/tecsgen/plugin/TECS2CBridgePlugin.rb +178 -0
  152. data/lib/tecsgen/plugin/TECSInfoPlugin.rb +280 -0
  153. data/lib/tecsgen/plugin/ThroughPlugin.rb +333 -0
  154. data/lib/tecsgen/plugin/TracePlugin.rb +484 -0
  155. data/lib/tecsgen/plugin/lib/GenHRP2Marshaler.rb +761 -0
  156. data/lib/tecsgen/plugin/lib/GenOpaqueMarshaler.rb +1107 -0
  157. data/lib/tecsgen/plugin/lib/GenParamCopy.rb +365 -0
  158. data/lib/tecsgen/plugin/lib/GenTransparentMarshaler.rb +683 -0
  159. data/lib/tecsgen/plugin/lib/MrubyBridgeCelltypePluginModule.rb +283 -0
  160. data/lib/tecsgen/plugin/lib/MrubyBridgeSignaturePluginModule.rb +277 -0
  161. data/lib/tecsgen/version.rb +6 -0
  162. data/samples/FigureSamples/active/active.cde +104 -0
  163. data/samples/FigureSamples/active/active.cdl +20 -0
  164. data/samples/FigureSamples/active/active.pdf +0 -0
  165. data/samples/FigureSamples/active/active.png +0 -0
  166. data/samples/FigureSamples/active/gen/tmp_C_src.c +36 -0
  167. data/samples/FigureSamples/active/gen/tmp_cygwin_tecs.h +1908 -0
  168. data/samples/FigureSamples/active/gen/tmp_plugin_post_code.cdl +0 -0
  169. data/samples/FigureSamples/allocator/allocator-internal.png +0 -0
  170. data/samples/FigureSamples/allocator/allocator.cde +171 -0
  171. data/samples/FigureSamples/allocator/allocator.cdl +58 -0
  172. data/samples/FigureSamples/allocator/allocator.png +0 -0
  173. data/samples/FigureSamples/basic/Makefile +87 -0
  174. data/samples/FigureSamples/basic/SimpleSample-trace.cdl +50 -0
  175. data/samples/FigureSamples/basic/SimpleSample.cde +91 -0
  176. data/samples/FigureSamples/basic/SimpleSample.cdl +47 -0
  177. data/samples/FigureSamples/basic/basic.cde +93 -0
  178. data/samples/FigureSamples/basic/basic.cdl +46 -0
  179. data/samples/FigureSamples/basic/basic.png +0 -0
  180. data/samples/FigureSamples/callback/callback.cde +130 -0
  181. data/samples/FigureSamples/callback/callback.cdl +29 -0
  182. data/samples/FigureSamples/callback/callback.png +0 -0
  183. data/samples/FigureSamples/carray/carray.cde +144 -0
  184. data/samples/FigureSamples/carray/carray.cdl +38 -0
  185. data/samples/FigureSamples/carray/carray.png +0 -0
  186. data/samples/FigureSamples/cearray/cearray.cde +314 -0
  187. data/samples/FigureSamples/cearray/cearray.cdl +60 -0
  188. data/samples/FigureSamples/cearray/cearray.png +0 -0
  189. data/samples/FigureSamples/composite/composite-internal.png +0 -0
  190. data/samples/FigureSamples/composite/composite.cde +216 -0
  191. data/samples/FigureSamples/composite/composite.cdl +95 -0
  192. data/samples/FigureSamples/composite/composite.png +0 -0
  193. data/samples/FigureSamples/earray/earray.cde +142 -0
  194. data/samples/FigureSamples/earray/earray.cdl +38 -0
  195. data/samples/FigureSamples/earray/earray.png +0 -0
  196. data/samples/FigureSamples/join/Makefile +87 -0
  197. data/samples/FigureSamples/join/join.cde +132 -0
  198. data/samples/FigureSamples/join/join.cdl +40 -0
  199. data/samples/FigureSamples/join/join.png +0 -0
  200. data/samples/FigureSamples/relay/Makefile +99 -0
  201. data/samples/FigureSamples/relay/relay-internal.png +0 -0
  202. data/samples/FigureSamples/relay/relay.cde +284 -0
  203. data/samples/FigureSamples/relay/relay.cdl +52 -0
  204. data/samples/FigureSamples/relay/relay.png +0 -0
  205. data/samples/FigureSamples/rpc/Makefile +123 -0
  206. data/samples/FigureSamples/rpc/rpc-expand.png +0 -0
  207. data/samples/FigureSamples/rpc/rpc.cde +245 -0
  208. data/samples/FigureSamples/rpc/rpc.png +0 -0
  209. data/samples/FigureSamples/rpc/rpc_sample.cdl +53 -0
  210. data/samples/SimpleSample/Makefile +25 -0
  211. data/samples/SimpleSample/SimpleSample/Makefile +86 -0
  212. data/samples/SimpleSample/SimpleSample/Makefile-trace +91 -0
  213. data/samples/SimpleSample/SimpleSample/README.txt +106 -0
  214. data/samples/SimpleSample/SimpleSample/SimpleSample-trace.cdl +50 -0
  215. data/samples/SimpleSample/SimpleSample/SimpleSample.cdl +45 -0
  216. data/samples/SimpleSample/SimpleSample/src/tSample.c +77 -0
  217. data/samples/SimpleSample/SimpleSample/src/tSimple.c +48 -0
  218. data/samples/SimpleSample/SimpleSample/src/tecs-types.h +27 -0
  219. data/samples/SimpleSample/SimpleSampleOpaqueRPC/Makefile +51 -0
  220. data/samples/SimpleSample/SimpleSampleOpaqueRPC/Makefile-trace +91 -0
  221. data/samples/SimpleSample/SimpleSampleOpaqueRPC/README.txt +106 -0
  222. data/samples/SimpleSample/SimpleSampleOpaqueRPC/SimpleSample-trace.cdl +80 -0
  223. data/samples/SimpleSample/SimpleSampleOpaqueRPC/SimpleSample.cdl +77 -0
  224. data/samples/SimpleSample/SimpleSampleOpaqueRPC/rSample/Makefile +112 -0
  225. data/samples/SimpleSample/SimpleSampleOpaqueRPC/rSimple/Makefile +109 -0
  226. data/samples/SimpleSample/SimpleSampleOpaqueRPC/src/tSample.c +80 -0
  227. data/samples/SimpleSample/SimpleSampleOpaqueRPC/src/tSimple.c +47 -0
  228. data/samples/SimpleSample/SimpleSampleOpaqueRPC/src/tTaskMain.c +66 -0
  229. data/samples/SimpleSample/SimpleSampleOpaqueRPC/src/tecs-types.h +27 -0
  230. data/samples/SimpleSample/SimpleSampleTransparentRPC/Makefile +125 -0
  231. data/samples/SimpleSample/SimpleSampleTransparentRPC/Makefile-trace +130 -0
  232. data/samples/SimpleSample/SimpleSampleTransparentRPC/SimpleSample-trace.cdl +54 -0
  233. data/samples/SimpleSample/SimpleSampleTransparentRPC/SimpleSample.cdl +53 -0
  234. data/samples/SimpleSample/SimpleSampleTransparentRPC/src/tSample.c +80 -0
  235. data/samples/SimpleSample/SimpleSampleTransparentRPC/src/tSimple.c +54 -0
  236. data/tecscde.gemspec +41 -0
  237. metadata +353 -0
@@ -0,0 +1,95 @@
1
+ import_C( "tecs.h" );
2
+ import( <cygwin_kernel.cdl> );
3
+
4
+ signature sSig1 {
5
+ ER func1( [in]int32_t a );
6
+ int32_t func2( [in]int32_t a );
7
+ };
8
+
9
+ signature sSig2 {
10
+ ER func1( [in]int32_t a );
11
+ int32_t func2( [in]int32_t a );
12
+ };
13
+
14
+ signature sSig3 {
15
+ ER func1( [in]int32_t a );
16
+ int32_t func2( [in]int32_t a );
17
+ };
18
+
19
+ celltype tCell1 {
20
+ call sSig1 cCall;
21
+ entry sSig2 eEntry;
22
+ attr {
23
+ int32_t a = C_EXP( "VAL_$id$" );
24
+ };
25
+ var {
26
+ int32_t b = a;
27
+ };
28
+ };
29
+
30
+ celltype tCell2 {
31
+ call sSig2 cCall;
32
+ entry sSig3 eEntry;
33
+ attr {
34
+ int32_t a;
35
+ int32_t b = 10;
36
+ };
37
+ var {
38
+ int32_t c[2] = { 1, 2 };
39
+ };
40
+ };
41
+
42
+ composite tComposite {
43
+
44
+ call sSig1 cCall1;
45
+ entry sSig3 eEntry;
46
+ attr {
47
+ int32_t a = 100;
48
+ int32_t b = C_EXP( "VAL_$id$" );
49
+ };
50
+
51
+ cell tCell1 cell1 {
52
+ a = composite.a;
53
+ cCall => composite.cCall1;
54
+ };
55
+
56
+ cell tCell2 cell2 {
57
+ a = composite.a;
58
+ b = composite.b;
59
+ cCall = cell1.eEntry;
60
+ };
61
+ composite.eEntry => cell2.eEntry;
62
+ };
63
+
64
+ celltype tCell_serv{
65
+ entry sSig1 eEntry;
66
+ attr {
67
+ int32_t a;
68
+ };
69
+ };
70
+
71
+ [singleton,active]
72
+ celltype tCell_clnt {
73
+ call sSig3 cCall;
74
+ attr {
75
+ int32_t a;
76
+ };
77
+ };
78
+
79
+ cell tCell_serv cell_serv{
80
+ a = 5;
81
+ };
82
+
83
+ cell tComposite compcell1 {
84
+ // a=10;
85
+ a = C_EXP( "VAL_$id$" );
86
+ cCall1 = cell_serv.eEntry;
87
+ };
88
+
89
+ cell tCell_clnt cell_clnt {
90
+ a = 30;
91
+ cCall = compcell1.eEntry;
92
+ };
93
+
94
+
95
+
@@ -0,0 +1,142 @@
1
+ __tool_info__ ("tecsgen") {
2
+ "tecscde_version" : "1.D.1.0",
3
+ "cde_format_version" : "0.5.0.0",
4
+ "save_date" : "2016-05-04T09:01:07+01:00",
5
+ "base_dir" : [
6
+ "C:/cygwin64/home/oyama/TECS/tecsgen/samples/FigureSamples/earray"
7
+ ],
8
+ "define_macro" : [
9
+
10
+ ],
11
+ "import_path" : [
12
+ ".",
13
+ "../../../test/cygwin"
14
+ ],
15
+ "direct_import" : [
16
+ "earray.cdl"
17
+ ]
18
+ }
19
+
20
+
21
+ /*************************************************
22
+ * TOOL INFORMATION FOR TECSCDE *
23
+ * This information is used by tecscde *
24
+ * please don't touch if you are not familiar *
25
+ ************************************************/
26
+ __tool_info__ ("tecscde") {
27
+ "paper" : {
28
+ "type" : "paper",
29
+ "size" : "A3",
30
+ "orientation" : "LANDSCAPE"
31
+ },
32
+ "cell_list" : [
33
+ { /** cell_list[ 0 ] **/
34
+ "type" : "cell_location",
35
+ "name" : "Cell3",
36
+ "location" : [ 104.0, 20.0, 25.0, 15.0 ],
37
+ "region" : "::",
38
+ "port_location" : [
39
+ {
40
+ "type" : "port_location",
41
+ "port_name" : "eEntry",
42
+ "subscript" : 0,
43
+ "edge" : "EDGE_LEFT",
44
+ "offset" : 4.0
45
+ },
46
+ {
47
+ "type" : "port_location",
48
+ "port_name" : "eEntry",
49
+ "subscript" : 1,
50
+ "edge" : "EDGE_LEFT",
51
+ "offset" : 8
52
+ }
53
+ ]
54
+ },
55
+ { /** cell_list[ 1 ] **/
56
+ "type" : "cell_location",
57
+ "name" : "Cell2",
58
+ "location" : [ 47.0, 32.0, 25.0, 15.0 ],
59
+ "region" : "::",
60
+ "port_location" : [
61
+ {
62
+ "type" : "port_location",
63
+ "port_name" : "cCall",
64
+ "edge" : "EDGE_RIGHT",
65
+ "offset" : 4.0
66
+ }
67
+ ]
68
+ },
69
+ { /** cell_list[ 2 ] **/
70
+ "type" : "cell_location",
71
+ "name" : "Cell1",
72
+ "location" : [ 47.0, 8.0, 25.0, 15.0 ],
73
+ "region" : "::",
74
+ "port_location" : [
75
+ {
76
+ "type" : "port_location",
77
+ "port_name" : "cCall",
78
+ "edge" : "EDGE_RIGHT",
79
+ "offset" : 4.0
80
+ }
81
+ ]
82
+ }
83
+ ],
84
+ "join_list" : [
85
+ { /** join_list[ 0 ] **/
86
+ "type" : "join_location",
87
+ "call_cell" : "Cell2",
88
+ "call_region" : "::",
89
+ "call_port" : "cCall",
90
+ "entry_cell" : "Cell3",
91
+ "entry_region": "::",
92
+ "entry_port" : "eEntry",
93
+ "entry_port_subscript" : 1,
94
+ "bar_list" : [
95
+ {
96
+ "type" : "HBar",
97
+ "position" : 82.0
98
+ }, {
99
+ "type" : "VBar",
100
+ "position" : 36.0
101
+ }, {
102
+ "type" : "HBar",
103
+ "position" : 92.0
104
+ }, {
105
+ "type" : "VBar",
106
+ "position" : 28.0
107
+ }, {
108
+ "type" : "HBar",
109
+ "position" : 104.0
110
+ }
111
+ ]
112
+ },
113
+ { /** join_list[ 1 ] **/
114
+ "type" : "join_location",
115
+ "call_cell" : "Cell1",
116
+ "call_region" : "::",
117
+ "call_port" : "cCall",
118
+ "entry_cell" : "Cell3",
119
+ "entry_region": "::",
120
+ "entry_port" : "eEntry",
121
+ "entry_port_subscript" : 0,
122
+ "bar_list" : [
123
+ {
124
+ "type" : "HBar",
125
+ "position" : 79.0
126
+ }, {
127
+ "type" : "VBar",
128
+ "position" : 12.0
129
+ }, {
130
+ "type" : "HBar",
131
+ "position" : 92.0
132
+ }, {
133
+ "type" : "VBar",
134
+ "position" : 24.0
135
+ }, {
136
+ "type" : "HBar",
137
+ "position" : 104.0
138
+ }
139
+ ]
140
+ }
141
+ ]
142
+ }
@@ -0,0 +1,38 @@
1
+ import( <cygwin_kernel.cdl> );
2
+
3
+ signature sSignature {
4
+ ER sayHello( [in]int32_t times );
5
+ ER howAreYou( [out,string(len)]char_t *buf, [in]int32_t len );
6
+ };
7
+
8
+ celltype tCelltype3 {
9
+ entry sSignature eEntry[];
10
+ };
11
+
12
+ celltype tCelltype2 {
13
+ call sSignature cCall;
14
+ };
15
+
16
+ celltype tCelltype1 {
17
+ call sSignature cCall;
18
+ };
19
+
20
+ cell tCelltype3 Cell3 {
21
+ };
22
+
23
+ cell tCelltype2 Cell2{
24
+ cCall = Cell3.eEntry[1];
25
+ };
26
+
27
+ cell tCelltype1 Cell1 {
28
+ cCall = Cell3.eEntry[0];
29
+ };
30
+
31
+ /*
32
+ cell tTask Task {
33
+ cBody = Simple.eBody;
34
+ priority = 11;
35
+ stackSize = 1024;
36
+ taskAttribute = C_EXP( "TA_ACT" );
37
+ };
38
+ */
@@ -0,0 +1,87 @@
1
+ #CYGPATH=../../cygwin
2
+ CYGPATH=$(TECSPATH)/../../test/cygwin
3
+ TARGET_BASE = SimpleSample
4
+ BASE_DIR = .
5
+ GEN_DIR = $(BASE_DIR)/gen
6
+ INCLUDES = -I $(BASE_DIR)/. -I $(BASE_DIR)/src -I $(BASE_DIR)/gen -I $(CYGPATH) -I $(TECSPATH) -I $(TECSPATH)/mruby -I $(TECSPATH)/posix -I $(TECSPATH)/rpc -I $(GEN_DIR)
7
+ DEFINES =
8
+
9
+ # end of fixed variable (unchangeable by config or plugin)
10
+ #default C Compiler
11
+ CC = gcc
12
+
13
+ #default C Compiler options
14
+ CFLAGS = $(INCLUDES) $(DEFINES) -D "Inline=static inline"
15
+
16
+ #default Liknker
17
+ LD = gcc
18
+
19
+ #default Liknker Options
20
+ LDFLAGS = -lpthread
21
+
22
+ #default srource directory
23
+ SRC_DIR = $(BASE_DIR)/src
24
+
25
+ #default target name
26
+ TARGET = $(TARGET_BASE).exe
27
+
28
+ #default TECS generator
29
+ TECSGEN_EXE = tecsgen
30
+
31
+ #Time Stamp
32
+ TIMESTAMP = tecsgen.timestamp
33
+
34
+ #default relocatable object (.o) directory
35
+ _TECS_OBJ_DIR = $(GEN_DIR)/
36
+
37
+
38
+
39
+ # Pre-tecsgen target
40
+ PRE_TECSGEN_TARGET =
41
+
42
+ # Post-tecsgen target
43
+ POST_TECSGEN_TARGET =
44
+
45
+ # vpath for C sources and headers
46
+ vpath %.c $(SRC_DIR) $(GEN_DIR) src gen $(CYGPATH) $(TECSPATH) $(TECSPATH)/mruby $(TECSPATH)/posix $(TECSPATH)/rpc
47
+ vpath %.h $(SRC_DIR) $(GEN_DIR) src gen $(CYGPATH) $(TECSPATH) $(TECSPATH)/mruby $(TECSPATH)/posix $(TECSPATH)/rpc
48
+
49
+ # Other objects (out of tecsgen)
50
+ OTHER_OBJS = # Add objects out of tecs care.
51
+ # OTHER_OBJS = $(_TECS_OBJ_DIR)vasyslog.o
52
+ # ¥ë¡¼¥ë #_MRUL_#
53
+ allall: tecs
54
+ make all # in order to include generated Makefile.tecsgen & Makefile.depend
55
+
56
+ all : $(TARGET)
57
+
58
+
59
+ # depend ¤ò include #_MDEP_#
60
+ -include $(GEN_DIR)/Makefile.tecsgen
61
+ -include $(GEN_DIR)/Makefile.depend
62
+
63
+ $(TARGET) : $(TIMESTAMP) $(CELLTYPE_COBJS) $(TECSGEN_COBJS) $(PLUGIN_COBJS) $(OTHER_OBJS)
64
+ $(LD) -o $(TARGET) $(TECSGEN_COBJS) $(CELLTYPE_COBJS) $(PLUGIN_COBJS) $(OTHER_OBJS) $(LDFLAGS)
65
+ clean :
66
+ rm -f $(CELLTYPE_COBJS) $(TECSGEN_COBJS) $(PLUGIN_COBJS) $(OTHER_OBJS) $(TARGET) $(TIMESTAMP)
67
+ rm -rf $(GEN_DIR)
68
+
69
+ tecs : $(PRE_TECSGEN_TARGET) $(TIMESTAMP) $(POST_TECSGEN_TARGET)
70
+
71
+ $(TIMESTAMP) : $(TECS_IMPORTS)
72
+ $(TECSGEN_EXE) -k euc -I src -I gen -I $(CYGPATH) -I $(TECSPATH) SimpleSample.cdl
73
+ touch $(TIMESTAMP)
74
+
75
+ # generic target for objs
76
+ $(_TECS_OBJ_DIR)%.o : %.c
77
+ $(CC) -c $(CFLAGS) -o $@ $<
78
+
79
+ $(_TECS_OBJ_DIR)tTask.o : tTask.c
80
+ $(CC) -c $(CFLAGS) -o $@ $<
81
+
82
+ $(_TECS_OBJ_DIR)tSample.o : tSample.c
83
+ $(CC) -c $(CFLAGS) -o $@ $<
84
+
85
+ $(_TECS_OBJ_DIR)tSimple.o : tSimple.c
86
+ $(CC) -c $(CFLAGS) -o $@ $<
87
+
@@ -0,0 +1,132 @@
1
+ __tool_info__ ("tecsgen") {
2
+ "tecscde_version" : "1.D.1.0",
3
+ "cde_format_version" : "0.5.0.0",
4
+ "save_date" : "2016-05-04T09:01:31+01:00",
5
+ "base_dir" : [
6
+ "C:/cygwin64/home/oyama/TECS/tecsgen/samples/FigureSamples/join"
7
+ ],
8
+ "define_macro" : [
9
+
10
+ ],
11
+ "import_path" : [
12
+ ".",
13
+ "../../../test/cygwin"
14
+ ],
15
+ "direct_import" : [
16
+ "join.cdl"
17
+ ]
18
+ }
19
+
20
+
21
+ /*************************************************
22
+ * TOOL INFORMATION FOR TECSCDE *
23
+ * This information is used by tecscde *
24
+ * please don't touch if you are not familiar *
25
+ ************************************************/
26
+ __tool_info__ ("tecscde") {
27
+ "paper" : {
28
+ "type" : "paper",
29
+ "size" : "A3",
30
+ "orientation" : "LANDSCAPE"
31
+ },
32
+ "cell_list" : [
33
+ { /** cell_list[ 0 ] **/
34
+ "type" : "cell_location",
35
+ "name" : "Cell3",
36
+ "location" : [ 124.0, 16.0, 25.0, 15.0 ],
37
+ "region" : "::",
38
+ "port_location" : [
39
+ {
40
+ "type" : "port_location",
41
+ "port_name" : "eEntry",
42
+ "edge" : "EDGE_LEFT",
43
+ "offset" : 4.0
44
+ }
45
+ ]
46
+ },
47
+ { /** cell_list[ 1 ] **/
48
+ "type" : "cell_location",
49
+ "name" : "Cell2",
50
+ "location" : [ 64.0, 30.0, 25.0, 15.0 ],
51
+ "region" : "::",
52
+ "port_location" : [
53
+ {
54
+ "type" : "port_location",
55
+ "port_name" : "cCall",
56
+ "edge" : "EDGE_RIGHT",
57
+ "offset" : 4.0
58
+ }
59
+ ]
60
+ },
61
+ { /** cell_list[ 2 ] **/
62
+ "type" : "cell_location",
63
+ "name" : "Cell1",
64
+ "location" : [ 63.0, 5.0, 25.0, 15.0 ],
65
+ "region" : "::",
66
+ "port_location" : [
67
+ {
68
+ "type" : "port_location",
69
+ "port_name" : "cCall",
70
+ "edge" : "EDGE_RIGHT",
71
+ "offset" : 4.0
72
+ }
73
+ ]
74
+ }
75
+ ],
76
+ "join_list" : [
77
+ { /** join_list[ 0 ] **/
78
+ "type" : "join_location",
79
+ "call_cell" : "Cell2",
80
+ "call_region" : "::",
81
+ "call_port" : "cCall",
82
+ "entry_cell" : "Cell3",
83
+ "entry_region": "::",
84
+ "entry_port" : "eEntry",
85
+ "bar_list" : [
86
+ {
87
+ "type" : "HBar",
88
+ "position" : 99.0
89
+ }, {
90
+ "type" : "VBar",
91
+ "position" : 20.0
92
+ }, {
93
+ "type" : "HBar",
94
+ "position" : 114.0
95
+ }, {
96
+ "type" : "VBar",
97
+ "position" : 20.0
98
+ }, {
99
+ "type" : "HBar",
100
+ "position" : 124.0
101
+ }
102
+ ]
103
+ },
104
+ { /** join_list[ 1 ] **/
105
+ "type" : "join_location",
106
+ "call_cell" : "Cell1",
107
+ "call_region" : "::",
108
+ "call_port" : "cCall",
109
+ "entry_cell" : "Cell3",
110
+ "entry_region": "::",
111
+ "entry_port" : "eEntry",
112
+ "bar_list" : [
113
+ {
114
+ "type" : "HBar",
115
+ "position" : 99.0
116
+ }, {
117
+ "type" : "VBar",
118
+ "position" : 20.0
119
+ }, {
120
+ "type" : "HBar",
121
+ "position" : 114.0
122
+ }, {
123
+ "type" : "VBar",
124
+ "position" : 20.0
125
+ }, {
126
+ "type" : "HBar",
127
+ "position" : 124.0
128
+ }
129
+ ]
130
+ }
131
+ ]
132
+ }