| // Copyright lowRISC contributors. |
| // Licensed under the Apache License, Version 2.0, see LICENSE for details. |
| // SPDX-License-Identifier: Apache-2.0 |
| // Testbench module for padctrl. Intended to use with a formal tool. |
| `ifndef PRIM_DEFAULT_IMPL |
| `define PRIM_DEFAULT_IMPL integer'(prim_pkg::ImplGeneric) |
| parameter integer Impl = `PRIM_DEFAULT_IMPL |
| input tlul_pkg::tl_h2d_t tl_i, |
| output tlul_pkg::tl_d2h_t tl_o, |
| inout wire [padctrl_reg_pkg::NMioPads-1:0] mio_pad_io, |
| inout wire [padctrl_reg_pkg::NDioPads-1:0] dio_pad_io, |
| input [padctrl_reg_pkg::NMioPads-1:0] mio_out_i, |
| input [padctrl_reg_pkg::NMioPads-1:0] mio_oe_i, |
| output logic [padctrl_reg_pkg::NMioPads-1:0] mio_in_o, |
| input [padctrl_reg_pkg::NDioPads-1:0] dio_out_i, |
| input [padctrl_reg_pkg::NDioPads-1:0] dio_oe_i, |
| output logic [padctrl_reg_pkg::NDioPads-1:0] dio_in_o |
| logic [padctrl_reg_pkg::NMioPads-1:0][padctrl_reg_pkg::AttrDw-1:0] mio_attr; |
| logic [padctrl_reg_pkg::NDioPads-1:0][padctrl_reg_pkg::AttrDw-1:0] dio_attr; |