../src/lowrisc_tlul_common_0.1/rtl/tlul_assert_multiple.sv Cov: 100%

   1: // Copyright lowRISC contributors.
   2: // Licensed under the Apache License, Version 2.0, see LICENSE for details.
   3: // SPDX-License-Identifier: Apache-2.0
   4: 
   5: // Protocol checker for multiple TL-UL ports
   6: 
   7: module tlul_assert_multiple #(
   8:   parameter int unsigned N = 2,
   9:   parameter EndpointType = "Device" // can be "Device" or "Host"
  10: ) (
  11:   input clk_i,
  12:   input rst_ni,
  13: 
  14:   // tile link ports
  15:   input tlul_pkg::tl_h2d_t h2d [N],
  16:   input tlul_pkg::tl_d2h_t d2h [N]
  17: );
  18: 
  19:   // instantiate N tlul_assert modules
  20:   for (genvar ii = 0; ii < N; ii++) begin : gen_assert
  21:     tlul_assert #(
  22:       .EndpointType(EndpointType)
  23:     ) tlul_assert (
  24:       .clk_i,
  25:       .rst_ni,
  26:       // TL-UL ports
  27:       .h2d (h2d[ii]),
  28:       .d2h (d2h[ii])
  29:     );
  30:   end
  31: endmodule
  32: