This paper proposes the construction of a framework for the simulation of Petri net models based on Matlab/Simulink. The building blocks of the proposed framework use some basic elements provided by the SimEvents® toolbox. The objective is to provide a flexible and powerful environment that captures the execution conditions of real systems, besides a natural integration to Matlab environment, for the simulation of Petri nets. This framework simplifies the construction of the models by dragging and dropping blocks, and connecting them together. Moreover, a programmatic approach is possible for the construction of complex models, just as any Simulink model. The rich set of tools, algorithms and visualization mechanisms in the Matlab environment are available for the integration with the Petri net models constructed by using the blocks introduced in this work. This integration allows for a wide range of possibilities for the simulation of Discrete Event Systems modelled as Petri nets. Results obtained within this framework are contrasted with those reported in the original sources. The concluding remarks section provides a link for downloading and testing the library.