data/full_repos/permissive/447976230/fpga/usrp2/control_lib/bootram.v
1: b"%Error: data/full_repos/permissive/447976230/fpga/usrp2/control_lib/bootram.v:72: Cannot find file containing module: 'RAMB16BWE_S36_S36'\n   RAMB16BWE_S36_S36 \n   ^~~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/447976230/fpga/usrp2/control_lib,data/full_repos/permissive/447976230/RAMB16BWE_S36_S36\n             data/full_repos/permissive/447976230/fpga/usrp2/control_lib,data/full_repos/permissive/447976230/RAMB16BWE_S36_S36.v\n             data/full_repos/permissive/447976230/fpga/usrp2/control_lib,data/full_repos/permissive/447976230/RAMB16BWE_S36_S36.sv\n             RAMB16BWE_S36_S36\n             RAMB16BWE_S36_S36.v\n             RAMB16BWE_S36_S36.sv\n             obj_dir/RAMB16BWE_S36_S36\n             obj_dir/RAMB16BWE_S36_S36.v\n             obj_dir/RAMB16BWE_S36_S36.sv\n%Error: data/full_repos/permissive/447976230/fpga/usrp2/control_lib/bootram.v:102: Cannot find file containing module: 'RAMB16BWE_S36_S36'\n   RAMB16BWE_S36_S36 \n   ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/447976230/fpga/usrp2/control_lib/bootram.v:132: Cannot find file containing module: 'RAMB16BWE_S36_S36'\n   RAMB16BWE_S36_S36 \n   ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/447976230/fpga/usrp2/control_lib/bootram.v:162: Cannot find file containing module: 'RAMB16BWE_S36_S36'\n   RAMB16BWE_S36_S36 \n   ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/447976230/fpga/usrp2/control_lib/bootram.v:192: Cannot find file containing module: 'RAMB16BWE_S36_S36'\n   RAMB16BWE_S36_S36 \n   ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/447976230/fpga/usrp2/control_lib/bootram.v:222: Cannot find file containing module: 'RAMB16BWE_S36_S36'\n   RAMB16BWE_S36_S36 \n   ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/447976230/fpga/usrp2/control_lib/bootram.v:252: Cannot find file containing module: 'RAMB16BWE_S36_S36'\n   RAMB16BWE_S36_S36 \n   ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/447976230/fpga/usrp2/control_lib/bootram.v:282: Cannot find file containing module: 'RAMB16BWE_S36_S36'\n   RAMB16BWE_S36_S36 \n   ^~~~~~~~~~~~~~~~~\n%Error: Exiting due to 8 error(s)\n"
module bootram
  (input clk, input reset,
   input [13:0] if_adr,
   output [31:0] if_data,

   input [13:0] dwb_adr_i,
   input [31:0] dwb_dat_i,
   output [31:0] dwb_dat_o,
   input dwb_we_i,
   output reg dwb_ack_o,
   input dwb_stb_i,
   input [3:0] dwb_sel_i);

   wire [31:0] DOA0, DOA1, DOA2, DOA3, DOA4, DOA5, DOA6, DOA7;
   wire [31:0] DOB0, DOB1, DOB2, DOB3, DOB4, DOB5, DOB6, DOB7;
   wire        ENB0, ENB1, ENB2, ENB3, ENB4, ENB5, ENB6, ENB7;
   wire [3:0]  WEB;

   reg [2:0]   delayed_if_bank;
   always @(posedge clk)
     delayed_if_bank <= if_adr[13:11];
   
   assign if_data = delayed_if_bank[2] ?
                   (delayed_if_bank[1] ? (delayed_if_bank[0] ? DOA7 : DOA6) : (delayed_if_bank[0] ? DOA5 : DOA4))
                 : (delayed_if_bank[1] ? (delayed_if_bank[0] ? DOA3 : DOA2) : (delayed_if_bank[0] ? DOA1 : DOA0));
   
   
   assign dwb_dat_o = dwb_adr_i[13] ?
                     (dwb_adr_i[12] ? (dwb_adr_i[11] ? DOB7 : DOB6) : (dwb_adr_i[11] ? DOB5 : DOB4))
                   : (dwb_adr_i[12] ? (dwb_adr_i[11] ? DOB3 : DOB2) : (dwb_adr_i[11] ? DOB1 : DOB0));

   always @(posedge clk)
     if(reset)
       dwb_ack_o <= 0;
     else
       dwb_ack_o <= dwb_stb_i & ~dwb_ack_o;
   
   assign ENB0 = dwb_stb_i & (dwb_adr_i[13:11] == 3'b000);
   assign ENB1 = dwb_stb_i & (dwb_adr_i[13:11] == 3'b001);
   assign ENB2 = dwb_stb_i & (dwb_adr_i[13:11] == 3'b010);
   assign ENB3 = dwb_stb_i & (dwb_adr_i[13:11] == 3'b011);
   assign ENB4 = dwb_stb_i & (dwb_adr_i[13:11] == 3'b100);
   assign ENB5 = dwb_stb_i & (dwb_adr_i[13:11] == 3'b101);
   assign ENB6 = dwb_stb_i & (dwb_adr_i[13:11] == 3'b110);
   assign ENB7 = dwb_stb_i & (dwb_adr_i[13:11] == 3'b111);

   assign WEB = {4{dwb_we_i}} & dwb_sel_i;
   
   RAMB16BWE_S36_S36 
     #(.INIT_A(36'h000000000),
       .INIT_B(36'h000000000),
       .SIM_COLLISION_CHECK("ALL"),
       .SRVAL_A(36'h000000000),
       .SRVAL_B(36'h000000000),
       .WRITE_MODE_A("WRITE_FIRST"),
       .WRITE_MODE_B("WRITE_FIRST"))
   RAM0
     (.DOA(DOA0),
      .DOPA(),
      .ADDRA(if_adr[10:2]),
      .CLKA(clk),
      .DIA(32'hffffffff),
      .DIPA(4'hf),
      .ENA(1'b1),
      .SSRA(1'b0),
      .WEA(1'b0),

      .DOB(DOB0),
      .DOPB(),
      .ADDRB(dwb_adr_i[10:2]),
      .CLKB(clk),
      .DIB(dwb_dat_i),
      .DIPB(4'hf),
      .ENB(ENB0),
      .SSRB(1'b0),
      .WEB(WEB)
      );

   RAMB16BWE_S36_S36 
     #(.INIT_A(36'h000000000),
       .INIT_B(36'h000000000),
       .SIM_COLLISION_CHECK("ALL"),
       .SRVAL_A(36'h000000000),
       .SRVAL_B(36'h000000000),
       .WRITE_MODE_A("WRITE_FIRST"),
       .WRITE_MODE_B("WRITE_FIRST"))
   RAM1
     (.DOA(DOA1),
      .DOPA(),
      .ADDRA(if_adr[10:2]),
      .CLKA(clk),
      .DIA(32'hffffffff),
      .DIPA(4'hf),
      .ENA(1'b1),
      .SSRA(1'b0),
      .WEA(1'b0),

      .DOB(DOB1),
      .DOPB(),
      .ADDRB(dwb_adr_i[10:2]),
      .CLKB(clk),
      .DIB(dwb_dat_i),
      .DIPB(4'hf),
      .ENB(ENB1),
      .SSRB(1'b0),
      .WEB(WEB)
      );

   RAMB16BWE_S36_S36 
     #(.INIT_A(36'h000000000),
       .INIT_B(36'h000000000),
       .SIM_COLLISION_CHECK("ALL"),
       .SRVAL_A(36'h000000000),
       .SRVAL_B(36'h000000000),
       .WRITE_MODE_A("WRITE_FIRST"),
       .WRITE_MODE_B("WRITE_FIRST"))
   RAM2
     (.DOA(DOA2),
      .DOPA(),
      .ADDRA(if_adr[10:2]),
      .CLKA(clk),
      .DIA(32'hffffffff),
      .DIPA(4'hf),
      .ENA(1'b1),
      .SSRA(1'b0),
      .WEA(1'b0),

      .DOB(DOB2),
      .DOPB(),
      .ADDRB(dwb_adr_i[10:2]),
      .CLKB(clk),
      .DIB(dwb_dat_i),
      .DIPB(4'hf),
      .ENB(ENB2),
      .SSRB(1'b0),
      .WEB(WEB)
      );

   RAMB16BWE_S36_S36 
     #(.INIT_A(36'h000000000),
       .INIT_B(36'h000000000),
       .SIM_COLLISION_CHECK("ALL"),
       .SRVAL_A(36'h000000000),
       .SRVAL_B(36'h000000000),
       .WRITE_MODE_A("WRITE_FIRST"),
       .WRITE_MODE_B("WRITE_FIRST"))
   RAM3
     (.DOA(DOA3),
      .DOPA(),
      .ADDRA(if_adr[10:2]),
      .CLKA(clk),
      .DIA(32'hffffffff),
      .DIPA(4'hf),
      .ENA(1'b1),
      .SSRA(1'b0),
      .WEA(1'b0),

      .DOB(DOB3),
      .DOPB(),
      .ADDRB(dwb_adr_i[10:2]),
      .CLKB(clk),
      .DIB(dwb_dat_i),
      .DIPB(4'hf),
      .ENB(ENB3),
      .SSRB(1'b0),
      .WEB(WEB)
      );
      
   RAMB16BWE_S36_S36 
     #(.INIT_A(36'h000000000),
       .INIT_B(36'h000000000),
       .SIM_COLLISION_CHECK("ALL"),
       .SRVAL_A(36'h000000000),
       .SRVAL_B(36'h000000000),
       .WRITE_MODE_A("WRITE_FIRST"),
       .WRITE_MODE_B("WRITE_FIRST"))
   RAM4
     (.DOA(DOA4),
      .DOPA(),
      .ADDRA(if_adr[10:2]),
      .CLKA(clk),
      .DIA(32'hffffffff),
      .DIPA(4'hf),
      .ENA(1'b1),
      .SSRA(1'b0),
      .WEA(1'b0),

      .DOB(DOB4),
      .DOPB(),
      .ADDRB(dwb_adr_i[10:2]),
      .CLKB(clk),
      .DIB(dwb_dat_i),
      .DIPB(4'hf),
      .ENB(ENB4),
      .SSRB(1'b0),
      .WEB(WEB)
      );
      
   RAMB16BWE_S36_S36 
     #(.INIT_A(36'h000000000),
       .INIT_B(36'h000000000),
       .SIM_COLLISION_CHECK("ALL"),
       .SRVAL_A(36'h000000000),
       .SRVAL_B(36'h000000000),
       .WRITE_MODE_A("WRITE_FIRST"),
       .WRITE_MODE_B("WRITE_FIRST"))
   RAM5
     (.DOA(DOA5),
      .DOPA(),
      .ADDRA(if_adr[10:2]),
      .CLKA(clk),
      .DIA(32'hffffffff),
      .DIPA(4'hf),
      .ENA(1'b1),
      .SSRA(1'b0),
      .WEA(1'b0),

      .DOB(DOB5),
      .DOPB(),
      .ADDRB(dwb_adr_i[10:2]),
      .CLKB(clk),
      .DIB(dwb_dat_i),
      .DIPB(4'hf),
      .ENB(ENB5),
      .SSRB(1'b0),
      .WEB(WEB)
      );
         
   RAMB16BWE_S36_S36 
     #(.INIT_A(36'h000000000),
       .INIT_B(36'h000000000),
       .SIM_COLLISION_CHECK("ALL"),
       .SRVAL_A(36'h000000000),
       .SRVAL_B(36'h000000000),
       .WRITE_MODE_A("WRITE_FIRST"),
       .WRITE_MODE_B("WRITE_FIRST"))
   RAM6
     (.DOA(DOA6),
      .DOPA(),
      .ADDRA(if_adr[10:2]),
      .CLKA(clk),
      .DIA(32'hffffffff),
      .DIPA(4'hf),
      .ENA(1'b1),
      .SSRA(1'b0),
      .WEA(1'b0),

      .DOB(DOB6),
      .DOPB(),
      .ADDRB(dwb_adr_i[10:2]),
      .CLKB(clk),
      .DIB(dwb_dat_i),
      .DIPB(4'hf),
      .ENB(ENB6),
      .SSRB(1'b0),
      .WEB(WEB)
      );
      
   RAMB16BWE_S36_S36 
     #(.INIT_A(36'h000000000),
       .INIT_B(36'h000000000),
       .SIM_COLLISION_CHECK("ALL"),
       .SRVAL_A(36'h000000000),
       .SRVAL_B(36'h000000000),
       .WRITE_MODE_A("WRITE_FIRST"),
       .WRITE_MODE_B("WRITE_FIRST"))
   RAM7
     (.DOA(DOA7),
      .DOPA(),
      .ADDRA(if_adr[10:2]),
      .CLKA(clk),
      .DIA(32'hffffffff),
      .DIPA(4'hf),
      .ENA(1'b1),
      .SSRA(1'b0),
      .WEA(1'b0),

      .DOB(DOB7),
      .DOPB(),
      .ADDRB(dwb_adr_i[10:2]),
      .CLKB(clk),
      .DIB(dwb_dat_i),
      .DIPB(4'hf),
      .ENB(ENB7),
      .SSRB(1'b0),
      .WEB(WEB)
      );

endmodule
module bootram
  (input clk, input reset,
   input [13:0] if_adr,
   output [31:0] if_data,

   input [13:0] dwb_adr_i,
   input [31:0] dwb_dat_i,
   output [31:0] dwb_dat_o,
   input dwb_we_i,
   output reg dwb_ack_o,
   input dwb_stb_i,
   input [3:0] dwb_sel_i);


   wire [31:0] DOA0, DOA1, DOA2, DOA3, DOA4, DOA5, DOA6, DOA7;
   wire [31:0] DOB0, DOB1, DOB2, DOB3, DOB4, DOB5, DOB6, DOB7;
   wire        ENB0, ENB1, ENB2, ENB3, ENB4, ENB5, ENB6, ENB7;
   wire [3:0]  WEB;

   reg [2:0]   delayed_if_bank;
   always @(posedge clk)
     delayed_if_bank <= if_adr[13:11];
   
   assign if_data = delayed_if_bank[2] ?
                   (delayed_if_bank[1] ? (delayed_if_bank[0] ? DOA7 : DOA6) : (delayed_if_bank[0] ? DOA5 : DOA4))
                 : (delayed_if_bank[1] ? (delayed_if_bank[0] ? DOA3 : DOA2) : (delayed_if_bank[0] ? DOA1 : DOA0));
   
   
   assign dwb_dat_o = dwb_adr_i[13] ?
                     (dwb_adr_i[12] ? (dwb_adr_i[11] ? DOB7 : DOB6) : (dwb_adr_i[11] ? DOB5 : DOB4))
                   : (dwb_adr_i[12] ? (dwb_adr_i[11] ? DOB3 : DOB2) : (dwb_adr_i[11] ? DOB1 : DOB0));

   always @(posedge clk)
     if(reset)
       dwb_ack_o <= 0;
     else
       dwb_ack_o <= dwb_stb_i & ~dwb_ack_o;
   
   assign ENB0 = dwb_stb_i & (dwb_adr_i[13:11] == 3'b000);
   assign ENB1 = dwb_stb_i & (dwb_adr_i[13:11] == 3'b001);
   assign ENB2 = dwb_stb_i & (dwb_adr_i[13:11] == 3'b010);
   assign ENB3 = dwb_stb_i & (dwb_adr_i[13:11] == 3'b011);
   assign ENB4 = dwb_stb_i & (dwb_adr_i[13:11] == 3'b100);
   assign ENB5 = dwb_stb_i & (dwb_adr_i[13:11] == 3'b101);
   assign ENB6 = dwb_stb_i & (dwb_adr_i[13:11] == 3'b110);
   assign ENB7 = dwb_stb_i & (dwb_adr_i[13:11] == 3'b111);

   assign WEB = {4{dwb_we_i}} & dwb_sel_i;
   
   RAMB16BWE_S36_S36 
     #(.INIT_A(36'h000000000),
       .INIT_B(36'h000000000),
       .SIM_COLLISION_CHECK("ALL"),
       .SRVAL_A(36'h000000000),
       .SRVAL_B(36'h000000000),
       .WRITE_MODE_A("WRITE_FIRST"),
       .WRITE_MODE_B("WRITE_FIRST"))
   RAM0
     (.DOA(DOA0),
      .DOPA(),
      .ADDRA(if_adr[10:2]),
      .CLKA(clk),
      .DIA(32'hffffffff),
      .DIPA(4'hf),
      .ENA(1'b1),
      .SSRA(1'b0),
      .WEA(1'b0),

      .DOB(DOB0),
      .DOPB(),
      .ADDRB(dwb_adr_i[10:2]),
      .CLKB(clk),
      .DIB(dwb_dat_i),
      .DIPB(4'hf),
      .ENB(ENB0),
      .SSRB(1'b0),
      .WEB(WEB)
      );

   RAMB16BWE_S36_S36 
     #(.INIT_A(36'h000000000),
       .INIT_B(36'h000000000),
       .SIM_COLLISION_CHECK("ALL"),
       .SRVAL_A(36'h000000000),
       .SRVAL_B(36'h000000000),
       .WRITE_MODE_A("WRITE_FIRST"),
       .WRITE_MODE_B("WRITE_FIRST"))
   RAM1
     (.DOA(DOA1),
      .DOPA(),
      .ADDRA(if_adr[10:2]),
      .CLKA(clk),
      .DIA(32'hffffffff),
      .DIPA(4'hf),
      .ENA(1'b1),
      .SSRA(1'b0),
      .WEA(1'b0),

      .DOB(DOB1),
      .DOPB(),
      .ADDRB(dwb_adr_i[10:2]),
      .CLKB(clk),
      .DIB(dwb_dat_i),
      .DIPB(4'hf),
      .ENB(ENB1),
      .SSRB(1'b0),
      .WEB(WEB)
      );

   RAMB16BWE_S36_S36 
     #(.INIT_A(36'h000000000),
       .INIT_B(36'h000000000),
       .SIM_COLLISION_CHECK("ALL"),
       .SRVAL_A(36'h000000000),
       .SRVAL_B(36'h000000000),
       .WRITE_MODE_A("WRITE_FIRST"),
       .WRITE_MODE_B("WRITE_FIRST"))
   RAM2
     (.DOA(DOA2),
      .DOPA(),
      .ADDRA(if_adr[10:2]),
      .CLKA(clk),
      .DIA(32'hffffffff),
      .DIPA(4'hf),
      .ENA(1'b1),
      .SSRA(1'b0),
      .WEA(1'b0),

      .DOB(DOB2),
      .DOPB(),
      .ADDRB(dwb_adr_i[10:2]),
      .CLKB(clk),
      .DIB(dwb_dat_i),
      .DIPB(4'hf),
      .ENB(ENB2),
      .SSRB(1'b0),
      .WEB(WEB)
      );

   RAMB16BWE_S36_S36 
     #(.INIT_A(36'h000000000),
       .INIT_B(36'h000000000),
       .SIM_COLLISION_CHECK("ALL"),
       .SRVAL_A(36'h000000000),
       .SRVAL_B(36'h000000000),
       .WRITE_MODE_A("WRITE_FIRST"),
       .WRITE_MODE_B("WRITE_FIRST"))
   RAM3
     (.DOA(DOA3),
      .DOPA(),
      .ADDRA(if_adr[10:2]),
      .CLKA(clk),
      .DIA(32'hffffffff),
      .DIPA(4'hf),
      .ENA(1'b1),
      .SSRA(1'b0),
      .WEA(1'b0),

      .DOB(DOB3),
      .DOPB(),
      .ADDRB(dwb_adr_i[10:2]),
      .CLKB(clk),
      .DIB(dwb_dat_i),
      .DIPB(4'hf),
      .ENB(ENB3),
      .SSRB(1'b0),
      .WEB(WEB)
      );
      
   RAMB16BWE_S36_S36 
     #(.INIT_A(36'h000000000),
       .INIT_B(36'h000000000),
       .SIM_COLLISION_CHECK("ALL"),
       .SRVAL_A(36'h000000000),
       .SRVAL_B(36'h000000000),
       .WRITE_MODE_A("WRITE_FIRST"),
       .WRITE_MODE_B("WRITE_FIRST"))
   RAM4
     (.DOA(DOA4),
      .DOPA(),
      .ADDRA(if_adr[10:2]),
      .CLKA(clk),
      .DIA(32'hffffffff),
      .DIPA(4'hf),
      .ENA(1'b1),
      .SSRA(1'b0),
      .WEA(1'b0),

      .DOB(DOB4),
      .DOPB(),
      .ADDRB(dwb_adr_i[10:2]),
      .CLKB(clk),
      .DIB(dwb_dat_i),
      .DIPB(4'hf),
      .ENB(ENB4),
      .SSRB(1'b0),
      .WEB(WEB)
      );
      
   RAMB16BWE_S36_S36 
     #(.INIT_A(36'h000000000),
       .INIT_B(36'h000000000),
       .SIM_COLLISION_CHECK("ALL"),
       .SRVAL_A(36'h000000000),
       .SRVAL_B(36'h000000000),
       .WRITE_MODE_A("WRITE_FIRST"),
       .WRITE_MODE_B("WRITE_FIRST"))
   RAM5
     (.DOA(DOA5),
      .DOPA(),
      .ADDRA(if_adr[10:2]),
      .CLKA(clk),
      .DIA(32'hffffffff),
      .DIPA(4'hf),
      .ENA(1'b1),
      .SSRA(1'b0),
      .WEA(1'b0),

      .DOB(DOB5),
      .DOPB(),
      .ADDRB(dwb_adr_i[10:2]),
      .CLKB(clk),
      .DIB(dwb_dat_i),
      .DIPB(4'hf),
      .ENB(ENB5),
      .SSRB(1'b0),
      .WEB(WEB)
      );
         
   RAMB16BWE_S36_S36 
     #(.INIT_A(36'h000000000),
       .INIT_B(36'h000000000),
       .SIM_COLLISION_CHECK("ALL"),
       .SRVAL_A(36'h000000000),
       .SRVAL_B(36'h000000000),
       .WRITE_MODE_A("WRITE_FIRST"),
       .WRITE_MODE_B("WRITE_FIRST"))
   RAM6
     (.DOA(DOA6),
      .DOPA(),
      .ADDRA(if_adr[10:2]),
      .CLKA(clk),
      .DIA(32'hffffffff),
      .DIPA(4'hf),
      .ENA(1'b1),
      .SSRA(1'b0),
      .WEA(1'b0),

      .DOB(DOB6),
      .DOPB(),
      .ADDRB(dwb_adr_i[10:2]),
      .CLKB(clk),
      .DIB(dwb_dat_i),
      .DIPB(4'hf),
      .ENB(ENB6),
      .SSRB(1'b0),
      .WEB(WEB)
      );
      
   RAMB16BWE_S36_S36 
     #(.INIT_A(36'h000000000),
       .INIT_B(36'h000000000),
       .SIM_COLLISION_CHECK("ALL"),
       .SRVAL_A(36'h000000000),
       .SRVAL_B(36'h000000000),
       .WRITE_MODE_A("WRITE_FIRST"),
       .WRITE_MODE_B("WRITE_FIRST"))
   RAM7
     (.DOA(DOA7),
      .DOPA(),
      .ADDRA(if_adr[10:2]),
      .CLKA(clk),
      .DIA(32'hffffffff),
      .DIPA(4'hf),
      .ENA(1'b1),
      .SSRA(1'b0),
      .WEA(1'b0),

      .DOB(DOB7),
      .DOPB(),
      .ADDRB(dwb_adr_i[10:2]),
      .CLKB(clk),
      .DIB(dwb_dat_i),
      .DIPB(4'hf),
      .ENB(ENB7),
      .SSRB(1'b0),
      .WEB(WEB)
      );

endmodule