主要分三部分:
1.RTL级行为仿真:一种在综合和实现前用来验证设计的方法,主要用来检测模块的功能是否符合要求。
2.综合后仿真:综合后使用网表进行仿真,以验证综合后设计是否满足要求,包括时序仿真和功能仿真。
3.实现后仿真:布线实现后进行功能仿真和时序仿真,接近真实的运行情况。
4.如想查看仿真波形数据保存成txt模式如下:
integer save_file;
initial begin
save_file = $fopen("D:/works/RYD/ad9361/own/liugan_v2/test.txt"); //打开所创建的文件;若找不到该文件,则会自动创建该文件。
if(save_file == 0)begin
$display ("can not open the file!"); //如果创建文件失败,则会显示"can not open the file!"信息。
$stop;
end
end
always @(posedge sys_clk_40) begin
if (data_tvalid) begin
$fdisplay(save_file,"%d",data_tdata); //在使能信号为高时,每当时钟的上升沿到来时将数据写入到所创建的.txt文件中
end
end