time_sim.tv

来自「实用的程序代码」· TV 代码 · 共 57 行

TV
57
字号
// VERILOG TestFixture Template produced by ngd2ver M1.4.12// Design file: time_sim.nga// Date:Tue Jan  6 19:28:32 1998// ATTENTION: This file was created by NGD2VER and may therefore be overwritten// by subsequent runs of NGD2VER. Xilinx recommends that you copy this file to// a new name, or 'paste' this text into another file, to avoid accidental loss// of data.`timescale 1 ns/1 psmodule test;  reg A;  reg B;  reg C;  reg D;  wire MUX_OUT;  reg [1:0] SEL;  reg GTS;  `define GTS_SIGNAL test.GTS  if_ex uut ( .A (A) , .B (B) , .C (C) , .D (D) , .MUX_OUT (MUX_OUT) , .SEL (SEL) );  initial begin    $timeformat(-9,3,"ns",12);    $shm_open("time_sim.shm");    $shm_probe("AS");  end  initial begin    $display("           T ABCDMS");    $display("           i     UE");    $display("           m     XL");    $display("           e     _[");    $display("                 O1");    $display("                 U:");    $display("                 T0");    $display("                  ]");    $monitor("%t",$realtime,, A, B, C, D, MUX_OUT, "%h", SEL );  end  initial begin      `GTS_SIGNAL = 0;    #100      A = 0 ;      B = 0 ;      C = 0 ;      D = 0 ;      SEL = 0 ;    #1000 $stop;    // #1000 $finish;  endendmodule

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?