UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Visitor zhangka12
Visitor
4,921 Views
Registered: ‎07-12-2012

MMCM_ADV

Hey all, I have this bluespec code that incorporates a core generated by Xilinx. This core used by Xilinx uses a Xilinx primitive called "MMCM_ADV".

When I simulate the code on ISIM, the design works perfectly.
However, when I try to then simulate it in model sim, it doesn't work. I've narrowed (at least) part of the problem down to this Xilinx primitive MMCM_ADV. It has 3 inputs (which I confirmed is being inputted correctly) and multiple outputs. I've noticed that the outputs from this modules are incorrect (Z or X) when simulated from modelsim but not in ISIM even though I've confirmed that in both cases, the inputs are all the same.
Additionally, I know that I linked Xilinx's verilog primitives path to modelsim such that modelsim knows where to search.
Also, I found that I have modelsim 6.4b, which is the minimum version needed according to XIlinx: http://www.xilinx.com/support/documentation/ip_documentation/mmcm_module.pdf
Anyone encountered a similar problem to this and knows how to solve it?
Tags (3)
0 Kudos
3 Replies
Xilinx Employee
Xilinx Employee
4,912 Views
Registered: ‎07-16-2008

Re: MMCM_ADV

How did you "link Xilinx's verilog primitive path to Modelsim"? Did you run simulation in Modelsim standalone? What command did you use?

 

If you have pre-compiled Xilinx simulation libraries, please make sure "unisims_ver" library is referenced in vsim command.

-------------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos
Visitor zhangka12
Visitor
4,908 Views
Registered: ‎07-12-2012

Re: MMCM_ADV

By "link Xilinx's verilog primitive path to Modelsim", I mean that under the Xilinx folder, I found verilog files for some of the Xilinx primitives such as MMCM_ADV under the folders:

 

verilog/xeclib/unisims

and 

verilog/src/unimacro

 

As such, I included the directories above as libraries to look into when I generated the modelsim binary executables.

 

However, it seems that when I try to look at those primitive verilog files, all those files contain are the inputs/outputs declarations but none of the actual logic.

0 Kudos
Xilinx Employee
Xilinx Employee
4,893 Views
Registered: ‎07-16-2008

Re: MMCM_ADV

You referred to the wrong directory. The MMCM_ADV primitive is located at $XILINX/verilog/src/unisims.

-------------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos