Design is a complex process which can be thought of as a top down refinement of a specification. The main aim of this algorithm is to propose a VHDL code generator for real-time systems. Its importance lies in giving graphical interface to the designer. Here, a discrete event model for a digital circuit using VHDL is designed and implemented.