data/full_repos/permissive/138208056/Dual_CSI-2_Camera_to_HDMI_Bridge_Demo/ECP5_Raw10toParallel/source/clarity/Gamma/gammaCorrector/gamma_eval/gammaCorrector/src/rtl/top/USERNAME_pp.v
 line:1: before: "#"
1: b"%Error: data/full_repos/permissive/138208056/Dual_CSI-2_Camera_to_HDMI_Bridge_Demo/ECP5_Raw10toParallel/source/clarity/Gamma/gammaCorrector/gamma_eval/gammaCorrector/src/rtl/top/USERNAME_pp.v:1: syntax error, unexpected '#'\n#include <orcapp_head>\n^\n%Error: data/full_repos/permissive/138208056/Dual_CSI-2_Camera_to_HDMI_Bridge_Demo/ECP5_Raw10toParallel/source/clarity/Gamma/gammaCorrector/gamma_eval/gammaCorrector/src/rtl/top/USERNAME_pp.v:1: Unsupported: Verilog 2001-config reserved word not implemented; suggest you want `include instead: include\n#include <orcapp_head>\n ^~~~~~~\n%Error: data/full_repos/permissive/138208056/Dual_CSI-2_Camera_to_HDMI_Bridge_Demo/ECP5_Raw10toParallel/source/clarity/Gamma/gammaCorrector/gamma_eval/gammaCorrector/src/rtl/top/USERNAME_pp.v:6: syntax error, unexpected '#', expecting '['\n   #ifdef CLKEN\n   ^\n%Error: Exiting due to 3 error(s)\n"
module USERNAME (

   clk,
   rstn,
   #ifdef CLKEN
      ce,
   #endif
   #ifdef SYNCRST
      sr,
   #endif
   #ifdef BYPASSEN
      gcen,
   #endif
   inpvalid,
   din0,
   #ifdef LUT0WRITEPORT
      lut0wren,
      lut0val,
   #endif
   #ifdef INPUT_SERIAL
      cpsel,
   #endif
   #ifndef INPUT_SERIAL
      #ifdef NUMCP2
         din1,
         #ifdef LUT1WRITEPORT
            lut1wren,
            lut1val,
         #endif
      #endif
      #ifdef NUMCP3
         din2,
         #ifdef LUT2WRITEPORT
            lut2wren,
            lut2val,
         #endif
      #endif
   #endif


   #ifdef BYPASSEN
      gcvalid,
   #endif
   outvalid,
   #ifdef INPUT_SERIAL
      cpout,
   #endif
   #ifndef INPUT_SERIAL
      #ifdef NUMCP2
         dout1,
      #endif
      #ifdef NUMCP3
         dout2,
      #endif
   #endif
   dout0
   );




   input                                     clk;
   input                                     rstn;
   #ifdef CLKEN
      input                                  ce;
   #endif
   #ifdef SYNCRST
      input                                  sr;
   #endif
   #ifdef BYPASSEN
      input                                  gcen;
   #endif
   input                                     inpvalid;
   input  [DATA0_WIDTH-1:0]                 din0;
   #ifdef LUT0WRITEPORT
      input                                  lut0wren;
      input  [DATA0_WIDTH-1:0]              lut0val;
   #endif
   #ifdef INPUT_SERIAL
      input  [CPSEL_WIDTH-1:0]              cpsel;
   #endif
   #ifndef INPUT_SERIAL
      #ifdef NUMCP2
         input  [DATA1_WIDTH-1:0]           din1;
         #ifdef LUT1WRITEPORT
            input                            lut1wren;
            input  [DATA1_WIDTH-1:0]        lut1val;
         #endif
      #endif
      #ifdef NUMCP3
         input  [DATA2_WIDTH-1:0]           din2;
         #ifdef LUT2WRITEPORT
            input                            lut2wren;
            input  [DATA2_WIDTH-1:0]        lut2val;
         #endif
      #endif
   #endif


   #ifdef BYPASSEN
      output                                 gcvalid;
   #endif
   output                                    outvalid;
   output [DATA0_WIDTH-1:0]                 dout0;
   #ifdef INPUT_SERIAL
      output [CPSEL_WIDTH-1:0]              cpout;
   #endif
   #ifndef INPUT_SERIAL
      #ifdef NUMCP2
         output  [DATA1_WIDTH-1:0]          dout1;
      #endif
      #ifdef NUMCP3
         output  [DATA2_WIDTH-1:0]          dout2;
      #endif
   #endif


gamma_core
#(
      .pdata0_width      (DATA0_WIDTH),
      .pdata1_width      (DATA1_WIDTH),
      .pdata2_width      (DATA2_WIDTH),
      .plut0memebr       (LUT0MEM_EBR),
      .plut1memebr       (LUT1MEM_EBR),
      .plut2memebr       (LUT2MEM_EBR),
      .platency          (LATENCY),
      .pinreg            (INREG),
      .pinput_serial     (ARCHTYPE),
      #ifdef BYPASSEN
      .pbypassen         (1),
      #else
      .pbypassen         (0),
      #endif

      .pcplane1          (CPLANE1),
      .pcplane2          (CPLANE2),
      .pgfunction        (GFUNCTIONVAL),
      .pcpsel_width      (CPSEL_WIDTH),
      #ifdef LUT0WRITEPORT
      .plut0writeport    (LUT0WRITEPORT),
      #endif
      #ifdef LUT1WRITEPORT
      .plut1writeport    (LUT1WRITEPORT),
      #endif
      #ifdef LUT2WRITEPORT
      .plut2writeport    (LUT2WRITEPORT),
      #endif
      .pebr_thresh       (EBRTHRESH))
u1_gamma_core (

   .clk              (clk),
   .rstn             (rstn),
   #ifdef CLKEN
      .ce            (ce),
   #endif
   #ifdef SYNCRST
      .sr            (sr),
   #endif
   #ifdef BYPASSEN
      .gcen          (gcen),
   #endif
   .inpvalid         (inpvalid),
   .din0             (din0),
   #ifdef LUT0WRITEPORT
      .lut0wren      (lut0wren),
      .lut0val       (lut0val) ,
   #endif
   #ifdef INPUT_SERIAL
      .cpsel         (cpsel),
   #endif
   #ifndef INPUT_SERIAL
      #ifdef NUMCP2
         .din1       (din1),
         #ifdef LUT1WRITEPORT
            .lut1wren(lut1wren),
            .lut1val (lut1val),
         #endif
      #endif
      #ifdef NUMCP3
         .din2       (din2),
         #ifdef LUT2WRITEPORT
            .lut2wren(lut2wren),
            .lut2val (lut2val),
         #endif
      #endif
   #endif


   #ifdef BYPASSEN
      .gcvalid       (gcvalid),
   #endif
   .outvalid          (outvalid),
   #ifdef INPUT_SERIAL
      .cpout         (cpout),
   #endif
   #ifndef INPUT_SERIAL
      #ifdef NUMCP2
         .dout1      (dout1),
      #endif
      #ifdef NUMCP3
         .dout2      (dout2),
      #endif
   #endif
   .dout0            (dout0)
);
endmodule
module USERNAME (

   clk,
   rstn,
   #ifdef CLKEN
      ce,
   #endif
   #ifdef SYNCRST
      sr,
   #endif
   #ifdef BYPASSEN
      gcen,
   #endif
   inpvalid,
   din0,
   #ifdef LUT0WRITEPORT
      lut0wren,
      lut0val,
   #endif
   #ifdef INPUT_SERIAL
      cpsel,
   #endif
   #ifndef INPUT_SERIAL
      #ifdef NUMCP2
         din1,
         #ifdef LUT1WRITEPORT
            lut1wren,
            lut1val,
         #endif
      #endif
      #ifdef NUMCP3
         din2,
         #ifdef LUT2WRITEPORT
            lut2wren,
            lut2val,
         #endif
      #endif
   #endif


   #ifdef BYPASSEN
      gcvalid,
   #endif
   outvalid,
   #ifdef INPUT_SERIAL
      cpout,
   #endif
   #ifndef INPUT_SERIAL
      #ifdef NUMCP2
         dout1,
      #endif
      #ifdef NUMCP3
         dout2,
      #endif
   #endif
   dout0
   );





   input                                     clk;
   input                                     rstn;
   #ifdef CLKEN
      input                                  ce;
   #endif
   #ifdef SYNCRST
      input                                  sr;
   #endif
   #ifdef BYPASSEN
      input                                  gcen;
   #endif
   input                                     inpvalid;
   input  [DATA0_WIDTH-1:0]                 din0;
   #ifdef LUT0WRITEPORT
      input                                  lut0wren;
      input  [DATA0_WIDTH-1:0]              lut0val;
   #endif
   #ifdef INPUT_SERIAL
      input  [CPSEL_WIDTH-1:0]              cpsel;
   #endif
   #ifndef INPUT_SERIAL
      #ifdef NUMCP2
         input  [DATA1_WIDTH-1:0]           din1;
         #ifdef LUT1WRITEPORT
            input                            lut1wren;
            input  [DATA1_WIDTH-1:0]        lut1val;
         #endif
      #endif
      #ifdef NUMCP3
         input  [DATA2_WIDTH-1:0]           din2;
         #ifdef LUT2WRITEPORT
            input                            lut2wren;
            input  [DATA2_WIDTH-1:0]        lut2val;
         #endif
      #endif
   #endif


   #ifdef BYPASSEN
      output                                 gcvalid;
   #endif
   output                                    outvalid;
   output [DATA0_WIDTH-1:0]                 dout0;
   #ifdef INPUT_SERIAL
      output [CPSEL_WIDTH-1:0]              cpout;
   #endif
   #ifndef INPUT_SERIAL
      #ifdef NUMCP2
         output  [DATA1_WIDTH-1:0]          dout1;
      #endif
      #ifdef NUMCP3
         output  [DATA2_WIDTH-1:0]          dout2;
      #endif
   #endif


gamma_core
#(
      .pdata0_width      (DATA0_WIDTH),
      .pdata1_width      (DATA1_WIDTH),
      .pdata2_width      (DATA2_WIDTH),
      .plut0memebr       (LUT0MEM_EBR),
      .plut1memebr       (LUT1MEM_EBR),
      .plut2memebr       (LUT2MEM_EBR),
      .platency          (LATENCY),
      .pinreg            (INREG),
      .pinput_serial     (ARCHTYPE),
      #ifdef BYPASSEN
      .pbypassen         (1),
      #else
      .pbypassen         (0),
      #endif

      .pcplane1          (CPLANE1),
      .pcplane2          (CPLANE2),
      .pgfunction        (GFUNCTIONVAL),
      .pcpsel_width      (CPSEL_WIDTH),
      #ifdef LUT0WRITEPORT
      .plut0writeport    (LUT0WRITEPORT),
      #endif
      #ifdef LUT1WRITEPORT
      .plut1writeport    (LUT1WRITEPORT),
      #endif
      #ifdef LUT2WRITEPORT
      .plut2writeport    (LUT2WRITEPORT),
      #endif
      .pebr_thresh       (EBRTHRESH))
u1_gamma_core (

   .clk              (clk),
   .rstn             (rstn),
   #ifdef CLKEN
      .ce            (ce),
   #endif
   #ifdef SYNCRST
      .sr            (sr),
   #endif
   #ifdef BYPASSEN
      .gcen          (gcen),
   #endif
   .inpvalid         (inpvalid),
   .din0             (din0),
   #ifdef LUT0WRITEPORT
      .lut0wren      (lut0wren),
      .lut0val       (lut0val) ,
   #endif
   #ifdef INPUT_SERIAL
      .cpsel         (cpsel),
   #endif
   #ifndef INPUT_SERIAL
      #ifdef NUMCP2
         .din1       (din1),
         #ifdef LUT1WRITEPORT
            .lut1wren(lut1wren),
            .lut1val (lut1val),
         #endif
      #endif
      #ifdef NUMCP3
         .din2       (din2),
         #ifdef LUT2WRITEPORT
            .lut2wren(lut2wren),
            .lut2val (lut2val),
         #endif
      #endif
   #endif


   #ifdef BYPASSEN
      .gcvalid       (gcvalid),
   #endif
   .outvalid          (outvalid),
   #ifdef INPUT_SERIAL
      .cpout         (cpout),
   #endif
   #ifndef INPUT_SERIAL
      #ifdef NUMCP2
         .dout1      (dout1),
      #endif
      #ifdef NUMCP3
         .dout2      (dout2),
      #endif
   #endif
   .dout0            (dout0)
);
endmodule