Project

General

Profile

Download (3.4 KB) Statistics
| Branch: | Tag: | Revision:
1
-- This file has been generated by CoCoSim2.
2

    
3
-- Compiler: Lustre compiler 2 (ToLustre.m)
4
-- Time: 03-Dec-2018 22:31:37
5
(*
6
Original block name: DiscreteFIRFilter_1_PP/DiscreteFIRFilter/DTFScalar/ForEach1
7
*)
8
node  ForEach1_17337_275(In1_1 : real;
9
	__time_step : real;
10
	__nb_step : int;)
11
returns(Out1_1 : real;);
12
var A_1 : real;
13
	B_1 : real;
14
	C_1 : real;
15
	D_1 : real;
16
	FinalSum_1 : real;
17
	Product_1 : real;
18
	Product1_1 : real;
19
	Product2_1 : real;
20
	Product3_1 : real;
21
	Sum1_1 : real;
22
	X0_1 : real;
23
let
24
	A_1 = 0.000000000000000;
25
	B_1 = 1.000000000000000;
26
	C_1 = 0.500000000000000;
27
	D_1 = 0.400000000000000;
28
	FinalSum_1 = 0.0 + Product1_1 + Product_1;
29
	Product_1 = 0.0 + (C_1 * X0_1);
30
	Product1_1 = 1.0 * D_1 * In1_1;
31
	Product2_1 = 1.0 * B_1 * In1_1;
32
	Product3_1 = 0.0 + (A_1 * X0_1);
33
	Sum1_1 = 0.0 + Product3_1 + Product2_1;
34
	X0_1 = (0.000000000000000 -> (pre Sum1_1));
35
	Out1_1 = FinalSum_1;
36
tel
37

    
38
(*
39
Original block name: DiscreteFIRFilter_1_PP/DiscreteFIRFilter/DTFScalar/ForEach2
40
*)
41
node  ForEach2_17376_275(In1_1 : real;
42
	__time_step : real;
43
	__nb_step : int;)
44
returns(Out1_1 : real;);
45
var A_1 : real;
46
	B_1 : real;
47
	C_1 : real;
48
	D_1 : real;
49
	FinalSum_1 : real;
50
	Product_1 : real;
51
	Product1_1 : real;
52
	Product2_1 : real;
53
	Product3_1 : real;
54
	Sum1_1 : real;
55
	X0_1 : real;
56
let
57
	A_1 = 0.000000000000000;
58
	B_1 = 1.000000000000000;
59
	C_1 = 0.500000000000000;
60
	D_1 = 0.400000000000000;
61
	FinalSum_1 = 0.0 + Product1_1 + Product_1;
62
	Product_1 = 0.0 + (C_1 * X0_1);
63
	Product1_1 = 1.0 * D_1 * In1_1;
64
	Product2_1 = 1.0 * B_1 * In1_1;
65
	Product3_1 = 0.0 + (A_1 * X0_1);
66
	Sum1_1 = 0.0 + Product3_1 + Product2_1;
67
	X0_1 = (0.000000000000000 -> (pre Sum1_1));
68
	Out1_1 = FinalSum_1;
69
tel
70

    
71
(*
72
Original block name: DiscreteFIRFilter_1_PP/DiscreteFIRFilter/DTFScalar
73
*)
74
node  DTFScalar_32_481(In1_1 : real;
75
	In1_2 : real;
76
	__time_step : real;
77
	__nb_step : int;)
78
returns(Out1_1 : real;
79
	Out1_2 : real;);
80
var Concatenate_1_1 : real;
81
	Concatenate_1_2 : real;
82
	ForEach1_1 : real;
83
	ForEach2_1 : real;
84
	Selector_1_In1_1 : real;
85
	Selector_2_In1_1 : real;
86
let
87
	Concatenate_1_1 = ForEach1_1;
88
	Concatenate_1_2 = ForEach2_1;
89
	ForEach1_1 = ForEach1_17337_275(Selector_1_In1_1, __time_step, __nb_step);
90
	ForEach2_1 = ForEach2_17376_275(Selector_2_In1_1, __time_step, __nb_step);
91
	Selector_1_In1_1 = In1_1;
92
	Selector_2_In1_1 = In1_2;
93
	Out1_1 = Concatenate_1_1;
94
	Out1_2 = Concatenate_1_2;
95
tel
96

    
97
(*
98
Original block name: DiscreteFIRFilter_1_PP/DiscreteFIRFilter
99
*)
100
node  DiscreteFIRFilter_17_067(U_1 : real;
101
	U_2 : real;
102
	__time_step : real;
103
	__nb_step : int;)
104
returns(Y_1 : real;
105
	Y_2 : real;);
106
var DTFScalar_1 : real;
107
	DTFScalar_2 : real;
108
	Reshape_1 : real;
109
	Reshape_2 : real;
110
	ReverseReshape_1 : real;
111
	ReverseReshape_2 : real;
112
let
113
	(DTFScalar_1, DTFScalar_2) = DTFScalar_32_481(Reshape_1, Reshape_2, __time_step, __nb_step);
114
	Reshape_1 = U_1;
115
	Reshape_2 = U_2;
116
	ReverseReshape_1 = DTFScalar_1;
117
	ReverseReshape_2 = DTFScalar_2;
118
	Y_1 = ReverseReshape_1;
119
	Y_2 = ReverseReshape_2;
120
tel
121

    
122
(*
123
Original block name: DiscreteFIRFilter_1_PP
124
*)
125
node  DiscreteFIRFilter_1_PP(In1_1 : real;
126
	In1_2 : real;)
127
returns(Out1_1 : real;
128
	Out1_2 : real;);
129
var DiscreteFIRFilter_1 : real;
130
	DiscreteFIRFilter_2 : real;
131
	__time_step : real;
132
	__nb_step : int;
133
let
134
	(DiscreteFIRFilter_1, DiscreteFIRFilter_2) = DiscreteFIRFilter_17_067(In1_1, In1_2, __time_step, __nb_step);
135
	Out1_1 = DiscreteFIRFilter_1;
136
	Out1_2 = DiscreteFIRFilter_2;
137
	__time_step = (0.0 -> ((pre __time_step) + 0.200000000000000));
138
	__nb_step = (0 -> ((pre __nb_step) + 1));
139
tel
140

    
(445-445/1153)