Foreign InterfacesAn Example
ARCHITECTURE c_model OF and2 IS
ATTRIBUTE FOREIGN OF c_model:
ARCHITECTURE IS "xxand2(A, B, C)";
The c_model architecture is declared as FOREIGN
- No statements are needed in the architecture body as they will never be executed
- The implementation calls the "xxand2" function to perform the actions for the and2 entity
Notes:
The c_model code for xxand2 exists in some form that is implementation dependent. This code could be in a library of other models written in C that may be similarly accessed.