data/full_repos/permissive/164569208/rtl/pcie_tlp_demux_bar.v
[Errno 2] No such file or directory: 'preprocess.output'
1: b"%Error: data/full_repos/permissive/164569208/rtl/pcie_tlp_demux_bar.v:166: Cannot find file containing module: 'pcie_tlp_demux'\npcie_tlp_demux #(\n^~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/164569208/rtl,data/full_repos/permissive/164569208/pcie_tlp_demux\n             data/full_repos/permissive/164569208/rtl,data/full_repos/permissive/164569208/pcie_tlp_demux.v\n             data/full_repos/permissive/164569208/rtl,data/full_repos/permissive/164569208/pcie_tlp_demux.sv\n             pcie_tlp_demux\n             pcie_tlp_demux.v\n             pcie_tlp_demux.sv\n             obj_dir/pcie_tlp_demux\n             obj_dir/pcie_tlp_demux.v\n             obj_dir/pcie_tlp_demux.sv\n%Error: Exiting due to 1 error(s)\n"
function [PORTS*3-1:0] calcBarIds(input [2:0] base, input [2:0] stride);
    integer i;
    reg [2:0] bar;
    begin
        calcBarIds = {PORTS*3{1'b0}};
        bar = base;
        for (i = 0; i < PORTS; i = i + 1) begin
            calcBarIds[i*3 +: 3] = bar;
            bar = bar + stride;
        end
    end
endfunction
function [PORTS*3-1:0] calcBarIds(input [2:0] base, input [2:0] stride);

    integer i;
    reg [2:0] bar;
    begin
        calcBarIds = {PORTS*3{1'b0}};
        bar = base;
        for (i = 0; i < PORTS; i = i + 1) begin
            calcBarIds[i*3 +: 3] = bar;
            bar = bar + stride;
        end
    end
endfunction