A method of generating software code for a processor of an IC based on a
simple input description of the IC's standards. The method includes
generating a macros description of each of the primitives from the
standards and the response corresponding to each of the primitives,
wherein the macros description includes information relating to a number
of first fields for each of the primitives and a number of second fields
for each response. The method further includes generating a blank version
of a template that includes each of the second fields and receiving a
completed version of the template, wherein the completed template
specifies a behavior of the integrated circuit in response to the
primitives. Finally, the method includes compiling the software code
based on the macros description and the completed version of the
template. Also, a software tool implementing the method is provided.