Node:Chop mode, Next:, Previous:List link mode, Up:GHDL modes



Chop mode

Chop (or split) files at design unit.

$ ghdl --chop files
GHDL read files, and write a file in the current directory for every design unit.

The file name of a design unit is build according to the unit. For an entity declaration, a package declaration or a configuration the file name is NAME.vhdl, where NAME is the name of the design unit. For a package body, the file name is NAME-body.vhdl. Finally, for an architecture ARCH of an entity ENTITY, the file name is ENTITY-ARCH.vhdl.

Since the input files are parsed, the mode aborts in case of syntax error. The mode aborts too if a file to be written already exists.

Comments between design units are stored into the most adequate files.

This mode may be useful to split big files, if your computer has not enough memory to compile such files. The size of the executable is reduced too.