Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

lustrec-tests / regression_tests / lustre_files / success / Simulink / src_many_files / DiscretePulseGenerator_PP.LUSTREC.lus @ cd1faebc

History | View | Annotate | Download (549 Bytes)

1 4748b215 hbourbou
-- This file has been generated by CoCoSim2.
2
3
-- Compiler: Lustre compiler 2 (ToLustre.m)
4
-- Time: 03-Dec-2018 22:32:16
5
(*
6
Original block name: DiscretePulseGenerator_PP
7
*)
8
node  DiscretePulseGenerator_PP(_virtual : bool;)
9
returns(Out1_1 : real;);
10
var PulseGenerator_1 : real;
11
	__time_step : real;
12
	__nb_step : int;
13
let
14
	PulseGenerator_1 = if ((__nb_step mod 10) < 1) then
15
		1.000000000000000
16
	    else 0.0;
17
	Out1_1 = PulseGenerator_1;
18
	__time_step = (0.0 -> ((pre __time_step) + 0.100000000000000));
19
	__nb_step = (0 -> ((pre __nb_step) + 1));
20
tel