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: 
Explorer
Explorer
208 Views
Registered: ‎09-19-2010

xpm_memory_sprom [Synth 8-6058] Synth Error: [XPM_MEMORY 16-4] ADDR_WIDTH_B (0) value is outside of legal range

Hi

I need to have a rom in my design and so i am using xpm_memory_sprom.

this is obviously a simple single port rom. it has only one port (port a).

at the time of synthesis vivado complains that the ADDR_WIDTH_B is 0 .

i dont understand this at all. the ip does not have any port B.

 

code is something like this:

xpm_memory_sprom_log2_calc_inst0 : xpm_memory_sprom
generic map (
ADDR_WIDTH_A => 4,
AUTO_SLEEP_TIME => 0,
ECC_MODE => "no_ecc",
MEMORY_INIT_FILE => "none",
MEMORY_INIT_PARAM => "00,00,00,00,80,96,a9,bb,cb,da,e7,f4",
MEMORY_OPTIMIZATION => "true",
MEMORY_PRIMITIVE => "auto",
MEMORY_SIZE => 12,
MESSAGE_CONTROL => 0,
READ_DATA_WIDTH_A => 8,
READ_LATENCY_A => 1,
USE_MEM_INIT => 1,
WAKEUP_TIME => "disable_sleep"
)
port map (
dbiterra => open,
douta => s_log2_fraction0,
sbiterra => open,
addra => s_lut_index0, -- the value coming to this port should be max 127.
clka => clk,
ena => '1',
injectdbiterra => '0',
injectsbiterra => '0',
regcea => '1',
rsta => rst,
sleep => '0'
);

 

 

0 Kudos
1 Reply
Moderator
Moderator
174 Views
Registered: ‎11-09-2015

Re: xpm_memory_sprom [Synth 8-6058] Synth Error: [XPM_MEMORY 16-4] ADDR_WIDTH_B (0) value is outside of legal range

Hi @mamisadegh3 

Just change the parameter MEMORY_SIZE to be a multiple of READ_DATA_WIDTH_A and it will pass synthesis.

For READ_DATA_WIDTH_A = 8 and ADDR_WIDTH_A = 4, MEMORY_SIZE  should be 2^4 * 8 = 128 bits.

12 does not makes sense.

Regards


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos