AR# 29890 ModelSim (MXE, SE, PE) - "# ** Error: (vcom-42) Unsupported ModelSim library format for "work".(Format: 3)"

When I recompile the design files which have already been compiled by others.

I see the following error:

# ** Error: (vcom-42) Unsupported ModelSim library format for "work".

(Format: 3)

How to get this issue solved?

This error occurs when the compiled work directory is stale and the contents where compiled using a different version of simulator. In order to overcome this problem delete the work directory and recompile the source files.

Below is an example:

For modelsim, run following commands before you recompile (vcom) the design or put them into the .do file (or other scripts).

vdel -all

vlib work

vmap work work

vcom <source files>

AR# 29890
Date Created 03/06/2008
Last Updated 12/15/2012
Status Active
Type General Article