data/full_repos/permissive/455421905/src/even_odd.v
1: b"%Error: data/full_repos/permissive/455421905/src/even_odd.v:80: Cannot find file containing module: 'COMPARATOR'\n  COMPARATOR #(FLOAT, SIGNED, KEYW)\n  ^~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/455421905/src,data/full_repos/permissive/455421905/COMPARATOR\n             data/full_repos/permissive/455421905/src,data/full_repos/permissive/455421905/COMPARATOR.v\n             data/full_repos/permissive/455421905/src,data/full_repos/permissive/455421905/COMPARATOR.sv\n             COMPARATOR\n             COMPARATOR.v\n             COMPARATOR.sv\n             obj_dir/COMPARATOR\n             obj_dir/COMPARATOR.v\n             obj_dir/COMPARATOR.sv\n%Error: Exiting due to 1 error(s)\n"
module P_EXCHANGE #(parameter              PAYW = 32)
                   (input  wire            COMP,
                    input  wire [PAYW-1:0] DIN0,
                    input  wire [PAYW-1:0] DIN1,
                    output wire [PAYW-1:0] DOT0,
                    output wire [PAYW-1:0] DOT1);

  function [PAYW-1:0] mux;
    input [PAYW-1:0] a;
    input [PAYW-1:0] b;
    input            sel;
    begin
      case (sel)
        1'b0: mux = a;
        1'b1: mux = b;
      endcase
    end
  endfunction

  assign DOT0 = mux(DIN1, DIN0, COMP);
  assign DOT1 = mux(DIN0, DIN1, COMP);

endmodule
module P_EXCHANGE #(parameter              PAYW = 32)
                   (input  wire            COMP,
                    input  wire [PAYW-1:0] DIN0,
                    input  wire [PAYW-1:0] DIN1,
                    output wire [PAYW-1:0] DOT0,
                    output wire [PAYW-1:0] DOT1);


  function [PAYW-1:0] mux;
    input [PAYW-1:0] a;
    input [PAYW-1:0] b;
    input            sel;
    begin
      case (sel)
        1'b0: mux = a;
        1'b1: mux = b;
      endcase
    end
  endfunction

  assign DOT0 = mux(DIN1, DIN0, COMP);
  assign DOT1 = mux(DIN0, DIN1, COMP);

endmodule