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.
- checksums.yaml +7 -0
- data/.gitignore +12 -0
- data/.rubocop.yml +125 -0
- data/.rubocop_todo.yml +188 -0
- data/CHANGELOG.md +3 -0
- data/Gemfile +6 -0
- data/LICENSE +46 -0
- data/LICENSE.ja +32 -0
- data/README.ja.md +200 -0
- data/README.md +35 -0
- data/Rakefile +27 -0
- data/bin/tecscde +64 -0
- data/glade/tecscde-cell-property.glade +205 -0
- data/glade/tecscde-celltype-property.glade +172 -0
- data/glade/tecscde-celltype.glade +414 -0
- data/glade/tecscde-export.glade +161 -0
- data/glade/test-cell-plugin.rb +51 -0
- data/glade/test-cell-property.rb +35 -0
- data/glade/test-export.rb +35 -0
- data/glade/test-palette.rb +26 -0
- data/lib/tcflow.rb +148 -0
- data/lib/tecscde.rb +65 -0
- data/lib/tecscde/NewCell.png +0 -0
- data/lib/tecscde/SelectArrow.png +0 -0
- data/lib/tecscde/attr_tree_view.rb +253 -0
- data/lib/tecscde/cell_plugin_dialog.glade +294 -0
- data/lib/tecscde/cell_plugin_dialog.rb +89 -0
- data/lib/tecscde/celltype_tree_view.rb +105 -0
- data/lib/tecscde/change_set_control.rb +35 -0
- data/lib/tecscde/change_set_control/change_set.rb +32 -0
- data/lib/tecscde/change_set_control/change_set_manager.rb +62 -0
- data/lib/tecscde/command.rb +35 -0
- data/lib/tecscde/control.rb +491 -0
- data/lib/tecscde/highlighted_objects.rb +180 -0
- data/lib/tecscde/logger.rb +74 -0
- data/lib/tecscde/main_view_and_model.rb +80 -0
- data/lib/tecscde/palette.glade +553 -0
- data/lib/tecscde/palette.rb +174 -0
- data/lib/tecscde/preferences.glade +117 -0
- data/lib/tecscde/preferences.rb +44 -0
- data/lib/tecscde/tecs_model.rb +1137 -0
- data/lib/tecscde/tecs_model/hbar.rb +68 -0
- data/lib/tecscde/tecs_model/tm_c_port.rb +122 -0
- data/lib/tecscde/tecs_model/tm_c_port_array.rb +98 -0
- data/lib/tecscde/tecs_model/tm_cell.rb +496 -0
- data/lib/tecscde/tecs_model/tm_e_port.rb +126 -0
- data/lib/tecscde/tecs_model/tm_e_port_array.rb +78 -0
- data/lib/tecscde/tecs_model/tm_join.rb +293 -0
- data/lib/tecscde/tecs_model/tm_join_bar.rb +146 -0
- data/lib/tecscde/tecs_model/tm_port.rb +238 -0
- data/lib/tecscde/tecs_model/tm_port_array.rb +246 -0
- data/lib/tecscde/tecs_model/tm_region.rb +107 -0
- data/lib/tecscde/tecs_model/tm_uneditable.rb +68 -0
- data/lib/tecscde/tecs_model/vbar.rb +68 -0
- data/lib/tecscde/templates/_cell_info.cde.erb +15 -0
- data/lib/tecscde/templates/_join_info.cde.erb +28 -0
- data/lib/tecscde/templates/main.cde.erb +49 -0
- data/lib/tecscde/tm_object.rb +91 -0
- data/lib/tecscde/version.rb +4 -0
- data/lib/tecscde/view.rb +58 -0
- data/lib/tecscde/view/cairo_matrix.rb +90 -0
- data/lib/tecscde/view/canvas.rb +59 -0
- data/lib/tecscde/view/constants.rb +114 -0
- data/lib/tecscde/view/main_view.rb +1245 -0
- data/lib/tecsflow.rb +475 -0
- data/lib/tecsflow/C_parser.tab.rb +2471 -0
- data/lib/tecsflow/C_parser.y.rb +1087 -0
- data/lib/tecsflow/classes.rb +421 -0
- data/lib/tecsgen.rb +581 -0
- data/lib/tecsgen/core/C_parser.tab.rb +2477 -0
- data/lib/tecsgen/core/C_parser.y +1032 -0
- data/lib/tecsgen/core/bnf-deb.tab.rb +5193 -0
- data/lib/tecsgen/core/bnf.tab.rb +5193 -0
- data/lib/tecsgen/core/bnf.y +2211 -0
- data/lib/tecsgen/core/componentobj.rb +7901 -0
- data/lib/tecsgen/core/ctypes.rb +226 -0
- data/lib/tecsgen/core/expression.rb +1031 -0
- data/lib/tecsgen/core/gen_xml.rb +374 -0
- data/lib/tecsgen/core/generate.rb +5206 -0
- data/lib/tecsgen/core/location.rb +116 -0
- data/lib/tecsgen/core/messages.rb +101 -0
- data/lib/tecsgen/core/optimize.rb +456 -0
- data/lib/tecsgen/core/plugin.rb +332 -0
- data/lib/tecsgen/core/pluginModule.rb +165 -0
- data/lib/tecsgen/core/syntaxobj.rb +1234 -0
- data/lib/tecsgen/core/tecs_lang.rb +306 -0
- data/lib/tecsgen/core/tecsgen.rb +453 -0
- data/lib/tecsgen/core/tecsinfo.rb +860 -0
- data/lib/tecsgen/core/tool_info.rb +258 -0
- data/lib/tecsgen/core/types.rb +1632 -0
- data/lib/tecsgen/core/unjoin_plugin.rb +218 -0
- data/lib/tecsgen/core/value.rb +650 -0
- data/lib/tecsgen/messages/messages_console_en_US.rb +1171 -0
- data/lib/tecsgen/messages/messages_console_ja_JP.rb +1171 -0
- data/lib/tecsgen/messages/messages_file_en_US.rb +334 -0
- data/lib/tecsgen/messages/messages_file_ja_JP.rb +163 -0
- data/lib/tecsgen/plugin/ATK1AlarmPlugin.rb +196 -0
- data/lib/tecsgen/plugin/ATK1DelayTaskPlugin.rb +106 -0
- data/lib/tecsgen/plugin/ATK1EventPlugin.rb +147 -0
- data/lib/tecsgen/plugin/ATK1ISRPlugin.rb +174 -0
- data/lib/tecsgen/plugin/ATK1KernelPlugin.rb +287 -0
- data/lib/tecsgen/plugin/ATK1ResourcePlugin.rb +124 -0
- data/lib/tecsgen/plugin/ATK1TaskPlugin.rb +220 -0
- data/lib/tecsgen/plugin/C2TECSBridgePlugin.rb +210 -0
- data/lib/tecsgen/plugin/CellPlugin.rb +61 -0
- data/lib/tecsgen/plugin/CelltypePlugin.rb +72 -0
- data/lib/tecsgen/plugin/CompositePlugin.rb +66 -0
- data/lib/tecsgen/plugin/DomainPlugin.rb +89 -0
- data/lib/tecsgen/plugin/HRP2AlarmHandlerPlugin.rb +76 -0
- data/lib/tecsgen/plugin/HRP2Cache.rb +1 -0
- data/lib/tecsgen/plugin/HRP2CyclicHandlerPlugin.rb +75 -0
- data/lib/tecsgen/plugin/HRP2DataqueuePlugin.rb +68 -0
- data/lib/tecsgen/plugin/HRP2EventflagPlugin.rb +68 -0
- data/lib/tecsgen/plugin/HRP2FixedSizeMemoryPoolPlugin.rb +68 -0
- data/lib/tecsgen/plugin/HRP2HandlerPlugin.rb +117 -0
- data/lib/tecsgen/plugin/HRP2KernelObjectPlugin.rb +372 -0
- data/lib/tecsgen/plugin/HRP2ObjectPlugin.rb +94 -0
- data/lib/tecsgen/plugin/HRP2Plugin.rb +140 -0
- data/lib/tecsgen/plugin/HRP2PostHook.rb +111 -0
- data/lib/tecsgen/plugin/HRP2PriorityDataqueuePlugin.rb +66 -0
- data/lib/tecsgen/plugin/HRP2RPCPlugin.rb +319 -0
- data/lib/tecsgen/plugin/HRP2SVCPlugin.rb +473 -0
- data/lib/tecsgen/plugin/HRP2SemaphorePlugin.rb +67 -0
- data/lib/tecsgen/plugin/HRP2TaskPlugin.rb +200 -0
- data/lib/tecsgen/plugin/HRPHandlerPlugin.rb +125 -0
- data/lib/tecsgen/plugin/HRPKernelObjectManager.rb +72 -0
- data/lib/tecsgen/plugin/HRPKernelObjectPlugin.rb +333 -0
- data/lib/tecsgen/plugin/HRPObjectPlugin.rb +93 -0
- data/lib/tecsgen/plugin/HRPPlugin.rb +356 -0
- data/lib/tecsgen/plugin/HRPRPCPlugin.rb +407 -0
- data/lib/tecsgen/plugin/HRPSVCPlugin.rb +859 -0
- data/lib/tecsgen/plugin/HRPTaskPlugin.rb +107 -0
- data/lib/tecsgen/plugin/Mruby2CBridgePlugin.rb +86 -0
- data/lib/tecsgen/plugin/MrubyBridgeCellPlugin.rb +264 -0
- data/lib/tecsgen/plugin/MrubyBridgeCelltypePlugin.rb +293 -0
- data/lib/tecsgen/plugin/MrubyBridgeCompositePlugin.rb +49 -0
- data/lib/tecsgen/plugin/MrubyBridgePlugin.rb +67 -0
- data/lib/tecsgen/plugin/MrubyBridgeSignaturePlugin.rb +1307 -0
- data/lib/tecsgen/plugin/MrubyInfoBridgePlugin.rb +14 -0
- data/lib/tecsgen/plugin/MrubyInfoBridgeSignaturePlugin.rb +994 -0
- data/lib/tecsgen/plugin/MultiPlugin.rb +57 -0
- data/lib/tecsgen/plugin/NotifierPlugin.rb +1217 -0
- data/lib/tecsgen/plugin/OpaqueMarshalerPlugin.rb +81 -0
- data/lib/tecsgen/plugin/OpaqueRPCPlugin.rb +323 -0
- data/lib/tecsgen/plugin/RPCPlugin.rb +266 -0
- data/lib/tecsgen/plugin/RepeatCellPlugin.rb +166 -0
- data/lib/tecsgen/plugin/RepeatJoinPlugin.rb +130 -0
- data/lib/tecsgen/plugin/SharedOpaqueRPCPlugin.rb +357 -0
- data/lib/tecsgen/plugin/SharedRPCPlugin.rb +329 -0
- data/lib/tecsgen/plugin/SignaturePlugin.rb +77 -0
- data/lib/tecsgen/plugin/TECS2CBridgePlugin.rb +178 -0
- data/lib/tecsgen/plugin/TECSInfoPlugin.rb +280 -0
- data/lib/tecsgen/plugin/ThroughPlugin.rb +333 -0
- data/lib/tecsgen/plugin/TracePlugin.rb +484 -0
- data/lib/tecsgen/plugin/lib/GenHRP2Marshaler.rb +761 -0
- data/lib/tecsgen/plugin/lib/GenOpaqueMarshaler.rb +1107 -0
- data/lib/tecsgen/plugin/lib/GenParamCopy.rb +365 -0
- data/lib/tecsgen/plugin/lib/GenTransparentMarshaler.rb +683 -0
- data/lib/tecsgen/plugin/lib/MrubyBridgeCelltypePluginModule.rb +283 -0
- data/lib/tecsgen/plugin/lib/MrubyBridgeSignaturePluginModule.rb +277 -0
- data/lib/tecsgen/version.rb +6 -0
- data/samples/FigureSamples/active/active.cde +104 -0
- data/samples/FigureSamples/active/active.cdl +20 -0
- data/samples/FigureSamples/active/active.pdf +0 -0
- data/samples/FigureSamples/active/active.png +0 -0
- data/samples/FigureSamples/active/gen/tmp_C_src.c +36 -0
- data/samples/FigureSamples/active/gen/tmp_cygwin_tecs.h +1908 -0
- data/samples/FigureSamples/active/gen/tmp_plugin_post_code.cdl +0 -0
- data/samples/FigureSamples/allocator/allocator-internal.png +0 -0
- data/samples/FigureSamples/allocator/allocator.cde +171 -0
- data/samples/FigureSamples/allocator/allocator.cdl +58 -0
- data/samples/FigureSamples/allocator/allocator.png +0 -0
- data/samples/FigureSamples/basic/Makefile +87 -0
- data/samples/FigureSamples/basic/SimpleSample-trace.cdl +50 -0
- data/samples/FigureSamples/basic/SimpleSample.cde +91 -0
- data/samples/FigureSamples/basic/SimpleSample.cdl +47 -0
- data/samples/FigureSamples/basic/basic.cde +93 -0
- data/samples/FigureSamples/basic/basic.cdl +46 -0
- data/samples/FigureSamples/basic/basic.png +0 -0
- data/samples/FigureSamples/callback/callback.cde +130 -0
- data/samples/FigureSamples/callback/callback.cdl +29 -0
- data/samples/FigureSamples/callback/callback.png +0 -0
- data/samples/FigureSamples/carray/carray.cde +144 -0
- data/samples/FigureSamples/carray/carray.cdl +38 -0
- data/samples/FigureSamples/carray/carray.png +0 -0
- data/samples/FigureSamples/cearray/cearray.cde +314 -0
- data/samples/FigureSamples/cearray/cearray.cdl +60 -0
- data/samples/FigureSamples/cearray/cearray.png +0 -0
- data/samples/FigureSamples/composite/composite-internal.png +0 -0
- data/samples/FigureSamples/composite/composite.cde +216 -0
- data/samples/FigureSamples/composite/composite.cdl +95 -0
- data/samples/FigureSamples/composite/composite.png +0 -0
- data/samples/FigureSamples/earray/earray.cde +142 -0
- data/samples/FigureSamples/earray/earray.cdl +38 -0
- data/samples/FigureSamples/earray/earray.png +0 -0
- data/samples/FigureSamples/join/Makefile +87 -0
- data/samples/FigureSamples/join/join.cde +132 -0
- data/samples/FigureSamples/join/join.cdl +40 -0
- data/samples/FigureSamples/join/join.png +0 -0
- data/samples/FigureSamples/relay/Makefile +99 -0
- data/samples/FigureSamples/relay/relay-internal.png +0 -0
- data/samples/FigureSamples/relay/relay.cde +284 -0
- data/samples/FigureSamples/relay/relay.cdl +52 -0
- data/samples/FigureSamples/relay/relay.png +0 -0
- data/samples/FigureSamples/rpc/Makefile +123 -0
- data/samples/FigureSamples/rpc/rpc-expand.png +0 -0
- data/samples/FigureSamples/rpc/rpc.cde +245 -0
- data/samples/FigureSamples/rpc/rpc.png +0 -0
- data/samples/FigureSamples/rpc/rpc_sample.cdl +53 -0
- data/samples/SimpleSample/Makefile +25 -0
- data/samples/SimpleSample/SimpleSample/Makefile +86 -0
- data/samples/SimpleSample/SimpleSample/Makefile-trace +91 -0
- data/samples/SimpleSample/SimpleSample/README.txt +106 -0
- data/samples/SimpleSample/SimpleSample/SimpleSample-trace.cdl +50 -0
- data/samples/SimpleSample/SimpleSample/SimpleSample.cdl +45 -0
- data/samples/SimpleSample/SimpleSample/src/tSample.c +77 -0
- data/samples/SimpleSample/SimpleSample/src/tSimple.c +48 -0
- data/samples/SimpleSample/SimpleSample/src/tecs-types.h +27 -0
- data/samples/SimpleSample/SimpleSampleOpaqueRPC/Makefile +51 -0
- data/samples/SimpleSample/SimpleSampleOpaqueRPC/Makefile-trace +91 -0
- data/samples/SimpleSample/SimpleSampleOpaqueRPC/README.txt +106 -0
- data/samples/SimpleSample/SimpleSampleOpaqueRPC/SimpleSample-trace.cdl +80 -0
- data/samples/SimpleSample/SimpleSampleOpaqueRPC/SimpleSample.cdl +77 -0
- data/samples/SimpleSample/SimpleSampleOpaqueRPC/rSample/Makefile +112 -0
- data/samples/SimpleSample/SimpleSampleOpaqueRPC/rSimple/Makefile +109 -0
- data/samples/SimpleSample/SimpleSampleOpaqueRPC/src/tSample.c +80 -0
- data/samples/SimpleSample/SimpleSampleOpaqueRPC/src/tSimple.c +47 -0
- data/samples/SimpleSample/SimpleSampleOpaqueRPC/src/tTaskMain.c +66 -0
- data/samples/SimpleSample/SimpleSampleOpaqueRPC/src/tecs-types.h +27 -0
- data/samples/SimpleSample/SimpleSampleTransparentRPC/Makefile +125 -0
- data/samples/SimpleSample/SimpleSampleTransparentRPC/Makefile-trace +130 -0
- data/samples/SimpleSample/SimpleSampleTransparentRPC/SimpleSample-trace.cdl +54 -0
- data/samples/SimpleSample/SimpleSampleTransparentRPC/SimpleSample.cdl +53 -0
- data/samples/SimpleSample/SimpleSampleTransparentRPC/src/tSample.c +80 -0
- data/samples/SimpleSample/SimpleSampleTransparentRPC/src/tSimple.c +54 -0
- data/tecscde.gemspec +41 -0
- metadata +353 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Simple な Sample
|
|
3
|
+
*
|
|
4
|
+
* +-------------+ +-------------+ +-------------+
|
|
5
|
+
* | | | | | |
|
|
6
|
+
* | tTask | sTaskBody | tSimple | sSample | tSample |
|
|
7
|
+
* | Task |-----------|> Simple |----------|> Sample |
|
|
8
|
+
* | |cTask eBody| |cCall eEnt| |
|
|
9
|
+
* | |Body | | | |
|
|
10
|
+
* +-------------+ +-------------+ +-------------+
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
// cygwin 用の簡易な型定義
|
|
15
|
+
import( <cygwin_kernel.cdl> );
|
|
16
|
+
// TECS 対応 TOPPERS/ASP ならば import( <kernel.cdl> ); でよい
|
|
17
|
+
|
|
18
|
+
signature sSample {
|
|
19
|
+
ER sayHello( [in]int32_t times );
|
|
20
|
+
ER howAreYou( [out,string(len)]char_t *buf, [in]int32_t len );
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
celltype tSample {
|
|
24
|
+
entry sSample eEnt;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
[singleton]
|
|
28
|
+
celltype tSimple {
|
|
29
|
+
call sSample cCall;
|
|
30
|
+
// entry sTaskBody eBody;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
cell tSample Sample {
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
cell tSimple Simple {
|
|
37
|
+
cCall = Sample.eEnt;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/*
|
|
41
|
+
cell tTask Task {
|
|
42
|
+
cBody = Simple.eBody;
|
|
43
|
+
priority = 11;
|
|
44
|
+
stackSize = 1024;
|
|
45
|
+
taskAttribute = C_EXP( "TA_ACT" );
|
|
46
|
+
};
|
|
47
|
+
*/
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
__tool_info__ ("tecsgen") {
|
|
2
|
+
"tecscde_version" : "1.D.1.0",
|
|
3
|
+
"cde_format_version" : "0.5.0.0",
|
|
4
|
+
"save_date" : "2016-05-04T07:56:27+01:00",
|
|
5
|
+
"base_dir" : [
|
|
6
|
+
"C:/cygwin64/home/oyama/TECS/tecsgen/samples/FigureSamples/basic",
|
|
7
|
+
"C:/cygwin64/home/oyama/TECS/tecsgen/test/samples/basic"
|
|
8
|
+
],
|
|
9
|
+
"define_macro" : [
|
|
10
|
+
|
|
11
|
+
],
|
|
12
|
+
"import_path" : [
|
|
13
|
+
".",
|
|
14
|
+
"../../../test/cygwin",
|
|
15
|
+
"../../cygwin/"
|
|
16
|
+
],
|
|
17
|
+
"direct_import" : [
|
|
18
|
+
"basic.cdl"
|
|
19
|
+
]
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
/*************************************************
|
|
24
|
+
* TOOL INFORMATION FOR TECSCDE *
|
|
25
|
+
* This information is used by tecscde *
|
|
26
|
+
* please don't touch if you are not familiar *
|
|
27
|
+
************************************************/
|
|
28
|
+
__tool_info__ ("tecscde") {
|
|
29
|
+
"paper" : {
|
|
30
|
+
"type" : "paper",
|
|
31
|
+
"size" : "A3",
|
|
32
|
+
"orientation" : "LANDSCAPE"
|
|
33
|
+
},
|
|
34
|
+
"cell_list" : [
|
|
35
|
+
{ /** cell_list[ 0 ] **/
|
|
36
|
+
"type" : "cell_location",
|
|
37
|
+
"name" : "Cell2",
|
|
38
|
+
"location" : [ 118.0, 10.0, 25.0, 15.0 ],
|
|
39
|
+
"region" : "::",
|
|
40
|
+
"port_location" : [
|
|
41
|
+
{
|
|
42
|
+
"type" : "port_location",
|
|
43
|
+
"port_name" : "eEntry",
|
|
44
|
+
"edge" : "EDGE_LEFT",
|
|
45
|
+
"offset" : 4.0
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
{ /** cell_list[ 1 ] **/
|
|
50
|
+
"type" : "cell_location",
|
|
51
|
+
"name" : "Cell1",
|
|
52
|
+
"location" : [ 65.0, 10.0, 25.0, 15.0 ],
|
|
53
|
+
"region" : "::",
|
|
54
|
+
"port_location" : [
|
|
55
|
+
{
|
|
56
|
+
"type" : "port_location",
|
|
57
|
+
"port_name" : "cCall",
|
|
58
|
+
"edge" : "EDGE_RIGHT",
|
|
59
|
+
"offset" : 4.0
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
"join_list" : [
|
|
65
|
+
{ /** join_list[ 0 ] **/
|
|
66
|
+
"type" : "join_location",
|
|
67
|
+
"call_cell" : "Cell1",
|
|
68
|
+
"call_region" : "::",
|
|
69
|
+
"call_port" : "cCall",
|
|
70
|
+
"entry_cell" : "Cell2",
|
|
71
|
+
"entry_region": "::",
|
|
72
|
+
"entry_port" : "eEntry",
|
|
73
|
+
"bar_list" : [
|
|
74
|
+
{
|
|
75
|
+
"type" : "HBar",
|
|
76
|
+
"position" : 100.0
|
|
77
|
+
}, {
|
|
78
|
+
"type" : "VBar",
|
|
79
|
+
"position" : 14.0
|
|
80
|
+
}, {
|
|
81
|
+
"type" : "HBar",
|
|
82
|
+
"position" : 108.0
|
|
83
|
+
}, {
|
|
84
|
+
"type" : "VBar",
|
|
85
|
+
"position" : 14.0
|
|
86
|
+
}, {
|
|
87
|
+
"type" : "HBar",
|
|
88
|
+
"position" : 118.0
|
|
89
|
+
}
|
|
90
|
+
]
|
|
91
|
+
}
|
|
92
|
+
]
|
|
93
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Simple な Sample
|
|
3
|
+
*
|
|
4
|
+
* +-------------+ +-------------+ +-------------+
|
|
5
|
+
* | | | | | |
|
|
6
|
+
* | tTask | sTaskBody | tSimple | sSample | tSample |
|
|
7
|
+
* | Task |-----------|> Simple |----------|> Sample |
|
|
8
|
+
* | |cTask eBody| |cCall eEnt| |
|
|
9
|
+
* | |Body | | | |
|
|
10
|
+
* +-------------+ +-------------+ +-------------+
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
// cygwin 用の簡易な型定義
|
|
15
|
+
import( <cygwin_kernel.cdl> );
|
|
16
|
+
// TECS 対応 TOPPERS/ASP ならば import( <kernel.cdl> ); でよい
|
|
17
|
+
|
|
18
|
+
signature sSignature {
|
|
19
|
+
ER sayHello( [in]int32_t times );
|
|
20
|
+
ER howAreYou( [out,string(len)]char_t *buf, [in]int32_t len );
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
celltype tCelltype2 {
|
|
24
|
+
entry sSignature eEntry;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
celltype tCelltype1 {
|
|
28
|
+
call sSignature cCall;
|
|
29
|
+
// entry sTaskBody eBody;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
cell tCelltype2 Cell2 {
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
cell tCelltype1 Cell1 {
|
|
36
|
+
cCall = Cell2.eEntry;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/*
|
|
40
|
+
cell tTask Task {
|
|
41
|
+
cBody = Simple.eBody;
|
|
42
|
+
priority = 11;
|
|
43
|
+
stackSize = 1024;
|
|
44
|
+
taskAttribute = C_EXP( "TA_ACT" );
|
|
45
|
+
};
|
|
46
|
+
*/
|
|
Binary file
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
__tool_info__ ("tecsgen") {
|
|
2
|
+
"tecscde_version" : "1.D.1.0",
|
|
3
|
+
"cde_format_version" : "0.5.0.0",
|
|
4
|
+
"save_date" : "2016-05-04T07:57:58+01:00",
|
|
5
|
+
"base_dir" : [
|
|
6
|
+
"C:/cygwin64/home/oyama/TECS/tecsgen/samples/FigureSamples/callback"
|
|
7
|
+
],
|
|
8
|
+
"define_macro" : [
|
|
9
|
+
|
|
10
|
+
],
|
|
11
|
+
"import_path" : [
|
|
12
|
+
".",
|
|
13
|
+
"../../../test/cygwin"
|
|
14
|
+
],
|
|
15
|
+
"direct_import" : [
|
|
16
|
+
"callback.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" : "Target",
|
|
36
|
+
"location" : [ 90.0, 9.0, 25.0, 15.0 ],
|
|
37
|
+
"region" : "::",
|
|
38
|
+
"port_location" : [
|
|
39
|
+
{
|
|
40
|
+
"type" : "port_location",
|
|
41
|
+
"port_name" : "cCallback",
|
|
42
|
+
"edge" : "EDGE_LEFT",
|
|
43
|
+
"offset" : 12.0
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"type" : "port_location",
|
|
47
|
+
"port_name" : "eEntry",
|
|
48
|
+
"edge" : "EDGE_LEFT",
|
|
49
|
+
"offset" : 4.0
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
{ /** cell_list[ 1 ] **/
|
|
54
|
+
"type" : "cell_location",
|
|
55
|
+
"name" : "Cell",
|
|
56
|
+
"location" : [ 31.0, 10.0, 25.0, 15.0 ],
|
|
57
|
+
"region" : "::",
|
|
58
|
+
"port_location" : [
|
|
59
|
+
{
|
|
60
|
+
"type" : "port_location",
|
|
61
|
+
"port_name" : "cCall",
|
|
62
|
+
"edge" : "EDGE_RIGHT",
|
|
63
|
+
"offset" : 3.0
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"type" : "port_location",
|
|
67
|
+
"port_name" : "eCallback",
|
|
68
|
+
"edge" : "EDGE_RIGHT",
|
|
69
|
+
"offset" : 11.0
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
}
|
|
73
|
+
],
|
|
74
|
+
"join_list" : [
|
|
75
|
+
{ /** join_list[ 0 ] **/
|
|
76
|
+
"type" : "join_location",
|
|
77
|
+
"call_cell" : "Target",
|
|
78
|
+
"call_region" : "::",
|
|
79
|
+
"call_port" : "cCallback",
|
|
80
|
+
"entry_cell" : "Cell",
|
|
81
|
+
"entry_region": "::",
|
|
82
|
+
"entry_port" : "eCallback",
|
|
83
|
+
"bar_list" : [
|
|
84
|
+
{
|
|
85
|
+
"type" : "HBar",
|
|
86
|
+
"position" : 80.0
|
|
87
|
+
}, {
|
|
88
|
+
"type" : "VBar",
|
|
89
|
+
"position" : 21.0
|
|
90
|
+
}, {
|
|
91
|
+
"type" : "HBar",
|
|
92
|
+
"position" : 66.0
|
|
93
|
+
}, {
|
|
94
|
+
"type" : "VBar",
|
|
95
|
+
"position" : 21.0
|
|
96
|
+
}, {
|
|
97
|
+
"type" : "HBar",
|
|
98
|
+
"position" : 56.0
|
|
99
|
+
}
|
|
100
|
+
]
|
|
101
|
+
},
|
|
102
|
+
{ /** join_list[ 1 ] **/
|
|
103
|
+
"type" : "join_location",
|
|
104
|
+
"call_cell" : "Cell",
|
|
105
|
+
"call_region" : "::",
|
|
106
|
+
"call_port" : "cCall",
|
|
107
|
+
"entry_cell" : "Target",
|
|
108
|
+
"entry_region": "::",
|
|
109
|
+
"entry_port" : "eEntry",
|
|
110
|
+
"bar_list" : [
|
|
111
|
+
{
|
|
112
|
+
"type" : "HBar",
|
|
113
|
+
"position" : 66.0
|
|
114
|
+
}, {
|
|
115
|
+
"type" : "VBar",
|
|
116
|
+
"position" : 13.0
|
|
117
|
+
}, {
|
|
118
|
+
"type" : "HBar",
|
|
119
|
+
"position" : 80.0
|
|
120
|
+
}, {
|
|
121
|
+
"type" : "VBar",
|
|
122
|
+
"position" : 13.0
|
|
123
|
+
}, {
|
|
124
|
+
"type" : "HBar",
|
|
125
|
+
"position" : 90.0
|
|
126
|
+
}
|
|
127
|
+
]
|
|
128
|
+
}
|
|
129
|
+
]
|
|
130
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import( "cygwin_kernel.cdl" );
|
|
2
|
+
|
|
3
|
+
signature sSignature {
|
|
4
|
+
void func(void);
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
[callback]
|
|
8
|
+
signature sCallback {
|
|
9
|
+
void func(void);
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
celltype tCelltype {
|
|
13
|
+
call sSignature cCall;
|
|
14
|
+
entry sCallback eCallback;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
celltype tTarget {
|
|
18
|
+
entry sSignature eEntry;
|
|
19
|
+
call sCallback cCallback;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
cell tTarget Target {
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
cell tCelltype Cell {
|
|
26
|
+
cCall = Target.eEntry;
|
|
27
|
+
eCallback <= Target.cCallback;
|
|
28
|
+
};
|
|
29
|
+
|
|
Binary file
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
__tool_info__ ("tecsgen") {
|
|
2
|
+
"tecscde_version" : "1.D.1.0",
|
|
3
|
+
"cde_format_version" : "0.5.0.0",
|
|
4
|
+
"save_date" : "2016-05-04T07:59:49+01:00",
|
|
5
|
+
"base_dir" : [
|
|
6
|
+
"C:/cygwin64/home/oyama/TECS/tecsgen/samples/FigureSamples/carray",
|
|
7
|
+
"C:/cygwin64/home/oyama/TECS/tecsgen/test/samples/carray"
|
|
8
|
+
],
|
|
9
|
+
"define_macro" : [
|
|
10
|
+
|
|
11
|
+
],
|
|
12
|
+
"import_path" : [
|
|
13
|
+
".",
|
|
14
|
+
"../../../test/cygwin",
|
|
15
|
+
"../../cygwin"
|
|
16
|
+
],
|
|
17
|
+
"direct_import" : [
|
|
18
|
+
"carray.cdl"
|
|
19
|
+
]
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
/*************************************************
|
|
24
|
+
* TOOL INFORMATION FOR TECSCDE *
|
|
25
|
+
* This information is used by tecscde *
|
|
26
|
+
* please don't touch if you are not familiar *
|
|
27
|
+
************************************************/
|
|
28
|
+
__tool_info__ ("tecscde") {
|
|
29
|
+
"paper" : {
|
|
30
|
+
"type" : "paper",
|
|
31
|
+
"size" : "A3",
|
|
32
|
+
"orientation" : "LANDSCAPE"
|
|
33
|
+
},
|
|
34
|
+
"cell_list" : [
|
|
35
|
+
{ /** cell_list[ 0 ] **/
|
|
36
|
+
"type" : "cell_location",
|
|
37
|
+
"name" : "Cell3",
|
|
38
|
+
"location" : [ 133.0, 43.0, 25.0, 15.0 ],
|
|
39
|
+
"region" : "::",
|
|
40
|
+
"port_location" : [
|
|
41
|
+
{
|
|
42
|
+
"type" : "port_location",
|
|
43
|
+
"port_name" : "eEntry",
|
|
44
|
+
"edge" : "EDGE_LEFT",
|
|
45
|
+
"offset" : 4.0
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
{ /** cell_list[ 1 ] **/
|
|
50
|
+
"type" : "cell_location",
|
|
51
|
+
"name" : "Cell2",
|
|
52
|
+
"location" : [ 133.0, 16.0, 25.0, 15.0 ],
|
|
53
|
+
"region" : "::",
|
|
54
|
+
"port_location" : [
|
|
55
|
+
{
|
|
56
|
+
"type" : "port_location",
|
|
57
|
+
"port_name" : "eEntry",
|
|
58
|
+
"edge" : "EDGE_LEFT",
|
|
59
|
+
"offset" : 4.0
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
},
|
|
63
|
+
{ /** cell_list[ 2 ] **/
|
|
64
|
+
"type" : "cell_location",
|
|
65
|
+
"name" : "Cell1",
|
|
66
|
+
"location" : [ 75.0, 27.0, 25.0, 15.0 ],
|
|
67
|
+
"region" : "::",
|
|
68
|
+
"port_location" : [
|
|
69
|
+
{
|
|
70
|
+
"type" : "port_location",
|
|
71
|
+
"port_name" : "cCall",
|
|
72
|
+
"subscript" : 0,
|
|
73
|
+
"edge" : "EDGE_RIGHT",
|
|
74
|
+
"offset" : 4.0
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"type" : "port_location",
|
|
78
|
+
"port_name" : "cCall",
|
|
79
|
+
"subscript" : 1,
|
|
80
|
+
"edge" : "EDGE_RIGHT",
|
|
81
|
+
"offset" : 8.0
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
],
|
|
86
|
+
"join_list" : [
|
|
87
|
+
{ /** join_list[ 0 ] **/
|
|
88
|
+
"type" : "join_location",
|
|
89
|
+
"call_cell" : "Cell1",
|
|
90
|
+
"call_region" : "::",
|
|
91
|
+
"call_port" : "cCall",
|
|
92
|
+
"call_port_subscript" : 0,
|
|
93
|
+
"entry_cell" : "Cell2",
|
|
94
|
+
"entry_region": "::",
|
|
95
|
+
"entry_port" : "eEntry",
|
|
96
|
+
"bar_list" : [
|
|
97
|
+
{
|
|
98
|
+
"type" : "HBar",
|
|
99
|
+
"position" : 110.0
|
|
100
|
+
}, {
|
|
101
|
+
"type" : "VBar",
|
|
102
|
+
"position" : 20.0
|
|
103
|
+
}, {
|
|
104
|
+
"type" : "HBar",
|
|
105
|
+
"position" : 123.0
|
|
106
|
+
}, {
|
|
107
|
+
"type" : "VBar",
|
|
108
|
+
"position" : 20.0
|
|
109
|
+
}, {
|
|
110
|
+
"type" : "HBar",
|
|
111
|
+
"position" : 133.0
|
|
112
|
+
}
|
|
113
|
+
]
|
|
114
|
+
},
|
|
115
|
+
{ /** join_list[ 1 ] **/
|
|
116
|
+
"type" : "join_location",
|
|
117
|
+
"call_cell" : "Cell1",
|
|
118
|
+
"call_region" : "::",
|
|
119
|
+
"call_port" : "cCall",
|
|
120
|
+
"call_port_subscript" : 1,
|
|
121
|
+
"entry_cell" : "Cell3",
|
|
122
|
+
"entry_region": "::",
|
|
123
|
+
"entry_port" : "eEntry",
|
|
124
|
+
"bar_list" : [
|
|
125
|
+
{
|
|
126
|
+
"type" : "HBar",
|
|
127
|
+
"position" : 110.0
|
|
128
|
+
}, {
|
|
129
|
+
"type" : "VBar",
|
|
130
|
+
"position" : 47.0
|
|
131
|
+
}, {
|
|
132
|
+
"type" : "HBar",
|
|
133
|
+
"position" : 123.0
|
|
134
|
+
}, {
|
|
135
|
+
"type" : "VBar",
|
|
136
|
+
"position" : 47.0
|
|
137
|
+
}, {
|
|
138
|
+
"type" : "HBar",
|
|
139
|
+
"position" : 133.0
|
|
140
|
+
}
|
|
141
|
+
]
|
|
142
|
+
}
|
|
143
|
+
]
|
|
144
|
+
}
|