- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
MMCM DRP in VHDL?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
12-15-2010 05:36 PM
Hi,
In the xapp878, there is a bit group called Lock Group. I want to know how to set the LockReg1, LockReg2, LockReg3 registers in VHDL. There seems no algorithm used to calculate these bits in the registers, and I have a difficulty understanding the following statement in the mmcm_drp_func.h:
--------------------------------------------------
function [39:0] mmcm_lock_lookup
(
input [6:0] divide // Max divide is 64
);
reg [2559:0] lookup;
...
lookup = {
40'b00110_00110_1111101000_1111101001_0000000001,
...
};
// Set lookup_entry with the explicit bits from lookup with a part select
mmcm_lock_lookup = lookup[ ((64-divide)*40) +: 40]; --??
--------------------------------------------------
what is the meaning of the "((64-divide)*40) +: 40"? And what is the VHDL equivalent ? Thanks!
PS: can the lookup table in the reference design be applied to the XC6VLX240T-FF1156 ?
Re: MMCM DRP in VHDL?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
12-29-2010 05:43 PM
It's C style. And it is same as Verilog. (64-divide)*40+ is LSB. :40 is data width.
Re: MMCM DRP in VHDL?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-02-2011 09:21 PM
----------------------------------------------------------------
Yes, I do this for a living.











