DSim Cloud Intel Quartus Library Package

Modified on Tue, 9 Jul at 6:08 PM

DSim Cloud Intel Quartus Library Package

Overview

The Quartus library is supplied by Metrics (using the standard libraries available by Intel) and is made available to users on-demand in the remote workspace. The library package is equivalent to the folders under the Quartus Prime Pro installation folders:


  • <intelFPGA_pro>/<version>/ip
  • <intelFPGA_pro>/<version>/quartus/dspba
  • <intelFPGA_pro>/<version>/quartus/eda
  • <intelFPGA_pro>/<version>/quartus/libraries
  • <intelFPGA_pro>/<version>/quartus/qdesigns

For more information on the Intel Quartus library functionality see the Intel Quartus website.



Accessing the Quartus Library

DSim Cloud comes with Quartus Prime Pro 22.2. To load the Quartus package, uncomment the Quartus package entry in your mdc_config.yml:


 

    - name: quartus

version: "22.2"

 

To see how to change your mdc_config.yml, see DSim Cloud Configuration.


Loading a Quartus package also maps the corresponding precompiled libraries.


When the Quartus package is loaded, an environment variable QUARTUS_HOME is set, which points to the current version being used by the remote workspace. It is equivalent to the path of the Quartus installation folder <intelFPGA_pro>/<version>/quartus.


To see which version of the Quartus library is being used currently:



Windows

 

mdc envs | findstr QUARTUS_HOME

 


Linux / Mac

 

mdc envs | grep QUARTUS_HOME

 

To use a Quartus library in your design, either:



1. From DSim Cloud CLI (mdc)

Use %QUARTUS_HOME% in your DSim command arguments encapsulated in double-quotes, so the libraries are referenced as:


  • %QUARTUS_HOME%/ip
  • %QUARTUS_HOME%/dspba
  • %QUARTUS_HOME%/eda
  • %QUARTUS_HOME%/libraries
  • %QUARTUS_HOME%/qdesigns

Examples:

To compile a file from the folder <intelFPGA_pro>/<version>/ip:


 

mdc dvlcom -a "%QUARTUS_HOME%/ip/altera/altera_dp/src/altera_dp_reset_delay.v"

 

To compile a file from the folder <intelFPGA_proo>/<version>/quartus/libraries (note that /quartus is not in the remote path):


 

mdc dvhcom -a "%QUARTUS_HOME%/libraries/vhdl/altera_mf/altera_mf_components.vhd"

 


2. From your DSim Cloud Script

Use $QUARTUS_HOME in your DSim command arguments encapsulated in double-quotes, so the libraries are referenced as:


  • $QUARTUS_HOME/ip
  • $QUARTUS_HOME/dspba
  • $QUARTUS_HOME/eda
  • $QUARTUS_HOME/libraries
  • $QUARTUS_HOME/qdesigns

Examples:

To compile a file in your script from the folder <intelFPGA_pro>/<version>/ip:


 

mdc dvlcom -a "$QUARTUS_HOME/ip/altera/altera_dp/src/altera_dp_reset_delay.v"

 

To compile a file from the folder <intelFPGA_pro>/<version>/quartus/libraries (note that /quartus is not in the remote path):


 

mdc dvhcom -a "$QUARTUS_HOME/libraries/vhdl/altera_mf/altera_mf_components.vhd"

 

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article