Embedded Software

Embedded Software

Interface Generic Types – Design a Median with ANSYS SCADE (Part 2 of 6)

    • Watch & LearnWatch & Learn
      Participant

      In this video, the second in a series of six, we will generalize the median interface with generic types. A generic type is used to refer to a type that is not yet defined at design time. Required in-line implementations will be generated by the code generator for each concrete instantiation type. We will again use the checker and the ANSYS SCADE Suite Simulator to verify that the design is correct and behaves as we want it to, with real type numbers, in this case. We will then add a restriction to our generic type so it can only be bound to numeric types.