reg signed [15:0] data_i_pattern_buffer [1024:0];
reg signed [15:0] data_q_pattern_buffer [1024:0];
$readmemh("out_i.txt",data_i_pattern_buffer,0,1024);
$readmemh("out_q.txt",data_q_pattern_buffer,0,1024);
reg [31:0] edge_tbl_rom[0:1024];
initial begin
//Initial
$readmemh("/home/sp/1.hex",edge_tbl_rom,0,1024);
end
I build this code for FPGA Kintex 7 - 410T in Xilinx Vivado 20019. For memory with size of 255 it works but for more than 255,This will generally work, if not, you probably experience a tool bug. Nothing we can discuss without mentioning tool and implementation details.
This tip is mentioned in The Verilog ® Golden Reference GuideFinally the last reason that I found:readmemh is not synthesisable for vivado xilinx......it is ignored........
ُThanks, But this case of being able to be synthesized is written in some documents that it can be synthesized, in some it is not possible to be synthesized, I don't know the reason, but for my FPGA case, it seems that it is not possible to be synthesized.I'd trust Vivado user guide in the first place. It marks $readmemh as supported in the most recent version.
Presently I'm not using Xilinx devices in active projects, thus I can't tell about $readmemh detail issues. Perhaps a Xilinx practioner can comment.
fe63 fee8 ff73 0 8d 118 19d 21b
fe63
fee8
ff73
0000
008d
0118
019d
021b
reg [31:0] edge_tbl_rom[0:1024];
initial begin
//Initial
$readmemh("/home/sp/1.hex",edge_tbl_rom,0,1024);
end
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?