Project

General

Profile

Download (1.51 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:12:22
5
(*
6
Original block name: flattening_2_test_PP/Subsystem/Subsystem1
7
*)
8
node  Subsystem1_47_039(SubIn1_1 : real;
9
	__time_step : real;
10
	__nb_step : int;)
11
returns(SubOut1_1 : real;);
12
var Gain_1 : real;
13
let
14
	Gain_1 = (SubIn1_1 * 0.500000000000000);
15
	SubOut1_1 = Gain_1;
16
tel
17

    
18
(*
19
Original block name: flattening_2_test_PP/Subsystem
20
*)
21
node  Subsystem_43_050(SubIn1_1 : real;
22
	__time_step : real;
23
	__nb_step : int;)
24
returns(SubOut1_1 : real;
25
	SubOut2_1 : real;
26
	SubOut3_1 : real;);
27
var Constant_1 : real;
28
	Gain_1 : real;
29
	Subsystem1_1 : real;
30
	Sum_1 : real;
31
let
32
	Constant_1 = 1.000000000000000;
33
	Gain_1 = (SubIn1_1 * 0.500000000000000);
34
	Subsystem1_1 = Subsystem1_47_039(SubIn1_1, __time_step, __nb_step);
35
	Sum_1 = 0.0 + SubIn1_1 + SubIn1_1 + Constant_1;
36
	SubOut1_1 = Gain_1;
37
	SubOut2_1 = Sum_1;
38
	SubOut3_1 = Subsystem1_1;
39
tel
40

    
41
(*
42
Original block name: flattening_2_test_PP
43
*)
44
node  flattening_2_test_PP(In1_1 : real;)
45
returns(Out1_1 : real;
46
	Out2_1 : real;
47
	Out3_1 : real;);
48
var Subsystem_1 : real;
49
	Subsystem_2 : real;
50
	Subsystem_3 : real;
51
	UnitDelay_1 : real;
52
	__time_step : real;
53
	__nb_step : int;
54
let
55
	(Subsystem_1, Subsystem_2, Subsystem_3) = Subsystem_43_050(UnitDelay_1, __time_step, __nb_step);
56
	UnitDelay_1 = (0.000000000000000 -> (pre In1_1));
57
	Out1_1 = Subsystem_1;
58
	Out2_1 = Subsystem_2;
59
	Out3_1 = Subsystem_3;
60
	__time_step = (0.0 -> ((pre __time_step) + 1.000000000000000));
61
	__nb_step = (0 -> ((pre __nb_step) + 1));
62
tel
63

    
(1060-1060/1153)