data/full_repos/permissive/491934675/ECE251/registerfile/regfile_tb.v
1: b'%Error: data/full_repos/permissive/491934675/ECE251/registerfile/regfile_tb.v:1: Cannot find include file: regfile.v\n`include "regfile.v" \n         ^~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/491934675/ECE251/registerfile,data/full_repos/permissive/491934675/regfile.v\n             data/full_repos/permissive/491934675/ECE251/registerfile,data/full_repos/permissive/491934675/regfile.v.v\n             data/full_repos/permissive/491934675/ECE251/registerfile,data/full_repos/permissive/491934675/regfile.v.sv\n             regfile.v\n             regfile.v.v\n             regfile.v.sv\n             obj_dir/regfile.v\n             obj_dir/regfile.v.v\n             obj_dir/regfile.v.sv\n%Warning-STMTDLY: data/full_repos/permissive/491934675/ECE251/registerfile/regfile_tb.v:23: Unsupported: Ignoring delay on this delayed statement.\n        #10;\n        ^\n                  ... Use "/* verilator lint_off STMTDLY */" and lint_on around source to disable this message.\n%Warning-STMTDLY: data/full_repos/permissive/491934675/ECE251/registerfile/regfile_tb.v:28: Unsupported: Ignoring delay on this delayed statement.\n    #20;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/491934675/ECE251/registerfile/regfile_tb.v:33: Unsupported: Ignoring delay on this delayed statement.\n    #20;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/491934675/ECE251/registerfile/regfile_tb.v:40: Unsupported: Ignoring delay on this delayed statement.\n    #10;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/491934675/ECE251/registerfile/regfile_tb.v:43: Unsupported: Ignoring delay on this delayed statement.\n    #10;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/491934675/ECE251/registerfile/regfile_tb.v:46: Unsupported: Ignoring delay on this delayed statement.\n    #20;\n    ^\n%Error: data/full_repos/permissive/491934675/ECE251/registerfile/regfile_tb.v:54: Unsupported or unknown PLI call: $dumpfile\n    $dumpfile("regfile_tb.vcd");\n    ^~~~~~~~~\n%Error: data/full_repos/permissive/491934675/ECE251/registerfile/regfile_tb.v:55: Unsupported or unknown PLI call: $dumpvars\n    $dumpvars(0, regfile_tb);\n    ^~~~~~~~~\n%Error: Exiting due to 3 error(s), 6 warning(s)\n'
module regfile_tb();

reg clk, we;
reg [1:0] writesel, selA, selB;
reg [7:0] datain, outA, outB;
reg [1:0] flagin, flagout;

registers reg1( we, writesel, selA, selB, flagin, datain, outA, outB, flagout);

initial begin
    clk = 1;
    we = 1;
    writesel = 2'b00;
    selA = 2'b00;
    selB = 2'b00;
    flagin = 2'b00;
    datain = 12;

    for(integer i = 0; i<20; i = i+1) begin
        clk = ~clk;
        #10;
    end
end

initial begin
    #20;
    we = 0;
    writesel = 1;
    datain = 3;

    #20;
    we = 1;
    writesel = 2;
    selA = 2;
    selB = 2;
    datain = 1;

    #10;
    writesel = 3;
    datain = 2;
    #10;

    
    #20;
    we = 0;
    selA = 3;
    selB = 2;

end

initial begin
    $dumpfile("regfile_tb.vcd");
    $dumpvars(0, regfile_tb);

    $display("finished");
end

endmodule
module regfile_tb();


reg clk, we;
reg [1:0] writesel, selA, selB;
reg [7:0] datain, outA, outB;
reg [1:0] flagin, flagout;

registers reg1( we, writesel, selA, selB, flagin, datain, outA, outB, flagout);

initial begin
    clk = 1;
    we = 1;
    writesel = 2'b00;
    selA = 2'b00;
    selB = 2'b00;
    flagin = 2'b00;
    datain = 12;

    for(integer i = 0; i<20; i = i+1) begin
        clk = ~clk;
        #10;
    end
end

initial begin
    #20;
    we = 0;
    writesel = 1;
    datain = 3;

    #20;
    we = 1;
    writesel = 2;
    selA = 2;
    selB = 2;
    datain = 1;

    #10;
    writesel = 3;
    datain = 2;
    #10;

    
    #20;
    we = 0;
    selA = 3;
    selB = 2;

end

initial begin
    $dumpfile("regfile_tb.vcd");
    $dumpvars(0, regfile_tb);

    $display("finished");
end

endmodule