Lustre/Luke Examples
Here is a superset of the examples seen in class. Clicking on the link will open a page that shows a simple Lustre program and a Luke simulation window.
In that window, you see an initial segment of possible input and corresponding output streams for the program. Input streams have initially the following default values: Booleans streams are constantly false and integer streams are constantly 0. Output streams contain the result of the program for the given input.
You can change one or more point values in the input stream segments, and then push the Redraw buttom to recalculate the values of the output streams. You can also increase or decrease the length of the stream segments.
- Abs
- Adder
- And
- DownCounter
- DownCounters
- FallingEdge
- FallingEdge2
- Fby
- Fibonacci
- Fibonacci8bit
- FollowedBy
- FollowedBy2
- FourbitAdder
- Neg
- ReqEdge
- ReqTrafficLight
- ReqTrafficLight2
- ReqTrafficLight3
- RisingEdge
- Simple
- TrafficLight
- TrafficLight2
- TrafficLight3
- stopwatch
- stopwatch2
- twisted_counters
- two_counters