Hello everyone. I have this task, does anyone have any ideas on how to do this or ready-made examples of something like this?
Need to make the model of specified below system and make software test.
System description
Input:
- only one input
- during all time input gets a series of data
- at each cycle input signal is either 0 or 1
- type boolean
Output:
- only one output
- at each cycle time, the system sets the output 0 or 1 that depends on
conditions
- the system sets the output to 1 if the sum of 1 in the last input
series was odd.
- in other cases, the system sets the output to 0
- type boolean
Definition of the series:
Series starts with 2 nd 1 in sequence (1 | 1).
Series ends after 2 nd 0 in sequence (0 0 |).
Example of input data and series:
input 0 1 0 1 | 1 1 1 0 0 |1 0 0 1| 1 1 1 0 1 0 0| 0 0
output 0 0 0 0 | 0 0 0 0 1 |1 1 1 1| 1 1 1 1 1 1 0| 0 0
Requirements to the software models:
* should be done in simulink and stateflow
* test example above should be included as test case