Modelgen implements the translation of compact device models to code that can be compiled into a plugin and loaded by the simulator. The traditional version that is currently included with Gnucap reads .model files and writes Gnucap plugins in C++. The version currently under development, Modelgen-Verilog, reads a growing subset of Verilog-AMS, a standardised modelling language.