Forum Discussion

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

Converting AHDL -> VHDL of existing LPM functions

I have a design which I started in 9.1sp2 using bdf files and a bunch of LPM generated AHDL (minority) and VHDL (majority) instantations.

I'd like to regenerate and/or convert the AHDL instantations of these LPM functions into their VHDL equivalent (as if I had specified that all along from the beginning).

I can now either arduously go in and convert every one of them by hand (painful), or there could be some magic button or a script can be created to do it for me. If anyone knows about the existance of the "magic button" to fix this, please let me know. In case that magic button doesn't exist, any hints on how to script this? Is there a cmdline tool which can be used for the conversion (or better yet, regeneration) of a single file?

4 Replies

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

    Hi BuGless,

    I took xport.exe for converting AHDL to VHDL. Command line usage:

    * chdir to the dir of your AHDL-file

    * <complete_path_to_xport.exe> -ahdl -vhdl <ahdl_file_name>

    Hope it helps,

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

    I happen to have the Quartus II 10.1 Linux version here at the moment, it doesn't seem to have the xport command. Did that get renamed somehow, or is it only present in the Windows versions? Which version of Quartus II did you find it in?

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

    I see. One would have expected it to be named import then...

    Thanks for the pointer though.