data/full_repos/permissive/195227969/work/code/m_rai.v
1: b"%Error: data/full_repos/permissive/195227969/work/code/m_rai.v:137: Cannot find file containing module: 'SB_LUT4'\n         SB_LUT4 #(.LUT_INIT(16'h00e0)) L_sel0hack( .O(sel0hack), .I3(sa40), .I2(sa34), .I1(sram_ack), .I0(qACK ));\n         ^~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/195227969/work/code,data/full_repos/permissive/195227969/SB_LUT4\n             data/full_repos/permissive/195227969/work/code,data/full_repos/permissive/195227969/SB_LUT4.v\n             data/full_repos/permissive/195227969/work/code,data/full_repos/permissive/195227969/SB_LUT4.sv\n             SB_LUT4\n             SB_LUT4.v\n             SB_LUT4.sv\n             obj_dir/SB_LUT4\n             obj_dir/SB_LUT4.v\n             obj_dir/SB_LUT4.sv\n%Error: data/full_repos/permissive/195227969/work/code/m_rai.v:138: Cannot find file containing module: 'SB_LUT4'\n         SB_LUT4 #(.LUT_INIT(16'hfe0f)) L_sel0h(    .O(sel0h),    .I3(sa40), .I2(sa34), .I1(sram_stb), .I0(STB_O));\n         ^~~~~~~\n%Error: data/full_repos/permissive/195227969/work/code/m_rai.v:139: Cannot find file containing module: 'SB_LUT4'\n         SB_LUT4 #(.LUT_INIT(16'he0e0)) L_sel_0( .O(sel[0]), .I3(1'b0), .I2(sa20), .I1(sel0h), .I0(sel0hack));         \n         ^~~~~~~\n%Error: data/full_repos/permissive/195227969/work/code/m_rai.v:142: Cannot find file containing module: 'SB_LUT4'\n         SB_LUT4 #(.LUT_INIT(16'hfd00)) L_sel_3( .O(sel[3]), .I3(sa23),      .I2(STB_O),        .I1(sram_stb), .I0(sa40));\n         ^~~~~~~\n%Error: data/full_repos/permissive/195227969/work/code/m_rai.v:145: Cannot find file containing module: 'SB_LUT4'\n         SB_LUT4 #(.LUT_INIT(16'h8080)) L_ss0( .O(ss0), .I3(1'b0), .I2(sel[0]), .I1(sel[3]), .I0(sel[2]));\n         ^~~~~~~\n%Error: data/full_repos/permissive/195227969/work/code/m_rai.v:146: Cannot find file containing module: 'SB_LUT4'\n         SB_LUT4 #(.LUT_INIT(16'h8080)) L_ss1( .O(ss1), .I3(1'b0), .I2(sel[3]), .I1(sel[2]), .I0(sel[1]));\n         ^~~~~~~\n%Error: data/full_repos/permissive/195227969/work/code/m_rai.v:156: Cannot find file containing module: 'SB_LUT4'\n         SB_LUT4 #(.LUT_INIT(16'hcaf0)) L_b0a(  .O(b0a),    .I3(ss1), .I2(ss0), .I1(SRC1[0]), .I0(SRC2[0]));\n         ^~~~~~~\n%Error: data/full_repos/permissive/195227969/work/code/m_rai.v:157: Cannot find file containing module: 'SB_LUT4'\n         SB_LUT4 #(.LUT_INIT(16'hf0ca)) L_Rai0( .O(Rai[0]), .I3(ss1), .I2(b0a), .I1(B[2]),    .I0(sel[0]));\n         ^~~~~~~\n%Error: data/full_repos/permissive/195227969/work/code/m_rai.v:167: Cannot find file containing module: 'SB_LUT4'\n         SB_LUT4 #(.LUT_INIT(16'hcaf0)) L_b1a(  .O(b1a),    .I3(ss1), .I2(ss0), .I1(SRC1[1]), .I0(SRC2[1]));\n         ^~~~~~~\n%Error: data/full_repos/permissive/195227969/work/code/m_rai.v:168: Cannot find file containing module: 'SB_LUT4'\n         SB_LUT4 #(.LUT_INIT(16'hf0ca)) L_Rai1( .O(Rai[1]), .I3(ss1), .I2(b1a), .I1(B[3]),    .I0(sel[1]));\n         ^~~~~~~\n%Error: data/full_repos/permissive/195227969/work/code/m_rai.v:169: Cannot find file containing module: 'SB_LUT4'\n         SB_LUT4 #(.LUT_INIT(16'hcaf0)) L_b2a(  .O(b2a),    .I3(ss1), .I2(ss0), .I1(SRC1[2]), .I0(SRC2[2]));\n         ^~~~~~~\n%Error: data/full_repos/permissive/195227969/work/code/m_rai.v:170: Cannot find file containing module: 'SB_LUT4'\n         SB_LUT4 #(.LUT_INIT(16'hf0ca)) L_Rai2( .O(Rai[2]), .I3(ss1), .I2(b2a), .I1(B[4]),    .I0(sel[2]));\n         ^~~~~~~\n%Error: data/full_repos/permissive/195227969/work/code/m_rai.v:171: Cannot find file containing module: 'SB_LUT4'\n         SB_LUT4 #(.LUT_INIT(16'hcaf0)) L_b3a(  .O(b3a),    .I3(ss1), .I2(ss0), .I1(SRC1[3]), .I0(SRC2[3]));\n         ^~~~~~~\n%Error: data/full_repos/permissive/195227969/work/code/m_rai.v:172: Cannot find file containing module: 'SB_LUT4'\n         SB_LUT4 #(.LUT_INIT(16'hf0ca)) L_Rai3( .O(Rai[3]), .I3(ss1), .I2(b3a), .I1(B[5]),    .I0(sel[3]));\n         ^~~~~~~\n%Error: data/full_repos/permissive/195227969/work/code/m_rai.v:181: Cannot find file containing module: 'SB_LUT4'\n         SB_LUT4 #(.LUT_INIT(16'hcaf0)) L_b4a(  .O(b4a),    .I3(ss1), .I2(ss0), .I1(SRC1[4]), .I0(SRC2[4]));\n         ^~~~~~~\n%Error: data/full_repos/permissive/195227969/work/code/m_rai.v:182: Cannot find file containing module: 'SB_LUT4'\n         SB_LUT4 #(.LUT_INIT(16'hf0ca)) L_Rai4( .O(Rai[4]), .I3(ss1), .I2(b4a), .I1(B[6]),    .I0(1'b0));\n         ^~~~~~~\n%Error: data/full_repos/permissive/195227969/work/code/m_rai.v:193: Cannot find file containing module: 'SB_LUT4'\n         SB_LUT4 #(.LUT_INIT(16'h00cf)) L_Rai5( .O(Rai[5]), .I3(ss1), .I2(ss0), .I1(B[7]), .I0(1'b0));\n         ^~~~~~~\n%Error: data/full_repos/permissive/195227969/work/code/m_rai.v:198: Cannot find file containing module: 'SB_LUT4'\n         SB_LUT4 #(.LUT_INIT(16'h0808)) L_Rai6( .O(Rai[6]), .I3(1'b0), .I2(ss1), .I1(ss0), .I0(B[8]));\n         ^~~~~~~\n%Error: data/full_repos/permissive/195227969/work/code/m_rai.v:199: Cannot find file containing module: 'SB_LUT4'\n         SB_LUT4 #(.LUT_INIT(16'h0808)) L_Rai7( .O(Rai[7]), .I3(1'b0), .I2(ss1), .I1(ss0), .I0(B[9]));\n         ^~~~~~~\n%Error: Exiting due to 19 error(s)\n"
module m_rai
  # ( parameter HIGHLEVEL = 0, EBRAWIDTH = 10 )
   (
    input [EBRAWIDTH-1:0]  B,
    input [4:0]            SRC1,
    input [4:0]            SRC2,
    input                  sa20,
    input                  sa21,
    input                  sa22,
    input                  sa23,
    input                  sram_ack,
    input                  qACK,
    input                  sa34,
    input                  sa40,
    input                  STB_O,
    input                  sram_stb,
    output [EBRAWIDTH-3:0] Rai,
    output                 m_rai_killwarning
    );

   generate
      if ( HIGHLEVEL != 0 ) begin
         wire [11:0]               zeros = 12'h0;
         wire                      anyack;
         wire                      anystrobe;
         wire [3:0]                sel;
         reg [11:0]                extRai;

         assign anyack    = sram_ack | qACK;
         assign anystrobe = STB_O | sram_stb;
         assign sel[0]    = sa20 & ( (~sa40 & ~sa34 )             |
                                     (~sa40 &  sa34 & anyack )    |
                                     ( sa40 & ~sa34 & anystrobe ) |
                                     ( sa40 &  sa34) );
         assign sel[1]    = sa21;
         assign sel[2]    = sa22;
         assign sel[3]    = sa23 & ( ~sa40 | anystrobe );

         always @(B or SRC1 or SRC2 or sel or zeros)
           case ( sel )
             4'b0000 : extRai = 12'h20;
             4'b0001 : extRai = 12'h21;
             4'b0010 : extRai = 12'h22;
             4'b0011 : extRai = 12'h23;
             4'b0100 : extRai = 12'h24;
             4'b0101 : extRai = 12'h25;
             4'b0110 : extRai = 12'h26;
             4'b0111 : extRai = 12'h27;
             4'b1000 : extRai = 12'h28;
             4'b1001 : extRai = 12'h29;
             4'b1010 : extRai = 12'h2a;
             4'b1011 : extRai = 12'h2b;
             4'b1100 : extRai = 12'h2c;
             4'b1101 : extRai = {zeros[11:EBRAWIDTH-2],B[EBRAWIDTH-1:2]};
             4'b1110 : extRai = {7'b0,SRC2};
             4'b1111 : extRai = {7'b0,SRC1};
            endcase

         assign Rai = extRai[EBRAWIDTH-3:0];
         assign m_rai_killwarning = &B[1:0] & &extRai;
         
      end else begin
         wire [3:0] sel;
         assign m_rai_killwarning = &B[1:0];

         wire       ss0,ss1,b0a,b1a,b2a,b3a,b4a;
         




         wire       sel0hack,sel0h;
         SB_LUT4 #(.LUT_INIT(16'h00e0)) L_sel0hack( .O(sel0hack), .I3(sa40), .I2(sa34), .I1(sram_ack), .I0(qACK ));
         SB_LUT4 #(.LUT_INIT(16'hfe0f)) L_sel0h(    .O(sel0h),    .I3(sa40), .I2(sa34), .I1(sram_stb), .I0(STB_O));
         SB_LUT4 #(.LUT_INIT(16'he0e0)) L_sel_0( .O(sel[0]), .I3(1'b0), .I2(sa20), .I1(sel0h), .I0(sel0hack));         
         assign sel[1] = sa21;
         assign sel[2] = sa22;
         SB_LUT4 #(.LUT_INIT(16'hfd00)) L_sel_3( .O(sel[3]), .I3(sa23),      .I2(STB_O),        .I1(sram_stb), .I0(sa40));
         
         
         SB_LUT4 #(.LUT_INIT(16'h8080)) L_ss0( .O(ss0), .I3(1'b0), .I2(sel[0]), .I1(sel[3]), .I0(sel[2]));
         SB_LUT4 #(.LUT_INIT(16'h8080)) L_ss1( .O(ss1), .I3(1'b0), .I2(sel[3]), .I1(sel[2]), .I0(sel[1]));
         


         SB_LUT4 #(.LUT_INIT(16'hcaf0)) L_b0a(  .O(b0a),    .I3(ss1), .I2(ss0), .I1(SRC1[0]), .I0(SRC2[0]));
         SB_LUT4 #(.LUT_INIT(16'hf0ca)) L_Rai0( .O(Rai[0]), .I3(ss1), .I2(b0a), .I1(B[2]),    .I0(sel[0]));
         


         SB_LUT4 #(.LUT_INIT(16'hcaf0)) L_b1a(  .O(b1a),    .I3(ss1), .I2(ss0), .I1(SRC1[1]), .I0(SRC2[1]));
         SB_LUT4 #(.LUT_INIT(16'hf0ca)) L_Rai1( .O(Rai[1]), .I3(ss1), .I2(b1a), .I1(B[3]),    .I0(sel[1]));
         SB_LUT4 #(.LUT_INIT(16'hcaf0)) L_b2a(  .O(b2a),    .I3(ss1), .I2(ss0), .I1(SRC1[2]), .I0(SRC2[2]));
         SB_LUT4 #(.LUT_INIT(16'hf0ca)) L_Rai2( .O(Rai[2]), .I3(ss1), .I2(b2a), .I1(B[4]),    .I0(sel[2]));
         SB_LUT4 #(.LUT_INIT(16'hcaf0)) L_b3a(  .O(b3a),    .I3(ss1), .I2(ss0), .I1(SRC1[3]), .I0(SRC2[3]));
         SB_LUT4 #(.LUT_INIT(16'hf0ca)) L_Rai3( .O(Rai[3]), .I3(ss1), .I2(b3a), .I1(B[5]),    .I0(sel[3]));


         SB_LUT4 #(.LUT_INIT(16'hcaf0)) L_b4a(  .O(b4a),    .I3(ss1), .I2(ss0), .I1(SRC1[4]), .I0(SRC2[4]));
         SB_LUT4 #(.LUT_INIT(16'hf0ca)) L_Rai4( .O(Rai[4]), .I3(ss1), .I2(b4a), .I1(B[6]),    .I0(1'b0));


         SB_LUT4 #(.LUT_INIT(16'h00cf)) L_Rai5( .O(Rai[5]), .I3(ss1), .I2(ss0), .I1(B[7]), .I0(1'b0));

         SB_LUT4 #(.LUT_INIT(16'h0808)) L_Rai6( .O(Rai[6]), .I3(1'b0), .I2(ss1), .I1(ss0), .I0(B[8]));
         SB_LUT4 #(.LUT_INIT(16'h0808)) L_Rai7( .O(Rai[7]), .I3(1'b0), .I2(ss1), .I1(ss0), .I0(B[9]));
         if ( EBRAWIDTH > 10 ) begin
            SB_LUT4 #(.LUT_INIT(16'h0808)) L_Rai8( .O(Rai[8]), .I3(1'b0), .I2(ss1), .I1(ss0), .I0(B[10]));
            if ( EBRAWIDTH > 11 ) begin
               SB_LUT4 #(.LUT_INIT(16'h0808)) L_Rai9( .O(Rai[9]), .I3(1'b0), .I2(ss1), .I1(ss0), .I0(B[11]));
               if ( EBRAWIDTH > 12 ) begin
                  SB_LUT4 #(.LUT_INIT(16'h0808)) L_Rai10( .O(Rai[10]), .I3(1'b0), .I2(ss1), .I1(ss0), .I0(B[12]));
               end
            end
         end            
      end
   endgenerate
endmodule
module m_rai
  # ( parameter HIGHLEVEL = 0, EBRAWIDTH = 10 )
   (
    input [EBRAWIDTH-1:0]  B,
    input [4:0]            SRC1,
    input [4:0]            SRC2,
    input                  sa20,
    input                  sa21,
    input                  sa22,
    input                  sa23,
    input                  sram_ack,
    input                  qACK,
    input                  sa34,
    input                  sa40,
    input                  STB_O,
    input                  sram_stb,
    output [EBRAWIDTH-3:0] Rai,
    output                 m_rai_killwarning
    );


   generate
      if ( HIGHLEVEL != 0 ) begin
         wire [11:0]               zeros = 12'h0;
         wire                      anyack;
         wire                      anystrobe;
         wire [3:0]                sel;
         reg [11:0]                extRai;

         assign anyack    = sram_ack | qACK;
         assign anystrobe = STB_O | sram_stb;
         assign sel[0]    = sa20 & ( (~sa40 & ~sa34 )             |
                                     (~sa40 &  sa34 & anyack )    |
                                     ( sa40 & ~sa34 & anystrobe ) |
                                     ( sa40 &  sa34) );
         assign sel[1]    = sa21;
         assign sel[2]    = sa22;
         assign sel[3]    = sa23 & ( ~sa40 | anystrobe );

         always @(B or SRC1 or SRC2 or sel or zeros)
           case ( sel )
             4'b0000 : extRai = 12'h20;
             4'b0001 : extRai = 12'h21;
             4'b0010 : extRai = 12'h22;
             4'b0011 : extRai = 12'h23;
             4'b0100 : extRai = 12'h24;
             4'b0101 : extRai = 12'h25;
             4'b0110 : extRai = 12'h26;
             4'b0111 : extRai = 12'h27;
             4'b1000 : extRai = 12'h28;
             4'b1001 : extRai = 12'h29;
             4'b1010 : extRai = 12'h2a;
             4'b1011 : extRai = 12'h2b;
             4'b1100 : extRai = 12'h2c;
             4'b1101 : extRai = {zeros[11:EBRAWIDTH-2],B[EBRAWIDTH-1:2]};
             4'b1110 : extRai = {7'b0,SRC2};
             4'b1111 : extRai = {7'b0,SRC1};
            endcase

         assign Rai = extRai[EBRAWIDTH-3:0];
         assign m_rai_killwarning = &B[1:0] & &extRai;
         
      end else begin
         wire [3:0] sel;
         assign m_rai_killwarning = &B[1:0];

         wire       ss0,ss1,b0a,b1a,b2a,b3a,b4a;
         




         wire       sel0hack,sel0h;
         SB_LUT4 #(.LUT_INIT(16'h00e0)) L_sel0hack( .O(sel0hack), .I3(sa40), .I2(sa34), .I1(sram_ack), .I0(qACK ));
         SB_LUT4 #(.LUT_INIT(16'hfe0f)) L_sel0h(    .O(sel0h),    .I3(sa40), .I2(sa34), .I1(sram_stb), .I0(STB_O));
         SB_LUT4 #(.LUT_INIT(16'he0e0)) L_sel_0( .O(sel[0]), .I3(1'b0), .I2(sa20), .I1(sel0h), .I0(sel0hack));         
         assign sel[1] = sa21;
         assign sel[2] = sa22;
         SB_LUT4 #(.LUT_INIT(16'hfd00)) L_sel_3( .O(sel[3]), .I3(sa23),      .I2(STB_O),        .I1(sram_stb), .I0(sa40));
         
         
         SB_LUT4 #(.LUT_INIT(16'h8080)) L_ss0( .O(ss0), .I3(1'b0), .I2(sel[0]), .I1(sel[3]), .I0(sel[2]));
         SB_LUT4 #(.LUT_INIT(16'h8080)) L_ss1( .O(ss1), .I3(1'b0), .I2(sel[3]), .I1(sel[2]), .I0(sel[1]));
         


         SB_LUT4 #(.LUT_INIT(16'hcaf0)) L_b0a(  .O(b0a),    .I3(ss1), .I2(ss0), .I1(SRC1[0]), .I0(SRC2[0]));
         SB_LUT4 #(.LUT_INIT(16'hf0ca)) L_Rai0( .O(Rai[0]), .I3(ss1), .I2(b0a), .I1(B[2]),    .I0(sel[0]));
         


         SB_LUT4 #(.LUT_INIT(16'hcaf0)) L_b1a(  .O(b1a),    .I3(ss1), .I2(ss0), .I1(SRC1[1]), .I0(SRC2[1]));
         SB_LUT4 #(.LUT_INIT(16'hf0ca)) L_Rai1( .O(Rai[1]), .I3(ss1), .I2(b1a), .I1(B[3]),    .I0(sel[1]));
         SB_LUT4 #(.LUT_INIT(16'hcaf0)) L_b2a(  .O(b2a),    .I3(ss1), .I2(ss0), .I1(SRC1[2]), .I0(SRC2[2]));
         SB_LUT4 #(.LUT_INIT(16'hf0ca)) L_Rai2( .O(Rai[2]), .I3(ss1), .I2(b2a), .I1(B[4]),    .I0(sel[2]));
         SB_LUT4 #(.LUT_INIT(16'hcaf0)) L_b3a(  .O(b3a),    .I3(ss1), .I2(ss0), .I1(SRC1[3]), .I0(SRC2[3]));
         SB_LUT4 #(.LUT_INIT(16'hf0ca)) L_Rai3( .O(Rai[3]), .I3(ss1), .I2(b3a), .I1(B[5]),    .I0(sel[3]));


         SB_LUT4 #(.LUT_INIT(16'hcaf0)) L_b4a(  .O(b4a),    .I3(ss1), .I2(ss0), .I1(SRC1[4]), .I0(SRC2[4]));
         SB_LUT4 #(.LUT_INIT(16'hf0ca)) L_Rai4( .O(Rai[4]), .I3(ss1), .I2(b4a), .I1(B[6]),    .I0(1'b0));


         SB_LUT4 #(.LUT_INIT(16'h00cf)) L_Rai5( .O(Rai[5]), .I3(ss1), .I2(ss0), .I1(B[7]), .I0(1'b0));

         SB_LUT4 #(.LUT_INIT(16'h0808)) L_Rai6( .O(Rai[6]), .I3(1'b0), .I2(ss1), .I1(ss0), .I0(B[8]));
         SB_LUT4 #(.LUT_INIT(16'h0808)) L_Rai7( .O(Rai[7]), .I3(1'b0), .I2(ss1), .I1(ss0), .I0(B[9]));
         if ( EBRAWIDTH > 10 ) begin
            SB_LUT4 #(.LUT_INIT(16'h0808)) L_Rai8( .O(Rai[8]), .I3(1'b0), .I2(ss1), .I1(ss0), .I0(B[10]));
            if ( EBRAWIDTH > 11 ) begin
               SB_LUT4 #(.LUT_INIT(16'h0808)) L_Rai9( .O(Rai[9]), .I3(1'b0), .I2(ss1), .I1(ss0), .I0(B[11]));
               if ( EBRAWIDTH > 12 ) begin
                  SB_LUT4 #(.LUT_INIT(16'h0808)) L_Rai10( .O(Rai[10]), .I3(1'b0), .I2(ss1), .I1(ss0), .I0(B[12]));
               end
            end
         end            
      end
   endgenerate
endmodule