data/full_repos/permissive/195227969/work/cold_store/abandoned_m_inputmux.v
 line:501: before: "="
1: b"%Error: data/full_repos/permissive/195227969/work/cold_store/abandoned_m_inputmux.v:501: syntax error, unexpected '=', expecting ',' or ';'\n               genvar k = 0;\n                        ^\n%Error: Exiting due to 1 error(s)\n"
module m_inputmux
  # ( parameter HIGHLEVEL = 0,
      MULDIV = 0,
      DAT_I_ZERO_WHEN_INACTIVE = 0,
      IWIDTH = 32,
      SRAMADRWIDTH = 16,
      MTIMETAP = 32,
      MTIMETAP_LOWLIM = 32
      )
   (
    input              clk,
    input              corerunning,
    input [31:0]       DAT_O,
    input [IWIDTH-1:0] DAT_I,
    input [31:0]       Dsram,
    input [31:0]       ADR_O,
    input              sra_msb,
    input              sa00,
    input              STB_O,
    input              sram_ack,
    input              mie,
    input              mpie,
    input              meie,
    input              mrinstretie,
    input              msie,
    input              mtie,
    input              mtimeincie,
    input              mrinstretip,
    input              msip,
    input              mtip,
    input              mtimeincip,
    input              meip,
    input              qACK,

    input [31:0]       MULDIVREG,
    input              clrM,
    input              ceM,

    
    output             sysregack,
    output [31:0]      Di,
    
    output [31:0]      rDee,
    output [31:0]      theio
    );
   
   generate
      if ( HIGHLEVEL ) begin
         m_inputmux_highlevel
           # ( .MULDIV(                   MULDIV                   ),
               .DAT_I_ZERO_WHEN_INACTIVE( DAT_I_ZERO_WHEN_INACTIVE ),
               .IWIDTH(                   IWIDTH                   ),
               .SRAMADRWIDTH(             SRAMADRWIDTH             ),
               .MTIMETAP(                 MTIMETAP                 ),
               .MTIMETAP_LOWLIM(          MTIMETAP_LOWLIM          ))
         imux
           (

            .sysregack                  (sysregack),
            .Di                         (Di[31:0]),
            .rDee                       (rDee[31:0]),
            .theio                      (theio[31:0]),

            .clk                        (clk),
            .DAT_O                      (DAT_O[31:0]),
            .DAT_I                      (DAT_I[IWIDTH-1:0]),
            .Dsram                      (Dsram[31:0]),
            .ADR_O                      (ADR_O[31:0]),
            .sra_msb                    (sra_msb),
            .sa00                       (sa00),
            .STB_O                      (STB_O),
            .sram_ack                   (sram_ack),
            .mie                        (mie),
            .mpie                       (mpie),
            .meie                       (meie),
            .mrinstretie                (mrinstretie),
            .msie                       (msie),
            .mtie                       (mtie),
            .mtimeincie                 (mtimeincie),
            .mrinstretip                (mrinstretip),
            .msip                       (msip),
            .mtip                       (mtip),
            .mtimeincip                 (mtimeincip),
            .meip                       (meip),
            .qACK                       (qACK),
            .corerunning                (corerunning),
            .MULDIVREG                  (MULDIVREG[31:0]),
            .clrM                       (clrM),
            .ceM                        (ceM));
      end else begin
         m_inputmux_lowlevel
           # ( .MULDIV(                   MULDIV                   ),
               .DAT_I_ZERO_WHEN_INACTIVE( DAT_I_ZERO_WHEN_INACTIVE ),
               .IWIDTH(                   IWIDTH                   ),
               .SRAMADRWIDTH(             SRAMADRWIDTH             ),
               .MTIMETAP(                 MTIMETAP                 ),
               .MTIMETAP_LOWLIM(          MTIMETAP_LOWLIM          ))
         imux
           (

            .sysregack                  (sysregack),
            .Di                         (Di[31:0]),
            .rDee                       (rDee[31:0]),
            .theio                      (theio[31:0]),

            .clk                        (clk),
            .DAT_O                      (DAT_O[31:0]),
            .DAT_I                      (DAT_I[IWIDTH-1:0]),
            .Dsram                      (Dsram[31:0]),
            .ADR_O                      (ADR_O[31:0]),
            .sra_msb                    (sra_msb),
            .sa00                       (sa00),
            .STB_O                      (STB_O),
            .sram_ack                   (sram_ack),
            .mie                        (mie),
            .mpie                       (mpie),
            .meie                       (meie),
            .mrinstretie                (mrinstretie),
            .msie                       (msie),
            .mtie                       (mtie),
            .mtimeincie                 (mtimeincie),
            .mrinstretip                (mrinstretip),
            .msip                       (msip),
            .mtip                       (mtip),
            .mtimeincip                 (mtimeincip),
            .meip                       (meip),
            .qACK                       (qACK),
            .corerunning                (corerunning),
            .MULDIVREG                  (MULDIVREG[31:0]),
            .clrM                       (clrM),
            .ceM                        (ceM));
      end
   endgenerate
endmodule
module m_inputmux
  # ( parameter HIGHLEVEL = 0,
      MULDIV = 0,
      DAT_I_ZERO_WHEN_INACTIVE = 0,
      IWIDTH = 32,
      SRAMADRWIDTH = 16,
      MTIMETAP = 32,
      MTIMETAP_LOWLIM = 32
      )
   (
    input              clk,
    input              corerunning,
    input [31:0]       DAT_O,
    input [IWIDTH-1:0] DAT_I,
    input [31:0]       Dsram,
    input [31:0]       ADR_O,
    input              sra_msb,
    input              sa00,
    input              STB_O,
    input              sram_ack,
    input              mie,
    input              mpie,
    input              meie,
    input              mrinstretie,
    input              msie,
    input              mtie,
    input              mtimeincie,
    input              mrinstretip,
    input              msip,
    input              mtip,
    input              mtimeincip,
    input              meip,
    input              qACK,

    input [31:0]       MULDIVREG,
    input              clrM,
    input              ceM,

    
    output             sysregack,
    output [31:0]      Di,
    
    output [31:0]      rDee,
    output [31:0]      theio
    );

   
   generate
      if ( HIGHLEVEL ) begin
         m_inputmux_highlevel
           # ( .MULDIV(                   MULDIV                   ),
               .DAT_I_ZERO_WHEN_INACTIVE( DAT_I_ZERO_WHEN_INACTIVE ),
               .IWIDTH(                   IWIDTH                   ),
               .SRAMADRWIDTH(             SRAMADRWIDTH             ),
               .MTIMETAP(                 MTIMETAP                 ),
               .MTIMETAP_LOWLIM(          MTIMETAP_LOWLIM          ))
         imux
           (

            .sysregack                  (sysregack),
            .Di                         (Di[31:0]),
            .rDee                       (rDee[31:0]),
            .theio                      (theio[31:0]),

            .clk                        (clk),
            .DAT_O                      (DAT_O[31:0]),
            .DAT_I                      (DAT_I[IWIDTH-1:0]),
            .Dsram                      (Dsram[31:0]),
            .ADR_O                      (ADR_O[31:0]),
            .sra_msb                    (sra_msb),
            .sa00                       (sa00),
            .STB_O                      (STB_O),
            .sram_ack                   (sram_ack),
            .mie                        (mie),
            .mpie                       (mpie),
            .meie                       (meie),
            .mrinstretie                (mrinstretie),
            .msie                       (msie),
            .mtie                       (mtie),
            .mtimeincie                 (mtimeincie),
            .mrinstretip                (mrinstretip),
            .msip                       (msip),
            .mtip                       (mtip),
            .mtimeincip                 (mtimeincip),
            .meip                       (meip),
            .qACK                       (qACK),
            .corerunning                (corerunning),
            .MULDIVREG                  (MULDIVREG[31:0]),
            .clrM                       (clrM),
            .ceM                        (ceM));
      end else begin
         m_inputmux_lowlevel
           # ( .MULDIV(                   MULDIV                   ),
               .DAT_I_ZERO_WHEN_INACTIVE( DAT_I_ZERO_WHEN_INACTIVE ),
               .IWIDTH(                   IWIDTH                   ),
               .SRAMADRWIDTH(             SRAMADRWIDTH             ),
               .MTIMETAP(                 MTIMETAP                 ),
               .MTIMETAP_LOWLIM(          MTIMETAP_LOWLIM          ))
         imux
           (

            .sysregack                  (sysregack),
            .Di                         (Di[31:0]),
            .rDee                       (rDee[31:0]),
            .theio                      (theio[31:0]),

            .clk                        (clk),
            .DAT_O                      (DAT_O[31:0]),
            .DAT_I                      (DAT_I[IWIDTH-1:0]),
            .Dsram                      (Dsram[31:0]),
            .ADR_O                      (ADR_O[31:0]),
            .sra_msb                    (sra_msb),
            .sa00                       (sa00),
            .STB_O                      (STB_O),
            .sram_ack                   (sram_ack),
            .mie                        (mie),
            .mpie                       (mpie),
            .meie                       (meie),
            .mrinstretie                (mrinstretie),
            .msie                       (msie),
            .mtie                       (mtie),
            .mtimeincie                 (mtimeincie),
            .mrinstretip                (mrinstretip),
            .msip                       (msip),
            .mtip                       (mtip),
            .mtimeincip                 (mtimeincip),
            .meip                       (meip),
            .qACK                       (qACK),
            .corerunning                (corerunning),
            .MULDIVREG                  (MULDIVREG[31:0]),
            .clrM                       (clrM),
            .ceM                        (ceM));
      end
   endgenerate
endmodule