OpenASIP  2.0
SimulateTriggerWrappers.icc
Go to the documentation of this file.
1 /*
2  Copyright (c) 2002-2009 Tampere University.
3 
4  This file is part of TTA-Based Codesign Environment (TCE).
5 
6  Permission is hereby granted, free of charge, to any person obtaining a
7  copy of this software and associated documentation files (the "Software"),
8  to deal in the Software without restriction, including without limitation
9  the rights to use, copy, modify, merge, publish, distribute, sublicense,
10  and/or sell copies of the Software, and to permit persons to whom the
11  Software is furnished to do so, subject to the following conditions:
12 
13  The above copyright notice and this permission notice shall be included in
14  all copies or substantial portions of the Software.
15 
16  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19  THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22  DEALINGS IN THE SOFTWARE.
23  */
24 inline static void
25 executeOperation(
26  OperationBehavior& behavior,
27  OperationContext& context, SimValue& arg0) {
28  SimValue* params[] = {&arg0};
29  behavior.simulateTrigger(params, context);
30 }
31 
32 inline static void
33 executeOperation(
34  OperationBehavior& behavior,
35  OperationContext& context, SimValue& arg0, SimValue& arg1) {
36  SimValue* params[] = {&arg0, &arg1};
37  behavior.simulateTrigger(params, context);
38 }
39 
40 inline static void
41 executeOperation(
42  OperationBehavior& behavior,
43  OperationContext& context,
44  SimValue& arg0, SimValue& arg1, SimValue& arg2) {
45  SimValue* params[] = {&arg0, &arg1, &arg2};
46  behavior.simulateTrigger(params, context);
47 }
48 
49 inline static void
50 executeOperation(
51  OperationBehavior& behavior,
52  OperationContext& context,
53  SimValue& arg0, SimValue& arg1, SimValue& arg2, SimValue& arg3) {
54  SimValue* params[] = {&arg0, &arg1, &arg2, &arg3};
55  behavior.simulateTrigger(params, context);
56 }
57 
58 inline static void
59 executeOperation(
60  OperationBehavior& behavior,
61  OperationContext& context,
62  SimValue& arg0, SimValue& arg1, SimValue& arg2, SimValue& arg3,
63  SimValue& arg4) {
64  SimValue* params[] = {&arg0, &arg1, &arg2, &arg3, &arg4};
65  behavior.simulateTrigger(params, context);
66 }
67 
68 inline static void
69 executeOperation(
70  OperationBehavior& behavior,
71  OperationContext& context,
72  SimValue& arg0, SimValue& arg1, SimValue& arg2, SimValue& arg3,
73  SimValue& arg4, SimValue& arg5) {
74  SimValue* params[] = {&arg0, &arg1, &arg2, &arg3, &arg4, &arg5};
75  behavior.simulateTrigger(params, context);
76 }
77 
78 inline static void
79 executeOperation(
80  OperationBehavior& behavior,
81  OperationContext& context,
82  SimValue& arg0, SimValue& arg1, SimValue& arg2, SimValue& arg3,
83  SimValue& arg4, SimValue& arg5, SimValue& arg6) {
84  SimValue* params[] = {&arg0, &arg1, &arg2, &arg3, &arg4, &arg5, &arg6};
85  behavior.simulateTrigger(params, context);
86 }
87 
88 inline static void
89 executeOperation(
90  OperationBehavior& behavior,
91  OperationContext& context,
92  SimValue& arg0, SimValue& arg1, SimValue& arg2, SimValue& arg3,
93  SimValue& arg4, SimValue& arg5, SimValue& arg6, SimValue& arg7) {
94  SimValue* params[] = {&arg0, &arg1, &arg2, &arg3, &arg4, &arg5, &arg6, &arg7};
95  behavior.simulateTrigger(params, context);
96 }
97 
98 inline static void
99 executeOperation(
100  OperationBehavior& behavior,
101  OperationContext& context,
102  SimValue& arg0, SimValue& arg1, SimValue& arg2, SimValue& arg3,
103  SimValue& arg4, SimValue& arg5, SimValue& arg6, SimValue& arg7,
104  SimValue& arg8) {
105  SimValue* params[] = {&arg0, &arg1, &arg2, &arg3, &arg4, &arg5, &arg6, &arg7, &arg8};
106  behavior.simulateTrigger(params, context);
107 }
108 
109 inline static void
110 executeOperation(
111  OperationBehavior& behavior,
112  OperationContext& context,
113  SimValue& arg0, SimValue& arg1, SimValue& arg2, SimValue& arg3,
114  SimValue& arg4, SimValue& arg5, SimValue& arg6, SimValue& arg7,
115  SimValue& arg8, SimValue& arg9, SimValue& arg10, SimValue& arg11,
116  SimValue& arg12, SimValue& arg13, SimValue& arg14, SimValue& arg15,
117  SimValue& arg16) {
118  SimValue* params[] = {&arg0, &arg1, &arg2, &arg3, &arg4, &arg5, &arg6, &arg7, &arg8, &arg9, &arg10, &arg11, &arg12, &arg13, &arg14, &arg15, &arg16};
119  behavior.simulateTrigger(params, context);
120 }
121 
122 inline static void
123 executeOperation(
124  OperationBehavior& behavior,
125  OperationContext& context,
126  SimValue& arg0, SimValue& arg1, SimValue& arg2, SimValue& arg3,
127  SimValue& arg4, SimValue& arg5, SimValue& arg6, SimValue& arg7,
128  SimValue& arg8, SimValue& arg9, SimValue& arg10, SimValue& arg11,
129  SimValue& arg12, SimValue& arg13, SimValue& arg14, SimValue& arg15,
130  SimValue& arg16, SimValue& arg17, SimValue& arg18, SimValue& arg19,
131  SimValue& arg20, SimValue& arg21, SimValue& arg22, SimValue& arg23,
132  SimValue& arg24, SimValue& arg25, SimValue& arg26, SimValue& arg27,
133  SimValue& arg28, SimValue& arg29, SimValue& arg30, SimValue& arg31,
134  SimValue& arg32) {
135  SimValue* params[] = {&arg0, &arg1, &arg2, &arg3, &arg4, &arg5, &arg6, &arg7, &arg8, &arg9, &arg10, &arg11, &arg12, &arg13, &arg14, &arg15, &arg16, &arg17, &arg18, &arg19, &arg20, &arg21, &arg22, &arg23, &arg24, &arg25, &arg26, &arg27, &arg28, &arg29, &arg30, &arg31, &arg32};
136  behavior.simulateTrigger(params, context);
137 }
138 
139 inline static void
140 executeOperation(
141  OperationBehavior& behavior,
142  OperationContext& context,
143  SimValue& arg0, SimValue& arg1, SimValue& arg2, SimValue& arg3,
144  SimValue& arg4, SimValue& arg5, SimValue& arg6, SimValue& arg7,
145  SimValue& arg8, SimValue& arg9, SimValue& arg10, SimValue& arg11,
146  SimValue& arg12, SimValue& arg13, SimValue& arg14, SimValue& arg15,
147  SimValue& arg16, SimValue& arg17, SimValue& arg18, SimValue& arg19,
148  SimValue& arg20, SimValue& arg21, SimValue& arg22, SimValue& arg23,
149  SimValue& arg24, SimValue& arg25, SimValue& arg26, SimValue& arg27,
150  SimValue& arg28, SimValue& arg29, SimValue& arg30, SimValue& arg31,
151  SimValue& arg32, SimValue& arg33, SimValue& arg34, SimValue& arg35,
152  SimValue& arg36, SimValue& arg37, SimValue& arg38, SimValue& arg39,
153  SimValue& arg40, SimValue& arg41, SimValue& arg42, SimValue& arg43,
154  SimValue& arg44, SimValue& arg45, SimValue& arg46, SimValue& arg47,
155  SimValue& arg48, SimValue& arg49, SimValue& arg50, SimValue& arg51,
156  SimValue& arg52, SimValue& arg53, SimValue& arg54, SimValue& arg55,
157  SimValue& arg56, SimValue& arg57, SimValue& arg58, SimValue& arg59,
158  SimValue& arg60, SimValue& arg61, SimValue& arg62, SimValue& arg63,
159  SimValue& arg64) {
160  SimValue* params[] = {&arg0, &arg1, &arg2, &arg3, &arg4, &arg5, &arg6, &arg7, &arg8, &arg9, &arg10, &arg11, &arg12, &arg13, &arg14, &arg15, &arg16, &arg17, &arg18, &arg19, &arg20, &arg21, &arg22, &arg23, &arg24, &arg25, &arg26, &arg27, &arg28, &arg29, &arg30, &arg31, &arg32, &arg33, &arg34, &arg35, &arg36, &arg37, &arg38, &arg39, &arg40, &arg41, &arg42, &arg43, &arg44, &arg45, &arg46, &arg47, &arg48, &arg49, &arg50, &arg51, &arg52, &arg53, &arg54, &arg55, &arg56, &arg57, &arg58, &arg59, &arg60, &arg61, &arg62, &arg63, &arg64};
161  behavior.simulateTrigger(params, context);
162 }
163 
164 inline static void
165 executeOperation(
166  OperationBehavior& behavior,
167  OperationContext& context,
168  SimValue& arg0, SimValue& arg1, SimValue& arg2, SimValue& arg3,
169  SimValue& arg4, SimValue& arg5, SimValue& arg6, SimValue& arg7,
170  SimValue& arg8, SimValue& arg9, SimValue& arg10, SimValue& arg11,
171  SimValue& arg12, SimValue& arg13, SimValue& arg14, SimValue& arg15,
172  SimValue& arg16, SimValue& arg17, SimValue& arg18, SimValue& arg19,
173  SimValue& arg20, SimValue& arg21, SimValue& arg22, SimValue& arg23,
174  SimValue& arg24, SimValue& arg25, SimValue& arg26, SimValue& arg27,
175  SimValue& arg28, SimValue& arg29, SimValue& arg30, SimValue& arg31,
176  SimValue& arg32, SimValue& arg33, SimValue& arg34, SimValue& arg35,
177  SimValue& arg36, SimValue& arg37, SimValue& arg38, SimValue& arg39,
178  SimValue& arg40, SimValue& arg41, SimValue& arg42, SimValue& arg43,
179  SimValue& arg44, SimValue& arg45, SimValue& arg46, SimValue& arg47,
180  SimValue& arg48, SimValue& arg49, SimValue& arg50, SimValue& arg51,
181  SimValue& arg52, SimValue& arg53, SimValue& arg54, SimValue& arg55,
182  SimValue& arg56, SimValue& arg57, SimValue& arg58, SimValue& arg59,
183  SimValue& arg60, SimValue& arg61, SimValue& arg62, SimValue& arg63,
184  SimValue& arg64, SimValue& arg65, SimValue& arg66, SimValue& arg67,
185  SimValue& arg68, SimValue& arg69, SimValue& arg70, SimValue& arg71,
186  SimValue& arg72, SimValue& arg73, SimValue& arg74, SimValue& arg75,
187  SimValue& arg76, SimValue& arg77, SimValue& arg78, SimValue& arg79,
188  SimValue& arg80, SimValue& arg81, SimValue& arg82, SimValue& arg83,
189  SimValue& arg84, SimValue& arg85, SimValue& arg86, SimValue& arg87,
190  SimValue& arg88, SimValue& arg89, SimValue& arg90, SimValue& arg91,
191  SimValue& arg92, SimValue& arg93, SimValue& arg94, SimValue& arg95,
192  SimValue& arg96, SimValue& arg97, SimValue& arg98, SimValue& arg99,
193  SimValue& arg100, SimValue& arg101, SimValue& arg102, SimValue& arg103,
194  SimValue& arg104, SimValue& arg105, SimValue& arg106, SimValue& arg107,
195  SimValue& arg108, SimValue& arg109, SimValue& arg110, SimValue& arg111,
196  SimValue& arg112, SimValue& arg113, SimValue& arg114, SimValue& arg115,
197  SimValue& arg116, SimValue& arg117, SimValue& arg118, SimValue& arg119,
198  SimValue& arg120, SimValue& arg121, SimValue& arg122, SimValue& arg123,
199  SimValue& arg124, SimValue& arg125, SimValue& arg126, SimValue& arg127,
200  SimValue& arg128) {
201  SimValue* params[] = {&arg0, &arg1, &arg2, &arg3, &arg4, &arg5, &arg6, &arg7, &arg8, &arg9, &arg10, &arg11, &arg12, &arg13, &arg14, &arg15, &arg16, &arg17, &arg18, &arg19, &arg20, &arg21, &arg22, &arg23, &arg24, &arg25, &arg26, &arg27, &arg28, &arg29, &arg30, &arg31, &arg32, &arg33, &arg34, &arg35, &arg36, &arg37, &arg38, &arg39, &arg40, &arg41, &arg42, &arg43, &arg44, &arg45, &arg46, &arg47, &arg48, &arg49, &arg50, &arg51, &arg52, &arg53, &arg54, &arg55, &arg56, &arg57, &arg58, &arg59, &arg60, &arg61, &arg62, &arg63, &arg64, &arg65, &arg66, &arg67, &arg68, &arg69, &arg70, &arg71, &arg72, &arg73, &arg74, &arg75, &arg76, &arg77, &arg78, &arg79, &arg80, &arg81, &arg82, &arg83, &arg84, &arg85, &arg86, &arg87, &arg88, &arg89, &arg90, &arg91, &arg92, &arg93, &arg94, &arg95, &arg96, &arg97, &arg98, &arg99, &arg100, &arg101, &arg102, &arg103, &arg104, &arg105, &arg106, &arg107, &arg108, &arg109, &arg110, &arg111, &arg112, &arg113, &arg114, &arg115, &arg116, &arg117, &arg118, &arg119, &arg120, &arg121, &arg122, &arg123, &arg124, &arg125, &arg126, &arg127, &arg128};
202  behavior.simulateTrigger(params, context);
203 }