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

原文地址:https://www.cnblogs.com/freshair_cnblog/p/1992428.html