关于virtex2中rom的问题,请帮忙!
我现在再做一个译码电路,好几处需要查表,我想用rom是最合适了。我查表的程序都是这
样写的,输入唯一对应一个输出,没有时钟,综合时选择virtex2 xc2v1000器件。程序的形
式如下:
output <="xxxxxx" when input = "xxxxx" else
"xxxxxxx" when input = "xxxxxx" else
"xxxxxxx" when input = "xxxxx" else
.
.
.
"xxxxxxx" when input = "xxxxx" else
"xxxxxxx";
现在有个问题不明白,我的2段程序都是按如上格式写的,其中较大的一段,synplify都给
综合成rom256*1,rom128*1之类;而另外较小的一段,synplify都给综合成lut中的各种门电
路、数据选择器之类。不知virtex2中,是否存在专门的rom,如同selectRAM一样(看了
datasheet,好像没有说),如果有,那么在资源占用上,是不是前者的综合更合理些?如
何调用这些rom呢?或者rom的设计还有什么别的方法?多谢了!