../src/lowrisc_prim_abstract_pad_wrapper_0/prim_pad_wrapper.sv Cov: 73.7%

   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: // This file is auto-generated.
   6: 
   7: `ifndef PRIM_DEFAULT_IMPL
   8:   `define PRIM_DEFAULT_IMPL prim_pkg::ImplGeneric
   9: `endif
  10: 
  11: module prim_pad_wrapper
  12: 
  13: #(
  14: 
  15:   parameter int unsigned AttrDw = 6
  16: 
  17: ) (
  18:   inout wire         inout_io, // bidirectional pad
  19:   output logic       in_o,     // input data
  20:   input              out_i,    // output data
  21:   input              oe_i,     // output enable
  22:   // additional attributes {drive strength, keeper, pull-up, pull-down, open-drain, invert}
  23:   input [AttrDw-1:0] attr_i
  24: );
  25:   parameter prim_pkg::impl_e Impl = `PRIM_DEFAULT_IMPL;
  26: 
  27: if (Impl == prim_pkg::ImplXilinx) begin : gen_xilinx
  28:     prim_xilinx_pad_wrapper #(
  29:       .AttrDw(AttrDw)
  30:     ) u_impl_xilinx (
  31:       .*
  32:     );
  33: end else begin : gen_generic
  34:     prim_generic_pad_wrapper #(
  35:       .AttrDw(AttrDw)
  36:     ) u_impl_generic (
  37:       .*
  38:     );
  39: end
  40: 
  41: endmodule
  42: