已有 1506 次阅读| 2011-7-25 22:04 |个人分类:HDL
$readmemh: read data from a file as hexadecimal, data in the file is seperated by space.
example:
reg [7:0] reg_mem [0:63];
$readmemh("file_name.vec", reg_mem );
$readmemb: the same as $readmemh, except reading data as binary
评论
查看 »
小黑屋| 手机版| 关于我们| 联系我们| 在线咨询| 隐私声明| EETOP 创芯网 ( 京ICP备:10050787号 京公网安备:11010502037710 )
GMT+8, 2024-11-5 20:18 , Processed in 0.009114 second(s), 8 queries , Gzip On, Redis On.