data/full_repos/permissive/433174928/Project_Vivado/Project_Vivado.srcs/sim_1/new/DataExt_TB.v
1: b'%Error: data/full_repos/permissive/433174928/Project_Vivado/Project_Vivado.srcs/sim_1/new/DataExt_TB.v:2: Cannot find include file: defines.vh\n`include "defines.vh" \n         ^~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/433174928/Project_Vivado/Project_Vivado.srcs/sim_1/new,data/full_repos/permissive/433174928/defines.vh\n             data/full_repos/permissive/433174928/Project_Vivado/Project_Vivado.srcs/sim_1/new,data/full_repos/permissive/433174928/defines.vh.v\n             data/full_repos/permissive/433174928/Project_Vivado/Project_Vivado.srcs/sim_1/new,data/full_repos/permissive/433174928/defines.vh.sv\n             defines.vh\n             defines.vh.v\n             defines.vh.sv\n             obj_dir/defines.vh\n             obj_dir/defines.vh.v\n             obj_dir/defines.vh.sv\n%Warning-STMTDLY: data/full_repos/permissive/433174928/Project_Vivado/Project_Vivado.srcs/sim_1/new/DataExt_TB.v:18: 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%Error: data/full_repos/permissive/433174928/Project_Vivado/Project_Vivado.srcs/sim_1/new/DataExt_TB.v:20: Define or directive not defined: \'`LB\'\n        opcode <= `LB;\n                  ^~~\n%Error: data/full_repos/permissive/433174928/Project_Vivado/Project_Vivado.srcs/sim_1/new/DataExt_TB.v:20: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n        opcode <= `LB;\n                     ^\n%Warning-STMTDLY: data/full_repos/permissive/433174928/Project_Vivado/Project_Vivado.srcs/sim_1/new/DataExt_TB.v:21: Unsupported: Ignoring delay on this delayed statement.\n        #10;\n        ^\n%Warning-STMTDLY: data/full_repos/permissive/433174928/Project_Vivado/Project_Vivado.srcs/sim_1/new/DataExt_TB.v:23: Unsupported: Ignoring delay on this delayed statement.\n        #10;\n        ^\n%Error: data/full_repos/permissive/433174928/Project_Vivado/Project_Vivado.srcs/sim_1/new/DataExt_TB.v:24: Define or directive not defined: \'`LH\'\n        opcode <= `LH;\n                  ^~~\n%Error: data/full_repos/permissive/433174928/Project_Vivado/Project_Vivado.srcs/sim_1/new/DataExt_TB.v:24: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n        opcode <= `LH;\n                     ^\n%Warning-STMTDLY: data/full_repos/permissive/433174928/Project_Vivado/Project_Vivado.srcs/sim_1/new/DataExt_TB.v:25: Unsupported: Ignoring delay on this delayed statement.\n        #10;\n        ^\n%Warning-STMTDLY: data/full_repos/permissive/433174928/Project_Vivado/Project_Vivado.srcs/sim_1/new/DataExt_TB.v:27: Unsupported: Ignoring delay on this delayed statement.\n        #10;\n        ^\n%Error: data/full_repos/permissive/433174928/Project_Vivado/Project_Vivado.srcs/sim_1/new/DataExt_TB.v:28: Define or directive not defined: \'`LW\'\n        opcode <= `LW;\n                  ^~~\n%Error: data/full_repos/permissive/433174928/Project_Vivado/Project_Vivado.srcs/sim_1/new/DataExt_TB.v:28: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n        opcode <= `LW;\n                     ^\n%Warning-STMTDLY: data/full_repos/permissive/433174928/Project_Vivado/Project_Vivado.srcs/sim_1/new/DataExt_TB.v:29: Unsupported: Ignoring delay on this delayed statement.\n        #10;\n        ^\n%Warning-STMTDLY: data/full_repos/permissive/433174928/Project_Vivado/Project_Vivado.srcs/sim_1/new/DataExt_TB.v:31: Unsupported: Ignoring delay on this delayed statement.\n        #10;\n        ^\n%Error: data/full_repos/permissive/433174928/Project_Vivado/Project_Vivado.srcs/sim_1/new/DataExt_TB.v:32: Define or directive not defined: \'`LBU\'\n        opcode <= `LBU;\n                  ^~~~\n%Error: data/full_repos/permissive/433174928/Project_Vivado/Project_Vivado.srcs/sim_1/new/DataExt_TB.v:32: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n        opcode <= `LBU;\n                      ^\n%Warning-STMTDLY: data/full_repos/permissive/433174928/Project_Vivado/Project_Vivado.srcs/sim_1/new/DataExt_TB.v:33: Unsupported: Ignoring delay on this delayed statement.\n        #10;\n        ^\n%Warning-STMTDLY: data/full_repos/permissive/433174928/Project_Vivado/Project_Vivado.srcs/sim_1/new/DataExt_TB.v:35: Unsupported: Ignoring delay on this delayed statement.\n        #10;\n        ^\n%Error: data/full_repos/permissive/433174928/Project_Vivado/Project_Vivado.srcs/sim_1/new/DataExt_TB.v:36: Define or directive not defined: \'`LHU\'\n        opcode <= `LHU;\n                  ^~~~\n%Error: data/full_repos/permissive/433174928/Project_Vivado/Project_Vivado.srcs/sim_1/new/DataExt_TB.v:36: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n        opcode <= `LHU;\n                      ^\n%Warning-STMTDLY: data/full_repos/permissive/433174928/Project_Vivado/Project_Vivado.srcs/sim_1/new/DataExt_TB.v:37: Unsupported: Ignoring delay on this delayed statement.\n        #10;\n        ^\n%Warning-STMTDLY: data/full_repos/permissive/433174928/Project_Vivado/Project_Vivado.srcs/sim_1/new/DataExt_TB.v:39: Unsupported: Ignoring delay on this delayed statement.\n        #10;\n        ^\n%Error: Exiting due to 11 error(s), 11 warning(s)\n'
module DataExt_TB(

    );
    
    reg [2:0] opcode;
    reg [31:0] data;
    wire [31:0] dout;
    
    DataExt dut (
    .opcode(opcode), .data(data), .dout(dout)
    );
    
    initial begin
        #5;
        data <= 32'h98A48DB7;
        opcode <= `LB;
        #10;
        if(dout!=32'hffffffb7) $fatal("Expected output not received");
        #10;
        opcode <= `LH;
        #10;
        if(dout!=32'hffff8db7) $fatal("Expected output not received");
        #10;
        opcode <= `LW;
        #10;
        if(dout!=32'h98a48db7) $fatal("Expected output not received");
        #10;
        opcode <= `LBU;
        #10;
        if(dout !=32'h000000b7) $fatal("Expected output not received");
        #10;
        opcode <= `LHU;
        #10;
        if(dout!=32'h00008db7) $fatal("Expected output not received");
        #10;
        $display ("All tests passed");
        $finish;
    end
    
endmodule
module DataExt_TB(

    );

    
    reg [2:0] opcode;
    reg [31:0] data;
    wire [31:0] dout;
    
    DataExt dut (
    .opcode(opcode), .data(data), .dout(dout)
    );
    
    initial begin
        #5;
        data <= 32'h98A48DB7;
        opcode <= `LB;
        #10;
        if(dout!=32'hffffffb7) $fatal("Expected output not received");
        #10;
        opcode <= `LH;
        #10;
        if(dout!=32'hffff8db7) $fatal("Expected output not received");
        #10;
        opcode <= `LW;
        #10;
        if(dout!=32'h98a48db7) $fatal("Expected output not received");
        #10;
        opcode <= `LBU;
        #10;
        if(dout !=32'h000000b7) $fatal("Expected output not received");
        #10;
        opcode <= `LHU;
        #10;
        if(dout!=32'h00008db7) $fatal("Expected output not received");
        #10;
        $display ("All tests passed");
        $finish;
    end
    
endmodule