Hi,
I have a very basic project in ISE, I'm using an IP core for generating a 96MHz clock from a 50MHz input, and use it to blink some LED's and generate a second CLOCK on another IO, the project works perfectly fine, Now I want to make simulation in Modelsim, the Modelsim lunches, But it would complain with these errors
# ** Error: ipcore_dir/Clock96MHz.v(77): Module 'IBUFG' is not defined.
# ** Error: ipcore_dir/Clock96MHz.v(109): Module 'PLL_BASE' is not defined.
# ** Error: ipcore_dir/Clock96MHz.v(128): Module 'BUFG' is not defined.
How should I solve the problem, the ISE project is attached for your reference.
Have you generated/compiled the libraries for ModelSim using compxlib?
I have just compiled the project with this right click menu
I do not know How to do compxlib!?
emece67 is this the way to compile libs?
I can not resolve the issues in here, I will get these errors in modelsim
# ** Error: ipcore_dir/clokgen.v(77): Module 'IBUFG' is not defined.
# ** Error: ipcore_dir/clokgen.v(105): Module 'DCM_SP' is not defined.
# ** Error: ipcore_dir/clokgen.v(134): Module 'BUFG' is not defined.
# ** Error: ipcore_dir/clokgen.v(138): Module 'BUFG' is not defined.
# ** Error: ipcore_dir/ROM.v(114): Module 'BLK_MEM_GEN_V7_3' is not defined.
I have attached all the possible project settings,
Any Idea what should I do?
I have changed the VoptFlow to 0 like this
VoptFlow = 0
In modelsim.ini
Now those errors would go away and a new error comes!
Error (suppressible): (vlog-12110) All optimizations are disabled because the -novopt option is in effect. This will cause your simulation to run very slowly. If you are using this switch to preserve visibility for Debug or PLI features, please see the User's Manual section on Preserving Object Visibility with vopt. -novopt option is now deprecated and will be removed in future releases.
But there is novopt in modelsim.ini file
Any help in here?
Are Xilins' IP library included in your VSIM command line in the transcript?
Are the libraries properly located in Modelsim's available library list?
EG: (Altera example..)
My VSIM line:
vsim -t 1ps -L altera_ver -L lpm_ver -L sgate_ver -L altera_mf_ver -L altera_lnsim_ver -L cycloneive_ver -L work -voptargs="+acc" BrianHG_DDR3_PHY_SEQ_tb
All the -L except for '-L work (contains all my source codes)' contain the Altera IP Mega-functions my DDR3 core needs to simulate. IE, Cyclone PLL and DDRIO buffers, FIFO, CORE ram and SERDES which I use.
See photo: (Xilinx could have set this up automatically like Altera. If not, it just introduces hassle...)
Thanks, I could do the simulation by downgrading Modelsim to 10.6d version, I think there should be something with the new version, maybe it's not compatible with ISE.
Thanks, I could do the simulation by downgrading Modelsim to 10.6d version, I think there should be something with the new version, maybe it's not compatible with ISE.
Of course it's compatible with ISE. You just need to make sure you've compiled the ISE libraries with the version of ModelSim you're using, and that the library is visible to your design.
This might be better answered on Xilins' forum, or even try to google -> 'Modelsim Error: Module 'BUFG' is not defined.'
Of course it's compatible with ISE. You just need to make sure you've compiled the ISE libraries with the version of ModelSim you're using, and that the library is visible to your design.
That's what I have done exactly for a lower version number! the exact things I do for the new version, simply do not work.
Search for a file called "compxlib.log" in your ISE install directory. That should contain a few hints on what went wrong. It also contains the command that was used for that particular compxlib run. If you want, you can use that to re-run compxlib.
AFAIK there is a separate directory with compiled xilinx code for each simulator version.
So if you have 2 different versions of Modelsim installed, you should have 2 compiled-xilinx-library sub-directories.
In general ... reading the compxlib logs should give you enough information of why things are behaving the way they are.
... Oh, and of course the ISE log messages you get when launching modelsim from ISE.