Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

.BDF/VHDL project with ModelSim

Dear all,

My project is composed by a root.bdf file and some vhdl modules.

It works correctly in Quartus but I'm not capable to compile it in ModelSim.

The problem should be due to the root.vhd file produced by Quartus (through the "File-> Create -> Create HDL Design File for Current File" function) where each bus is constantly defined std_logic_vector while inside my modules I used different types (unsigned, signed, ...).

These misalignment produce an error in ModelSim (it recognize different types connected together) and it stop compilation.

Someone please know a solution to this problem? Thanks a lot!

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    You should use explicit type conversions in your code. As an example unsigned(vect) to convert a std_logic_vector to unsigned.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    converting bdf files to VHDL is pretty weak. It assumes all signals are std_logic or std_logic_vector (or in some different cases, it can try and create completly illegal 2d std_logic_vectors). The only way round it is to create root.vhd yourself, rather than auto-generate it from quartus.