0

我正在对具有测试台和verilog代码和综合脚本的设计进行后期合成仿真..这给了我verilog网表文件。我能够在终端上看到预合成仿真 - 波形和 $monitor 值转储。这个相同的 $monitor 值转储也告诉我后期合成模拟工作正常。

但是我看不到合成后的波形

我正在通过我的测试平台转储一个 .vcd 文件,以便通过 $monitor 查看仿真波形。

工具:用于合成的设计愿景 NCVerilog 用于编译

`timescale 1ns  / 10 ps
module CLA_16_4_tb ();

reg  [15:0] A=0, B=0 ;
wire [15:0] Sum;
wire Cout;
reg  reset,clock;

initial begin : A_TB
           A = 0;
      #10  A = 16'h00FF;
      #30  A = 16'h0000;
      #30  A = 16'h80FF;
      #30  A = 16'h0000;
      #30  A = 16'h00FF;
      #30  A = 16'h0000;
      #30  A = 16'h1111;
    end

initial begin : B_TB
          B = 0;
      #10 B = 16'hFF01;
      #30 B = 16'h0000;
      #30 B = 16'h8080;
      #30 B = 16'h0000;
      #30 B = 16'hFF80;
      #30 B = 16'h0000;
      #30 B = 16'h2222;
    end

initial begin : reset_TB
           reset = 0; 
       #2  reset = 1;
       #5  reset = 0;
       #55  reset = 1;
       #5   reset = 0;
       #55  reset = 1;
       #5   reset = 0;
       #55  reset = 1;
       #5   reset = 0;
       #45 $finish;
    end

initial begin : clock_TB
            clock = 0;
        #5  clock = 1;
  forever   #5  clock = ~clock;
    end

CLA_16_4 U1 (A, B, Sum, Cout, clock, reset);

initial begin 
        $monitor("TIME :",$time,"   HEX VALUES : a_inp = %h    b_inp = %h    s_out = %h    c_out = %h",A,B,Sum,Cout);
    end

initial begin
        $dumpfile("CLA_16_4_tb.vcd");
        $dumpvars(0,CLA_16_4_tb);
end 
endmodule

$monitor 终端值转储

4

1 回答 1

0

当您运行综合后网表仿真时,您可能在 ncverilog 命令行中缺少 +access+rwc,因此可能看不到波形转储中的信号。

于 2016-07-11T21:33:26.237 回答