Node:Elaboration mode, Next:, Previous:Analysis mode, Up:GHDL modes



Elaboration mode


$ ghdl -e [options] primary_unit [secondary_unit]

In elaboration mode, GHDL creates an executable containing the code of the VHDL sources, the elaboration code and simulation code to execute a design hiearachy. The elaboration mode is selected with -e switch, and must be followed by either:

Name of the units must be a simple name, without any dot. You can select the name of the WORK library with the --work=NAME option, as described in GHDL options.

See Top entity, for the restrictions on the root design of a hierarchy.

The file name of the executable is the name of the primary unit, or for the later case, the concatenation of the name of the primary unit, a dash, and the name of the secondary unit (or architecture).

The -o followed by a file name can override the default executable file name.

For the elaboration mode, GHDL re-analyzes all the configurations, entities, architectures and package declarations, and creates the default configurations and the default binding indications according to the LRM rules. It also generates the list of objects files required for the executable. Then, it links all these files with the run time library.

The actual elaboration is performed at run-time.