The invention relates to a universal
peripheral equipment function behavior level
modeling and simulation method, and belongs to the field of equipment
modeling and simulation. According to the method, firstly, a device description file *. Vdl is defined according to the characteristics of the
peripheral device, and general information of the
peripheral device is described; secondly, behavior-level modeling is carried out on the peripheral equipment, and contents such as a register and an IO interface are included; then, perfecting the functions of the equipment model, completing function
simulation such as register reading and writing, data receiving and transmitting, equipment initialization and the like, and translating an equipment
model description file into an equipment C code; and finally, checking the consistency of the device
function model, and compiling the C code into a device dynamic
library which can be called after the checking is passed. According to the universal peripheral device behavior level function
simulation method achieved through the method, the modeling process is standard, model attributes and interface description is clear, logic function description is accurate, the universal and efficient peripheral device
modeling and simulation method is formed, and the
simulation efficiency of the peripheral device is improved.