| // Copyright lowRISC contributors. |
| // Licensed under the Apache License, Version 2.0, see LICENSE for details. |
| // SPDX-License-Identifier: Apache-2.0 |
| // Testbench module for ${dut.name}. |
| // Intended to be used with a formal tool. |
| module ${dut.name}_fpv #( |
| % for k, param in enumerate(dut.params): |
| <% comma = "" if (k == len(dut.params)-1) else "," %> ${param.style} ${param.datatype} ${param.name} =${param.value}${comma} |
| % for k, port in enumerate(dut.ports): |
| <% comma = "" if (k == len(dut.ports)-1) else "," %> ${port.direction} ${port.datatype} ${port.name}${comma} |
| <% params = dut.get_param_style("parameter") %> |
| % for k, param in enumerate(params): |
| <% comma = "" if (k == len(params)-1) else "," %> .${param.name}(${param.name})${comma} |
| % for k, port in enumerate(dut.ports): |
| <% comma = "" if (k == len(dut.ports)-1) else "," %> .${port.name}${comma} |
| endmodule : ${dut.name}_fpv |