嗨嘉宝
我试图从包含一个十六进制的文本文件初始化一个二维数组
每行数据。
我会用基本上的初始化数据合成ROM
图像数据(十六进制)。
它是这样的:
参数pix_max = 921600;
reg [7:0] img_rom [pix_max:0];
初始
$ readmemh(“hex.txt”,img_rom);
应该如此,当我合成RTL时,它可以很好地处理小图像,最高可达pix_max = ~4900。
问题是当我尝试合成更大的图像时,合成过程似乎永远不会结束。
钻机包括Intel Core i3 - 2100 @ 3.10 GHz和4 GB DDR 3 RAM。
操作系统 - 32位Windows 7旗舰版。
FPGA - Spartan 3E 500k门。
也许,这是FPGA容量不匹配?
你认为考虑使用外部RAM来存储图像数据和实现是明智的吗?
FPGA上的RAM控制器可以转换图像像素。
你最好的看法是什么?
AJ
以上来自于谷歌翻译
以下为原文
Hi Gabor
I am trying to initialize a two dimentional array from text file containing one hex
data per line. I would synthesize the ROM with the initialized data which is basically
image data (in hex). It goes something like this:
parameter pix_max = 921600;
reg [7:0] img_rom[pix_max:0];
initial
$readmemh("hex.txt", img_rom);
As it should, when I synthesize the RTL it works perfect with small images, that is upto pix_max = ~4900.
Problem is when I try to synthesize larger images, the synthesis process seems to never end.
Rig comprises Intel Core i3 - 2100 @ 3.10 GHz and 4 GB DDR 3 RAM. OS - 32 bit windows 7 Ultimate.
FPGA - Spartan 3E 500k gates. Perhaps, it is the FPGA capacity mismatch?
Do you think it would be wise to consider using an external RAM to staore the image data and implement
RAM controller on the FPGA to transrecieve the image pixels. What is you best opinion?
AJ
嗨嘉宝
我试图从包含一个十六进制的文本文件初始化一个二维数组
每行数据。
我会用基本上的初始化数据合成ROM
图像数据(十六进制)。
它是这样的:
参数pix_max = 921600;
reg [7:0] img_rom [pix_max:0];
初始
$ readmemh(“hex.txt”,img_rom);
应该如此,当我合成RTL时,它可以很好地处理小图像,最高可达pix_max = ~4900。
问题是当我尝试合成更大的图像时,合成过程似乎永远不会结束。
钻机包括Intel Core i3 - 2100 @ 3.10 GHz和4 GB DDR 3 RAM。
操作系统 - 32位Windows 7旗舰版。
FPGA - Spartan 3E 500k门。
也许,这是FPGA容量不匹配?
你认为考虑使用外部RAM来存储图像数据和实现是明智的吗?
FPGA上的RAM控制器可以转换图像像素。
你最好的看法是什么?
AJ
以上来自于谷歌翻译
以下为原文
Hi Gabor
I am trying to initialize a two dimentional array from text file containing one hex
data per line. I would synthesize the ROM with the initialized data which is basically
image data (in hex). It goes something like this:
parameter pix_max = 921600;
reg [7:0] img_rom[pix_max:0];
initial
$readmemh("hex.txt", img_rom);
As it should, when I synthesize the RTL it works perfect with small images, that is upto pix_max = ~4900.
Problem is when I try to synthesize larger images, the synthesis process seems to never end.
Rig comprises Intel Core i3 - 2100 @ 3.10 GHz and 4 GB DDR 3 RAM. OS - 32 bit windows 7 Ultimate.
FPGA - Spartan 3E 500k gates. Perhaps, it is the FPGA capacity mismatch?
Do you think it would be wise to consider using an external RAM to staore the image data and implement
RAM controller on the FPGA to transrecieve the image pixels. What is you best opinion?
AJ
举报