Ptolemy II also contains a code generation framework, which we extend for Ptides. The Ptides code generator produces platform specific code for given models. The generated code comprises two parts: (i) the platform specific operating system, PtidyOS, which performs I/O handling, context switching and scheduling of actors, and (ii) actor code. The actor code contains platform independent code for functionality and timing specifications and platform dependent code for interfacing with the OS and the hardware. The code generation framework for Ptides currently supports 3 different HW platforms. The code generation for these platforms is described in .