Edge

block Edge "Indicates rising edge of Boolean signal"
    extends Interfaces.BooleanSISO;
equation
    y = edge(u);

    annotation (
        Icon(
            coordinateSystem(
                preserveAspectRatio = true,
                extent = {
                    {-100, -100}, 
                    {100, 100}}),
            graphics = {
                Text(
                    extent = {
                        {-90, 36}, 
                        {90, -36}},
                    lineColor = {160, 160, 164},
                    textString = "edge()")}),
        Documentation(info = "<html>\n<p>\nThis block sets the Boolean output <strong>y</strong> to true,\nwhen the Boolean input <strong>u</strong> shows a <em>rising edge</em>:\n</p>\n<pre>    y = <strong>edge</strong>( u );\n</pre>\n</html>"));
end Edge;