1. In a computing device, a method for generating code from a model for a hardware implementation of the model, the method comprising: determining an interface between a portion of a first component of the model and a portion of a second component of the model; and automatically generating code representative of the interface between the portion of the first component and the portion of the second component of the model, wherein when the code for the interface between the components of the model is compiled, an output of the compiler is used to implement the interface in a hardware component.