Guest
Hi all,
I wrote a ROM with :
reg [7:0] ROM_values [0:255];
initial
$readmemh("rom.hex",ROM_values,0,255);
And access to it with a for loop like this :
reg [7:0] match [0:31];
always @(posedge clock)
if (reset)
for (i=0;i<=31;i=i+1)
match <= 8'h00;
else
for (i=0;i<=31;i=i+1)
match <= ~(data ^ ROM_values);
In ISE 8.1 synthesis I see that ROM_values is 32 ROM 256*8 bit instead
of ONE unique ROM 256*8 bits
How can I wrote this to have a unique ROM ?
Thanks
I wrote a ROM with :
reg [7:0] ROM_values [0:255];
initial
$readmemh("rom.hex",ROM_values,0,255);
And access to it with a for loop like this :
reg [7:0] match [0:31];
always @(posedge clock)
if (reset)
for (i=0;i<=31;i=i+1)
match <= 8'h00;
else
for (i=0;i<=31;i=i+1)
match <= ~(data ^ ROM_values);
In ISE 8.1 synthesis I see that ROM_values is 32 ROM 256*8 bit instead
of ONE unique ROM 256*8 bits
How can I wrote this to have a unique ROM ?
Thanks