Project

General

Profile

Download (2.1 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:33:57
5
(*
6
Original block name: EnablePort1_PP/case_held_reset_held
7
*)
8
node  case_held_reset_held_41_066_automaton(Cpre_compx_1 : real;
9
	_isEnabled : bool;
10
	__time_step : real;
11
	__nb_step : int;)
12
returns(Ccor_x_1 : real;
13
	pre_x_1 : real;);
14
var pre_Ccor_x_1 : real;
15
	pre_pre_x_1 : real;
16
let
17
	pre_Ccor_x_1 = 0.000000000000000;
18
	pre_pre_x_1 = if (__nb_step > 0) then
19
		(pre pre_x_1)
20
	    else 0.000000000000000;
21
	automaton enabled_case_held_reset_held_41_066
22
	state Active_case_held_reset_held_41_066:
23
	unless (not _isEnabled) restart Inactive_case_held_reset_held_41_066
24
	let
25
		(Ccor_x_1, pre_x_1) = case_held_reset_held_41_066(Cpre_compx_1, __time_step, __nb_step);
26
	tel
27

    
28
	state Inactive_case_held_reset_held_41_066:
29
	unless _isEnabled resume Active_case_held_reset_held_41_066
30
	let
31
		Ccor_x_1 = pre_Ccor_x_1;
32
		pre_x_1 = pre_pre_x_1;
33
	tel
34

    
35

    
36
tel
37

    
38
(*
39
Original block name: EnablePort1_PP/case_held_reset_held
40
*)
41
node  case_held_reset_held_41_066(Cpre_compx_1 : real;
42
	__time_step : real;
43
	__nb_step : int;)
44
returns(Ccor_x_1 : real;
45
	pre_x_1 : real;);
46
var Add_1 : real;
47
	UnitDelay_1 : real;
48
	UnitDelay1_1 : real;
49
let
50
	Add_1 = 0.0 + Cpre_compx_1 + UnitDelay_1;
51
	UnitDelay_1 = (0.000000000000000 -> (pre Add_1));
52
	UnitDelay1_1 = (0.000000000000000 -> (pre Cpre_compx_1));
53
	Ccor_x_1 = Add_1;
54
	pre_x_1 = UnitDelay1_1;
55
tel
56

    
57
(*
58
Original block name: EnablePort1_PP
59
*)
60
node  EnablePort1_PP(In1_1 : real;
61
	Enable_1 : real;)
62
returns(Out5_1 : real;
63
	pre_Out2_1 : real;);
64
var ExecutionCond_of_case_held_reset_held_41_066 : bool;
65
	case_held_reset_held_1 : real;
66
	case_held_reset_held_2 : real;
67
	__time_step : real;
68
	__nb_step : int;
69
let
70
	ExecutionCond_of_case_held_reset_held_41_066 = (Enable_1 > 0.0);
71
	(case_held_reset_held_1, case_held_reset_held_2) = case_held_reset_held_41_066_automaton(In1_1, ExecutionCond_of_case_held_reset_held_41_066, __time_step, __nb_step);
72
	Out5_1 = case_held_reset_held_1;
73
	pre_Out2_1 = case_held_reset_held_2;
74
	__time_step = (0.0 -> ((pre __time_step) + 0.200000000000000));
75
	__nb_step = (0 -> ((pre __nb_step) + 1));
76
tel
77

    
(565-565/1153)