Sha256: 6cb62d9103c8e99a829e34f9b31754989d70b45dbddc4464915764a6fd12852f

Contents?: true

Size: 756 Bytes

Versions: 4

Compression:

Stored size: 756 Bytes

Contents

/* This file is the Verilog side of the bench. */
module hw5_unit_test_bench;

  // instantiate the design under test
    reg  clk;
    reg  reset;
    reg [`DATABITS-1:0] in_databits;
    reg [`WIDTH-1:0] a;
    reg [`WIDTH-1:0] b;
    reg [1:0] in_op;
    wire [`WIDTH-1:0] res;
    wire [`DATABITS-1:0] out_databits;
    wire [1:0] out_op;

    hw5_unit  hw5_unit_test_bench_design(.clk(clk), .reset(reset), .in_databits(in_databits), .a(a), .b(b), .in_op(in_op), .res(res), .out_databits(out_databits), .out_op(out_op));

  // connect to the Ruby side of this bench
    initial begin
      $ruby_init("ruby", "-rubygems", "hw5_unit_test_bench.rb");
    end

    always begin
      #1 clk = 0;
      #1 $ruby_relay;
      #1 clk = 1;
    end

endmodule

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ruby-vpi-12.0.0 samp/pipelined_alu/hw5_unit_test_bench.v
ruby-vpi-12.0.1 samp/pipelined_alu/hw5_unit_test_bench.v
ruby-vpi-12.0.2 samp/pipelined_alu/hw5_unit_test_bench.v
ruby-vpi-12.1.0 samp/pipelined_alu/hw5_unit_test_bench.v