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.
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.