data/full_repos/permissive/489147019/Testcases/mempool/rtl/cluster_interconnect/rtl/low_latency_interco/priority_Flag_Req.sv
1: b'%Error: data/full_repos/permissive/489147019/Testcases/mempool/rtl/cluster_interconnect/rtl/low_latency_interco/priority_Flag_Req.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/low_latency_interco,data/full_repos/permissive/489147019/parameters.v\n             data/full_repos/permissive/489147019/Testcases/mempool/rtl/cluster_interconnect/rtl/low_latency_interco,data/full_repos/permissive/489147019/parameters.v.v\n             data/full_repos/permissive/489147019/Testcases/mempool/rtl/cluster_interconnect/rtl/low_latency_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 priority_Flag_Req 
#(
      parameter WIDTH     = 3,
      parameter MAX_COUNT = 2**WIDTH-1
)
(
      input  logic                 clk,
      input  logic                 rst_n,
      input  logic                 TCDM_arb_policy_i,

      output logic [WIDTH-1:0]     PRIO_FLAG_o,
      input  logic                 data_req_i,
      input  logic [WIDTH-1:0]     ID_i,
`ifdef GNT_BASED_FC
      input  logic                 data_gnt_i
`else
      input  logic                 data_stall_i
`endif
);

   always_ff @(posedge clk, negedge rst_n)
   begin : Prio_Flag_Req_SEQ
      if(rst_n == 1'b0)
         PRIO_FLAG_o <= '0;
      else
      `ifdef GNT_BASED_FC
            if( data_req_i  & data_gnt_i )
      `else
            if( data_req_i  & ~data_stall_i )
      `endif
            begin
                  if(TCDM_arb_policy_i == 1'b0)
                  begin : RR_PRIORIY
                     if(PRIO_FLAG_o < MAX_COUNT)
                        PRIO_FLAG_o <= PRIO_FLAG_o + 1'b1;
                     else
                        PRIO_FLAG_o <= '0;
                  end
                  else
                  begin : LAST_WIN_PRIO
                     PRIO_FLAG_o <= ID_i;
                  end
            end
   end
   
endmodule
module priority_Flag_Req 
#(
      parameter WIDTH     = 3,
      parameter MAX_COUNT = 2**WIDTH-1
)
(
      input  logic                 clk,
      input  logic                 rst_n,
      input  logic                 TCDM_arb_policy_i,

      output logic [WIDTH-1:0]     PRIO_FLAG_o,
      input  logic                 data_req_i,
      input  logic [WIDTH-1:0]     ID_i,
`ifdef GNT_BASED_FC
      input  logic                 data_gnt_i
`else
      input  logic                 data_stall_i
`endif
);


   always_ff @(posedge clk, negedge rst_n)
   begin : Prio_Flag_Req_SEQ
      if(rst_n == 1'b0)
         PRIO_FLAG_o <= '0;
      else
      `ifdef GNT_BASED_FC
            if( data_req_i  & data_gnt_i )
      `else
            if( data_req_i  & ~data_stall_i )
      `endif
            begin
                  if(TCDM_arb_policy_i == 1'b0)
                  begin : RR_PRIORIY
                     if(PRIO_FLAG_o < MAX_COUNT)
                        PRIO_FLAG_o <= PRIO_FLAG_o + 1'b1;
                     else
                        PRIO_FLAG_o <= '0;
                  end
                  else
                  begin : LAST_WIN_PRIO
                     PRIO_FLAG_o <= ID_i;
                  end
            end
   end
   
endmodule