| 174 | |
| 175 | template <typename Processor> |
| 176 | void print_io() |
| 177 | { |
| 178 | if constexpr(avnd::input_introspection<Processor>::size > 0) |
| 179 | { |
| 180 | fmt::print(outfile, "Inputs:\n"); |
| 181 | int k = 0; |
| 182 | |
| 183 | avnd::input_introspection<Processor>::for_all([&]<typename Field>(Field wrap) { |
| 184 | using type = typename Field::type; |
| 185 | fmt::print(outfile, " - Port index: {}\n", k++); |
| 186 | fmt::print(outfile, " - Type: {}\n", port_type(wrap)); |
| 187 | fmt::print(outfile, " - Name: '{}'\n", avnd::get_name<type>()); |
| 188 | |
| 189 | fmt::print(outfile, "\n"); |
| 190 | }); |
| 191 | } |
| 192 | |
| 193 | if constexpr(avnd::output_introspection<Processor>::size > 0) |
| 194 | { |
| 195 | fmt::print(outfile, "Outputs:\n"); |
| 196 | int k = 0; |
| 197 | avnd::output_introspection<Processor>::for_all([&]<typename Field>(Field wrap) { |
| 198 | using type = typename Field::type; |
| 199 | fmt::print(outfile, " - Port index: {}\n", k++); |
| 200 | fmt::print(outfile, " - Type: {}\n", port_type(wrap)); |
| 201 | fmt::print(outfile, " - Name: '{}'\n", avnd::get_name<type>()); |
| 202 | |
| 203 | fmt::print(outfile, "\n"); |
| 204 | }); |
| 205 | } |
| 206 | } |
| 207 | |
| 208 | template <typename Processor> |
| 209 | void print_parameters() |
nothing calls this directly
no test coverage detected