Questa FPGA Edhitionのライセンス認証方法
[https://www.macnica.co.jp/business/semiconductor/articles/intel/139706/]
ライセンス設定なしで使用できる最後のModelSim-ISEはQuartus Standardのダウンロードページ内"Individual Files"タブからダウンロードできる
Intel® FPGA Self-Service Licensing Center
[https://licensing.intel.com/psg/s/?language=ja]
sudo dnf -y install libXext.i686
sudo dnf -y install libgcc.i686
sudo yum install glibc-devel.i686
sudo dnf -y groupinstall "Development Tools"
cd ~
UVM_SRC=/opt/intelFPGA/20.1/modelsim_ase/verilog_src/uvm-1.2/src
vlog -sv $UVM_SRC/uvm.sv +incdir+$UVM_SRC $UVM_SRC/dpi/uvm_dpi.cc -ccflags -DQUESTA
vmap -modelsimini modelsim.ini uvm work
UVMライブラリをコンパイルする
MTI_HOME
を追加UVM_HOME
とGCC
をQuestaインストールディレクトリへ合わせる
MTI_HOME = /opt/intelFPGA/20.1/modelsim_ase
#UVM_HOME ?= ..
UVM_HOME = $(MTI_HOME)/verilog_src/uvm-1.2
#GCC = gcc
GCC = $(MTI_HOME)/gcc-7.4.0-linux_x86_64/bin/g++
sudo make -f Makefile.questa dpi_lib
vlig/vsim実行スクリプトを作成する
別途、gcc
コマンドでUVMライブラリをコンパイルする必要がなく、vlog時にQuestaが内蔵gccで自動コンパイルする
記述例:makefile
サンプルとして使用したapb2spiをQuestaデコンパイルする場合、 defines.vが不足しているため、作成が必要