pli01.v

来自「你自己漫漫理解吧」· Verilog 代码 · 共 31 行

V
31 行
字号
////////////////////////////////////////////////////////////////////////
//
// title: testbench for tf_putp() test to write a simple value 
//
// This test writes a value to a scalar reg data type
//
////////////////////////////////////////////////////////////////////////
`timescale 1ns/1ns
module test;

  reg r1;

  initial
    begin
      #1
      $display("\nTest Bench: executing \"$putp_test(r1);\" ");
      $display("Test Bench: expect tfarg 1 to receive 1 (hex)");
      $putp_test(r1);
      #1
      $display("Test Bench: tfarg 1 received %h (hex)", r1);

      #1 $display("\n\n--------End of Test Bench--------");
      $finish;
    end
endmodule
`ifdef silos
!sim
!err
!exit
`endif

⌨️ 快捷键说明

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