verilog 可以用$fopen 打开文件,然后用$fscanf.可以参考http://www.hdlworks.com/hdl_corner/verilog_ref/items/SystemFileTasks.htm
使用系统函数$readmem("")