data/full_repos/permissive/506636840/agents/uart_agent/uart_agent_pkg.sv
1: b'%Error: data/full_repos/permissive/506636840/agents/uart_agent/uart_agent_pkg.sv:4: Cannot find include file: uvm_macros.svh\n    `include "uvm_macros.svh" \n             ^~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/506636840/agents/uart_agent,data/full_repos/permissive/506636840/uvm_macros.svh\n             data/full_repos/permissive/506636840/agents/uart_agent,data/full_repos/permissive/506636840/uvm_macros.svh.v\n             data/full_repos/permissive/506636840/agents/uart_agent,data/full_repos/permissive/506636840/uvm_macros.svh.sv\n             uvm_macros.svh\n             uvm_macros.svh.v\n             uvm_macros.svh.sv\n             obj_dir/uvm_macros.svh\n             obj_dir/uvm_macros.svh.v\n             obj_dir/uvm_macros.svh.sv\n%Error: data/full_repos/permissive/506636840/agents/uart_agent/uart_agent_pkg.sv:28: Cannot find include file: uart_seq_item.svh\n    `include "uart_seq_item.svh" \n             ^~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/506636840/agents/uart_agent/uart_agent_pkg.sv:29: Cannot find include file: uart_agent_config.svh\n    `include "uart_agent_config.svh" \n             ^~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/506636840/agents/uart_agent/uart_agent_pkg.sv:30: Cannot find include file: uart_monitor.svh\n    `include "uart_monitor.svh" \n             ^~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/506636840/agents/uart_agent/uart_agent_pkg.sv:31: Cannot find include file: uart_sequencer.svh\n    `include "uart_sequencer.svh"; \n             ^~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/506636840/agents/uart_agent/uart_agent_pkg.sv:32: Cannot find include file: uart_driver.svh\n    `include "uart_driver.svh" \n             ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/506636840/agents/uart_agent/uart_agent_pkg.sv:33: Cannot find include file: uart_agent.svh\n    `include "uart_agent.svh" \n             ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/506636840/agents/uart_agent/uart_agent_pkg.sv:3: syntax error, unexpected IDENTIFIER, expecting PACKAGE-IDENTIFIER or STRING\n    import uvm_pkg::*;\n           ^~~~~~~\n%Error: data/full_repos/permissive/506636840/agents/uart_agent/uart_agent_pkg.sv:34: syntax error, unexpected endpackage\nendpackage\n^~~~~~~~~~\n%Error: Exiting due to 9 error(s)\n'
function bit calParity (input logic [7:0] lcr, input logic[7:0] data);
        bit retParity;

        if (lcr[5])begin
            case (lcr[4])
                1'b0: retParity = 1'b1;
                1'b1: retParity = 1'b0;
            endcase
        end
        else begin
            case (lcr[1:0])
                2'b00: retParity = ^data[4:0];
                2'b01: retParity = ^data[5:0];
                2'b10: retParity = ^data[6:0];
                2'b11: retParity = ^data[7:0];
            endcase
            if (!lcr[4])
              retParity = ~retParity;
          end
        return retParity;
      endfunction
function bit calParity (input logic [7:0] lcr, input logic[7:0] data);

        bit retParity;

        if (lcr[5])begin
            case (lcr[4])
                1'b0: retParity = 1'b1;
                1'b1: retParity = 1'b0;
            endcase
        end
        else begin
            case (lcr[1:0])
                2'b00: retParity = ^data[4:0];
                2'b01: retParity = ^data[5:0];
                2'b10: retParity = ^data[6:0];
                2'b11: retParity = ^data[7:0];
            endcase
            if (!lcr[4])
              retParity = ~retParity;
          end
        return retParity;
      endfunction