Project

General

Profile

Download (2.54 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:19:39
5
#open <conv>
6
(*
7
Original block name: Bias_PP/Bias
8
*)
9
node  Bias_32_467(u_1 : real;
10
	u_2 : real;
11
	u_3 : real;
12
	u_4 : real;
13
	__time_step : real;
14
	__nb_step : int;)
15
returns(Out1_1 : real;
16
	Out1_2 : real;
17
	Out1_3 : real;
18
	Out1_4 : real;);
19
var Sum_1 : real;
20
	Sum_2 : real;
21
	Sum_3 : real;
22
	Sum_4 : real;
23
	bias_1 : real;
24
let
25
	Sum_1 = 0.0 + u_1 + bias_1;
26
	Sum_2 = 0.0 + u_2 + bias_1;
27
	Sum_3 = 0.0 + u_3 + bias_1;
28
	Sum_4 = 0.0 + u_4 + bias_1;
29
	bias_1 = 2.000000000000000;
30
	Out1_1 = Sum_1;
31
	Out1_2 = Sum_2;
32
	Out1_3 = Sum_3;
33
	Out1_4 = Sum_4;
34
tel
35

    
36
(*
37
Original block name: Bias_PP/Bias1
38
*)
39
node  Bias1_33_080(u_1 : real;
40
	__time_step : real;
41
	__nb_step : int;)
42
returns(Out1_1 : real;);
43
var Sum_1 : real;
44
	bias_1 : real;
45
let
46
	Sum_1 = 0.0 + u_1 + bias_1;
47
	bias_1 = 2.000000000000000;
48
	Out1_1 = Sum_1;
49
tel
50

    
51
(*
52
Original block name: Bias_PP/Bias2
53
*)
54
node  Bias2_34_040(u_1 : real;
55
	__time_step : real;
56
	__nb_step : int;)
57
returns(Out1_1 : real;);
58
var Sum_1 : real;
59
	bias_1 : real;
60
let
61
	Sum_1 = 0.0 + u_1 + bias_1;
62
	bias_1 = 2.000000000000000;
63
	Out1_1 = Sum_1;
64
tel
65

    
66
(*
67
Original block name: Bias_PP/Bias3
68
*)
69
node  Bias3_35_049(u_1 : int;
70
	__time_step : real;
71
	__nb_step : int;)
72
returns(Out1_1 : real;);
73
var Sum_1 : real;
74
	bias_1 : real;
75
let
76
	Sum_1 = 0.0 + int_to_real(u_1) + bias_1;
77
	bias_1 = 5.000000000000000;
78
	Out1_1 = Sum_1;
79
tel
80

    
81
(*
82
Original block name: Bias_PP
83
*)
84
node  Bias_PP(In1_1 : real;
85
	In2_1 : int;)
86
returns(Out1_1 : real;
87
	Out1_2 : real;
88
	Out1_3 : real;
89
	Out1_4 : real;
90
	Out2_1 : real;
91
	Out3_1 : real;
92
	Out4_1 : real;);
93
var Bias_1 : real;
94
	Bias_2 : real;
95
	Bias_3 : real;
96
	Bias_4 : real;
97
	Bias1_1 : real;
98
	Bias2_1 : real;
99
	Bias3_1 : real;
100
	Constant_1 : real;
101
	Constant_2 : real;
102
	Constant_3 : real;
103
	Constant_4 : real;
104
	Constant1_1 : real;
105
	__time_step : real;
106
	__nb_step : int;
107
let
108
	(Bias_1, Bias_2, Bias_3, Bias_4) = Bias_32_467(Constant_1, Constant_2, Constant_3, Constant_4, __time_step, __nb_step);
109
	Bias1_1 = Bias1_33_080(Constant1_1, __time_step, __nb_step);
110
	Bias2_1 = Bias2_34_040(In1_1, __time_step, __nb_step);
111
	Bias3_1 = Bias3_35_049(In2_1, __time_step, __nb_step);
112
	Constant_1 = 3.500000000000000;
113
	Constant_2 = 7.800000000000000;
114
	Constant_3 = 6.000000000000000;
115
	Constant_4 = 0.000000000000000;
116
	Constant1_1 = 3.500000000000000;
117
	Out1_1 = Bias_1;
118
	Out1_2 = Bias_2;
119
	Out1_3 = Bias_3;
120
	Out1_4 = Bias_4;
121
	Out2_1 = Bias1_1;
122
	Out3_1 = Bias2_1;
123
	Out4_1 = Bias3_1;
124
	__time_step = (0.0 -> ((pre __time_step) + 0.200000000000000));
125
	__nb_step = (0 -> ((pre __nb_step) + 1));
126
tel
127

    
(133-133/1153)