memory pattern file
$readmemh(“file_name”,mem_array,start_addr,end_addr);
其中要求file_name是memory_pattern file。
例如:
…
initial begin
$readmemh(“memory.list”,my_mem);
end
memory.list的内容大概是这样子:
1100_1100 //this is the first addr,i.e 8’h00
1010_1010 //this is the second addr, i.e 8’h01
@ 55 //jump to new address 8’h55
0101_0101 //this is address 8’h55
0110_1001 //this is address 8’h56
posted on 2011-03-23 13:39 freshair_cn 阅读(172) 评论(0) 编辑 收藏 举报