data/full_repos/permissive/120043621/tests/tb_multiplier.sv
1: b'%Warning-STMTDLY: data/full_repos/permissive/120043621/tests/tb_multiplier.sv:19: Unsupported: Ignoring delay on this delayed statement.\n        #5;\n        ^\n                  ... Use "/* verilator lint_off STMTDLY */" and lint_on around source to disable this message.\n%Warning-STMTDLY: data/full_repos/permissive/120043621/tests/tb_multiplier.sv:24: Unsupported: Ignoring delay on this delayed statement.\n        #5;\n        ^\n%Warning-STMTDLY: data/full_repos/permissive/120043621/tests/tb_multiplier.sv:29: Unsupported: Ignoring delay on this delayed statement.\n        #5;\n        ^\n%Warning-STMTDLY: data/full_repos/permissive/120043621/tests/tb_multiplier.sv:34: Unsupported: Ignoring delay on this delayed statement.\n        #5;\n        ^\n%Warning-STMTDLY: data/full_repos/permissive/120043621/tests/tb_multiplier.sv:39: Unsupported: Ignoring delay on this delayed statement.\n        #5;\n        ^\n%Error: data/full_repos/permissive/120043621/tests/tb_multiplier.sv:9: Cannot find file containing module: \'multiplier\'\n    multiplier DUT(\n    ^~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/120043621/tests,data/full_repos/permissive/120043621/multiplier\n             data/full_repos/permissive/120043621/tests,data/full_repos/permissive/120043621/multiplier.v\n             data/full_repos/permissive/120043621/tests,data/full_repos/permissive/120043621/multiplier.sv\n             multiplier\n             multiplier.v\n             multiplier.sv\n             obj_dir/multiplier\n             obj_dir/multiplier.v\n             obj_dir/multiplier.sv\n%Error: Exiting due to 1 error(s), 5 warning(s)\n        ... See the manual and https://verilator.org for more assistance.\n'
module tb_multiplier();
    reg signed [31:0] a, b, out;
    reg [9:0] i;
    reg [21:0] f;

    assign i = out[31:22];
    assign f = out[21:0];

    multiplier DUT(
        .a(a),
        .b(b),
        .out(out)
    );

    initial begin

        a = {10'b0, 1'b1, 21'b0};
        b = {10'b0, 3'b101, 19'b0};
        #5;


        a = {10'b1, 2'b11, 20'b0};
        b = {10'b0, 6'b000001, 16'b0};
        #5;


        a = {9'b111111111, 1'b0, 1'b1, 21'b0};
        b = {10'b1, 1'b1, 21'b0};
        #5;


        a = {10'b10, 22'b0};
        b = {7'b1111111, 3'b010, 22'b0};
        #5;


        a = {10'b1111111111, 1'b1, 21'b0};
        b = {8'b11111111, 2'b01, 22'b0};
        #5;

        $stop;
    end
endmodule
module tb_multiplier();

    reg signed [31:0] a, b, out;
    reg [9:0] i;
    reg [21:0] f;

    assign i = out[31:22];
    assign f = out[21:0];

    multiplier DUT(
        .a(a),
        .b(b),
        .out(out)
    );

    initial begin

        a = {10'b0, 1'b1, 21'b0};
        b = {10'b0, 3'b101, 19'b0};
        #5;


        a = {10'b1, 2'b11, 20'b0};
        b = {10'b0, 6'b000001, 16'b0};
        #5;


        a = {9'b111111111, 1'b0, 1'b1, 21'b0};
        b = {10'b1, 1'b1, 21'b0};
        #5;


        a = {10'b10, 22'b0};
        b = {7'b1111111, 3'b010, 22'b0};
        #5;


        a = {10'b1111111111, 1'b1, 21'b0};
        b = {8'b11111111, 2'b01, 22'b0};
        #5;

        $stop;
    end
endmodule