data/full_repos/permissive/489147019/Testcases/mempool/rtl/cluster_interconnect/rtl/peripheral_interco/ResponseBlock_PE.sv
1: b'%Error: data/full_repos/permissive/489147019/Testcases/mempool/rtl/cluster_interconnect/rtl/peripheral_interco/ResponseBlock_PE.sv:46: Cannot find include file: parameters.v\n`include "parameters.v" \n         ^~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/489147019/Testcases/mempool/rtl/cluster_interconnect/rtl/peripheral_interco,data/full_repos/permissive/489147019/parameters.v\n             data/full_repos/permissive/489147019/Testcases/mempool/rtl/cluster_interconnect/rtl/peripheral_interco,data/full_repos/permissive/489147019/parameters.v.v\n             data/full_repos/permissive/489147019/Testcases/mempool/rtl/cluster_interconnect/rtl/peripheral_interco,data/full_repos/permissive/489147019/parameters.v.sv\n             parameters.v\n             parameters.v.v\n             parameters.v.sv\n             obj_dir/parameters.v\n             obj_dir/parameters.v.v\n             obj_dir/parameters.v.sv\n%Error: Exiting due to 1 error(s)\n'
module ResponseBlock_PE
#(
    parameter ID             = 1,
    parameter ID_WIDTH       = 17,
    parameter N_SLAVE        = 16,

    parameter DATA_WIDTH     = 32,

    parameter LOG_CLUSTER    = 5,
    parameter ADDR_WIDTH     = 32,
    parameter PE_ROUTING_LSB = 16,
    parameter PE_ROUTING_MSB = 19,
    parameter CLUSTER_ALIAS  = 1'b0,
    parameter CLUSTER_ALIAS_BASE = 12'h000
)
(
        input  logic [LOG_CLUSTER-1:0]                  CLUSTER_ID,




        input logic [N_SLAVE-1:0]                       data_r_valid_i,
        input logic [N_SLAVE-1:0][DATA_WIDTH-1:0]       data_r_rdata_i,
        input logic [N_SLAVE-1:0]                       data_r_opc_i,
        

        output logic                                    data_r_valid_o,
        output logic [DATA_WIDTH-1:0]                   data_r_rdata_o,
        output logic                                    data_r_opc_o,




        input logic                                     data_req_i,
        input logic [ADDR_WIDTH-1:0]                    data_add_i,
    `ifdef GNT_BASED_FC
        output logic                                    data_gnt_o,
    `else
        output logic                                    data_stall_o,
    `endif              

        
        output logic [N_SLAVE-1:0]                      data_req_o,
    `ifdef GNT_BASED_FC 
        input  logic [N_SLAVE-1:0]                      data_gnt_i,
    `else
        input  logic [N_SLAVE-1:0]                      data_stall_i,
    `endif 
        output logic [ID_WIDTH-1:0]                     data_ID_o    
);
        


     logic [2**$clog2(N_SLAVE)-1:0]                   data_r_valid_int;
     logic [2**$clog2(N_SLAVE)-1:0][DATA_WIDTH-1:0]   data_r_rdata_int;
     logic [2**$clog2(N_SLAVE)-1:0]                   data_r_opc_int;



     genvar i;

     generate
      if(2**$clog2(N_SLAVE) == N_SLAVE)
      begin : EXACT_POW2

        for(i=0;i<N_SLAVE;i++)
        begin
          assign data_r_valid_int[i] = data_r_valid_i[i];
          assign data_r_rdata_int[i] = data_r_rdata_i[i];
          assign data_r_opc_int[i]   = data_r_opc_i[i];
        end

      end
      else
      begin : NOT_POW2

        for(i=0; i<2**$clog2(N_SLAVE); i++)
        begin
            if(i<N_SLAVE)
            begin
              assign data_r_valid_int[i] = data_r_valid_i[i];
              assign data_r_rdata_int[i] = data_r_rdata_i[i];
              assign data_r_opc_int[i]   = data_r_opc_i[i];
            end
            else
            begin
              assign data_r_valid_int[i] = 1'b0;
              assign data_r_rdata_int[i] = '0;
              assign data_r_opc_int[i]   = 1'b0;
            end
        end

      end
     endgenerate



      ResponseTree_PE 
      #( 
          .N_SLAVE( 2**$clog2(N_SLAVE) ), 
          .DATA_WIDTH(DATA_WIDTH)
      )  
      i_ResponseTree_PE
      (

            .data_r_valid_i(data_r_valid_int),
            .data_r_rdata_i(data_r_rdata_int),
            .data_r_opc_i(data_r_opc_int),

            .data_r_valid_o(data_r_valid_o),
            .data_r_rdata_o(data_r_rdata_o),
            .data_r_opc_o(data_r_opc_o)
      );


      AddressDecoder_PE_Req 
      #( 
          .ID_WIDTH        ( ID_WIDTH        ), 
          .ID              ( ID              ), 
          .N_SLAVE         ( N_SLAVE         ),
          .LOG_CLUSTER     ( LOG_CLUSTER     ),
          .ADDR_WIDTH      ( ADDR_WIDTH      ),
          .PE_ROUTING_LSB  ( PE_ROUTING_LSB  ),
          .PE_ROUTING_MSB  ( PE_ROUTING_MSB  ),
          .CLUSTER_ALIAS   ( CLUSTER_ALIAS   ),
          .CLUSTER_ALIAS_BASE (CLUSTER_ALIAS_BASE)
      )
      i_AddressDecoder_PE_Req
      (
        .CLUSTER_ID(CLUSTER_ID),

        .data_req_i(data_req_i),
        .data_add_i(data_add_i),
    `ifdef GNT_BASED_FC 
        .data_gnt_o(data_gnt_o),
        .data_gnt_i(data_gnt_i),
    `else
        .data_stall_o(data_stall_o),
        .data_stall_i(data_stall_i),
    `endif    

        .data_req_o(data_req_o),
        .data_ID_o(data_ID_o)
      );


endmodule
module ResponseBlock_PE
#(
    parameter ID             = 1,
    parameter ID_WIDTH       = 17,
    parameter N_SLAVE        = 16,

    parameter DATA_WIDTH     = 32,

    parameter LOG_CLUSTER    = 5,
    parameter ADDR_WIDTH     = 32,
    parameter PE_ROUTING_LSB = 16,
    parameter PE_ROUTING_MSB = 19,
    parameter CLUSTER_ALIAS  = 1'b0,
    parameter CLUSTER_ALIAS_BASE = 12'h000
)
(
        input  logic [LOG_CLUSTER-1:0]                  CLUSTER_ID,




        input logic [N_SLAVE-1:0]                       data_r_valid_i,
        input logic [N_SLAVE-1:0][DATA_WIDTH-1:0]       data_r_rdata_i,
        input logic [N_SLAVE-1:0]                       data_r_opc_i,
        

        output logic                                    data_r_valid_o,
        output logic [DATA_WIDTH-1:0]                   data_r_rdata_o,
        output logic                                    data_r_opc_o,




        input logic                                     data_req_i,
        input logic [ADDR_WIDTH-1:0]                    data_add_i,
    `ifdef GNT_BASED_FC
        output logic                                    data_gnt_o,
    `else
        output logic                                    data_stall_o,
    `endif              

        
        output logic [N_SLAVE-1:0]                      data_req_o,
    `ifdef GNT_BASED_FC 
        input  logic [N_SLAVE-1:0]                      data_gnt_i,
    `else
        input  logic [N_SLAVE-1:0]                      data_stall_i,
    `endif 
        output logic [ID_WIDTH-1:0]                     data_ID_o    
);

        


     logic [2**$clog2(N_SLAVE)-1:0]                   data_r_valid_int;
     logic [2**$clog2(N_SLAVE)-1:0][DATA_WIDTH-1:0]   data_r_rdata_int;
     logic [2**$clog2(N_SLAVE)-1:0]                   data_r_opc_int;



     genvar i;

     generate
      if(2**$clog2(N_SLAVE) == N_SLAVE)
      begin : EXACT_POW2

        for(i=0;i<N_SLAVE;i++)
        begin
          assign data_r_valid_int[i] = data_r_valid_i[i];
          assign data_r_rdata_int[i] = data_r_rdata_i[i];
          assign data_r_opc_int[i]   = data_r_opc_i[i];
        end

      end
      else
      begin : NOT_POW2

        for(i=0; i<2**$clog2(N_SLAVE); i++)
        begin
            if(i<N_SLAVE)
            begin
              assign data_r_valid_int[i] = data_r_valid_i[i];
              assign data_r_rdata_int[i] = data_r_rdata_i[i];
              assign data_r_opc_int[i]   = data_r_opc_i[i];
            end
            else
            begin
              assign data_r_valid_int[i] = 1'b0;
              assign data_r_rdata_int[i] = '0;
              assign data_r_opc_int[i]   = 1'b0;
            end
        end

      end
     endgenerate



      ResponseTree_PE 
      #( 
          .N_SLAVE( 2**$clog2(N_SLAVE) ), 
          .DATA_WIDTH(DATA_WIDTH)
      )  
      i_ResponseTree_PE
      (

            .data_r_valid_i(data_r_valid_int),
            .data_r_rdata_i(data_r_rdata_int),
            .data_r_opc_i(data_r_opc_int),

            .data_r_valid_o(data_r_valid_o),
            .data_r_rdata_o(data_r_rdata_o),
            .data_r_opc_o(data_r_opc_o)
      );


      AddressDecoder_PE_Req 
      #( 
          .ID_WIDTH        ( ID_WIDTH        ), 
          .ID              ( ID              ), 
          .N_SLAVE         ( N_SLAVE         ),
          .LOG_CLUSTER     ( LOG_CLUSTER     ),
          .ADDR_WIDTH      ( ADDR_WIDTH      ),
          .PE_ROUTING_LSB  ( PE_ROUTING_LSB  ),
          .PE_ROUTING_MSB  ( PE_ROUTING_MSB  ),
          .CLUSTER_ALIAS   ( CLUSTER_ALIAS   ),
          .CLUSTER_ALIAS_BASE (CLUSTER_ALIAS_BASE)
      )
      i_AddressDecoder_PE_Req
      (
        .CLUSTER_ID(CLUSTER_ID),

        .data_req_i(data_req_i),
        .data_add_i(data_add_i),
    `ifdef GNT_BASED_FC 
        .data_gnt_o(data_gnt_o),
        .data_gnt_i(data_gnt_i),
    `else
        .data_stall_o(data_stall_o),
        .data_stall_i(data_stall_i),
    `endif    

        .data_req_o(data_req_o),
        .data_ID_o(data_ID_o)
      );


endmodule