Sha256: f1ee6281556ff3dd4639402a8bd8980e4561ff8f59cced20a9982c783c57ae8e
Contents?: true
Size: 627 Bytes
Versions: 1
Compression:
Stored size: 627 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)); // generate clock for the design under test initial clk = 0; always #5 clk = !clk; endmodule
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-vpi-13.0.0 | samp/pipelined_alu/hw5_unit_test_bench.v |