Can I parameterize synthesis attribute in XST

Guest
I tried doing :

parameter TYPE = 0;

generate
if(TYPE == 0)
begin:TYPE_DIST
//synthesis attribute RAM_STYLE ram_aw_brd DISTRIBUTED
end
else
begin:TYPE_BLK
//synthesis attribute RAM_STYLE ram_aw_brd BLOCK
end
endgenerate

But the XST always sees attribute as BLOCK iirespective of the value of
TYPE.

Is there a way of doing such kind of parameterization. I tried using
`ifdef, `define but didn't work either.
 
<chanderdogra@gmail.com> wrote in message
news:1108742207.786608.17020@g14g2000cwa.googlegroups.com...
I tried doing :

parameter TYPE = 0;

generate
if(TYPE == 0)
begin:TYPE_DIST
//synthesis attribute RAM_STYLE ram_aw_brd DISTRIBUTED
end
else
begin:TYPE_BLK
//synthesis attribute RAM_STYLE ram_aw_brd BLOCK
end
endgenerate

But the XST always sees attribute as BLOCK iirespective of the value of
TYPE.

Is there a way of doing such kind of parameterization. I tried using
`ifdef, `define but didn't work either.
"attributes" may work for you e.g.

(*RAM_STYLE = "BLOCK"*) RAM ram_aw_brd (...);

HTH,
Jim
jimwu88NOOOSPAM@yahoo.com (remove capital letters)
http://www.geocities.com/jimwu88/chips
 

Welcome to EDABoard.com

Sponsor

Back
Top