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: 
Contributor
Contributor
348 Views
Registered: ‎11-08-2018

EQ_COMPARE_MACRO

Hi!

I have a question on the EQ_COMPARE_MACRO and was wondering if anyone has used it in Ultrascale device. The macro template does not show the target device which make me wonder if this is an usable macro for Kintex device

My second question is with regards to its implementation. I want to use it in a dynamic pattern mode. So, for the dynamic pattern mode what should be the settings for . Shall I leave them as default or change them even though I am not using them.


.MASK(48'h00000000), // Select bits to be masked, must set SEL_MASK="MASK"
.
.STATIC_PATTERN(8'h00000000), // Specify static pattern, must set SEL_PATTERN = "STATIC_PATTERN"
.WIDTH(8) // Comparator output bus width, 1-48


) EQ_COMPARE_MACRO_inst (
.Q(start), // 1-bit output indicating a match
.CE(hit), // 1-bit active high input clock enable
.CLK(clk), // 1-bit positive edge clock input
.DATA_IN(coarsecnt), // Input Data Bus, width determined by WIDTH parameter
.DYNAMIC_PATTERN(coarsecnt), // Input Dynamic Match/Mask Bus, width determined by WIDTH parameter
.RST(rst) // 1-bit input active high reset
);

0 Kudos
2 Replies
Moderator
Moderator
262 Views
Registered: ‎08-16-2018

Re: EQ_COMPARE_MACRO

1. Macro template shows the target device as well. It supports Kintex device (see attached figure). 

2. You need to check the default settings as well. 


/ 7\7     Meher Krishna Patel, PhD
\ \        Senior Product Application Engineer, Xilinx
/ /        
\_\/\7   It is not so much that you are within the cosmos as that the cosmos is within you...
Screenshot_1.jpg
0 Kudos
Xilinx Employee
Xilinx Employee
231 Views
Registered: ‎09-18-2018

Re: EQ_COMPARE_MACRO

Hi @ami.kum 

For dynamice pattern, the sel_pattern generic needs to be changed to the Dynamic_pattern value. Please refer the language templates of DSP48 available in the Vivado.

 

EQ_COMPARE_MACRO_inst : EQ_COMPARE_MACRO
generic map (
DEVICE => "7SERIES", -- Target Device: "VIRTEX5", "7SERIES"
LATENCY => 2, -- Desired clock cycle latency, 0-2
MASK => X"000000000000", -- Select bits to be masked, must set
-- SEL_MASK = "MASK"
SEL_MASK => "MASK", -- "MASK" = use MASK generic,
-- "DYNAMIC_PATTERN = use DYNAMIC_PATTERN input bus
SEL_PATTERN => "DYNAMIC_PATTERN", -- "DYNAMIC_PATTERN" = use DYNAMIC_PATTERN input bus
-- "STATIC_PATTERN" = use STATIC_PATTERN generic
STATIC_PATTERN => X"000000000000", -- Specify static pattern,
-- must set SEL_PATTERN = "STATIC_PATTERN
WIDTH => 48) -- Comparator output bus width, 1-48
port map (
Q => Q, -- 1-bit output indicating a match
CE => CE, -- 1-bit active high input clock enable input
CLK => CLK, -- 1-bit positive edge clock input
DATA_IN => DATA_IN, -- Input Data Bus, width determined by WIDTH generic
DYNAMIC_PATTERN, => DYNAMIC_PATTERN, -- Input Dynamic Match/Mask Bus, width determined by WIDTH generic
RST => RST -- 1-bit input active high reset
);

0 Kudos