How to simulate an Altera megafunction using Modelsim SE - vhdl

___Hi, everyone. I have instantiated a PLL using the Megawizard in Quartus II. Then I wanted to simulate it using ModelSim SE because Quartus II 10.1 doesn't have a built-in simulator. I copied builtInPLL.vhd (output of the Megawizard) and PLL_tb.vhd (testbench) to the directory of the ModelSim project. But when I compiled builtInPLL.vhd, it gave out the following error messages:
Error: builtInPLL.vhd(39): Library altera_mf not found.
Error: builtInPLL.vhd(40): (vcom-1136) Unknown identifier "altera_mf".
relevant lines in builtInPLL.vhd:
LIBRARY altera_mf;
USE altera_mf.all;
I googled these messages but found nothing really helpful. I copied altera_mf.vhd from ..\eda\sim_lib and compiled it with builtInPLL.vhd. Modelsim still gave me the messages above. And many files with suffix .dat and .dbs were created in the work directory. What are they?
Where is the library altera_mf located? And how can I simulate a megafunction using ModelSim SE.
Any help will be appreciated.Thanks.

Standard ModelSim SE does not come with Altera library support, so you have to
install the Altera specific libraries like altera_mf. There is an example
Tcl script for this at ModelSim Tcl Scripting
Examples under Library Setup Script (VHDL).
As an alternative you can consider using the ModelSim-Altera version, which
comes with pre-installed Altera libraries, like the altera_mf. This ModelSim
version can be found at ModelSim-Altera
Software.
There is even a free version called "ModelSim-Altera Starter Edition".

Quartus II also has an interactive tool for this:
Tools > Launch Simulation Library Compiler > ...

Related

Why my OpenCL.dll doesn't have clReleaseDevice function?

I got an error while initializing a device variable.
cl::Device device;
Problem:
The procedure entry point clReleaseDevice could not be located in the
dynamic link library OpenCL.dll
I opened OpenCL.dll from C:\Windows\System32 with "Dependency Walker" and it really doesn't have such a function. I'm using Windows 7 and NVIDIA CUDA Toolkit 11.5 and cannot run the simplest program.
Why is this happening? How to fix it?
clReleaseDevice was added in OpenCL 1.2. So, if your OpenCL library does not contain this function it means that the library supports only OpenCL 1.1 or older version. So, you can solve this issue in two ways:
Update the OpenCL.dll (for example, the build instruction is available here)
Rewrite the sample in accordance with OpenCL 1.1 or older. It looks like you use cl2.hpp or opencl.hpp, so you can use CL_HPP_TARGET_OPENCL_VERSION macro to specify the target OpenCL version:
#define CL_HPP_TARGET_OPENCL_VERSION 110
#include <CL/opencl.hpp>

Quartus 14.1 encrypted files used in Quartus 17.1

Are there any issues with using Quartus encrypted files version specific to Quartus 14.1 in Quartus prime 17.1 ?
The issue is not with the encryption, but the original source code. Sometimes "fixes" to the compiler breaks what you thought was working code. You have to try it yourself, or ask the originator of the encrypted code to verify it for you with the latest version.

Problems with Android MIPS Architecture

I'm hoping someone can give me some help here. I am new to Gluon-mobile and javafxports. We are evaluating Gluon-mobile and are interested in using it on multiple architecture. We are able to run the basic sample program on the Mac laptop and an Android Motorola phone.
However when we try to compile/deploy to an Android device with MIPS architecture we get the error message:
INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries.
Upon investigation, it seems you get this error when you do not have the proper JNI libraries to support the CPU ABI instruction set on the machine you are deploying to. When I unzip the apk file I see under the lib directory:
./armeabi
./armeabi/libactivity.so
./armeabi/libdecora_sse.so
./armeabi/libglass_monocle.so
./armeabi/libjavafx_font.so
./armeabi/libjavafx_font_freetype.so
./armeabi/libjavafx_iio.so
./armeabi/libprism_common.so
./armeabi/libprism_es2_monocle.so
./armeabi/libwebview.so
I believe these are the jni abi libs needed for arm abi. I think we need the same set of libs for MIPS.
Is this supported in gluon/javafxports?
I looked for abi options in the gluon-mobile and javfxports doc but did not find any.
I tried placing this snippet in the build.gradle but it didn't work.
splits {
abi {
enable true
reset()
include 'mips', 'mips64'
universalApk true
}}
Any Ideas?
Thank you,
David

Windows mingw pcsc issue

We use mingw in out Qt projects on Windows. When we try to use PCSC library, we get an exception trying to connect to the smart card reader. We do not experience this problem when we use MSVC. Yet, we do not want to change the whole architecture just for this issue. The error message we get is:
error: undefined reference to `_imp__g_rgSCardT0Pci'
How can we solve this problem?
The problem appeared to be 64 bit winscard.lib library.

Xilinx ISE fails to use std_logic_1164

I have Xilinx ISE 13.1 installed on an ACER laptop with Win7 (64bit).
After installing the software (WebPACK version) I created an empty VHDL module and ran "check syntax". The process failed with the following errors:
Error:HDLParsers:3016 - "C:/Users/..." Library unit standard required for unit std_logic_1164 does not exist in library std.
and
Error:HDLParsers:3046 - "C:/Users/..." Line 21. Library unit STD_LOGIC_1164 is not available in library IEEE.
This also occurs if I run synthesize.
Googling solutions hasn't been very effective and the hyperlink for the error in ISE leads to a "page not found" result from the Xilinx website.
If anyone can shed any light on this I'd be very grateful.
make sure you install Xilin in a directory that does not contain space, some of Xilinx scripts will not work if your path contains a space.
It is a common mistake and should have been taken care of the installation SW, but Xilinx doesn't seem to be able to fix it after all these years.
Try to re-install the SW, make sure you install all your libraries and programs on the C:\ or what ever root directory you have and absolutely not under "program files" or "My Document" or something like that.

Resources