36 for (
int i = 0;
i <
params.port_req_ports_connection_count; ++
i) {
37 reqPorts.emplace_back(
name() +
".req_ports" + std::to_string(
i));
39 for (
int j = 0; j <
params.port_resp_ports_connection_count; ++j) {
48 if (if_name ==
"req_ports" && idx <
reqPorts.size()) {
50 }
else if (if_name ==
"resp_ports" && idx <
respPorts.size()) {
virtual std::string name() const
PortTerminator(const PortTerminatorParams ¶ms)
std::vector< ReqPort > reqPorts
std::vector< RespPort > respPorts
Port & getPort(const std::string &if_name, PortID idx=InvalidPortID) override
Get a port with a given name and index.
Ports are used to interface objects to each other.
Abstract superclass for simulation objects.
const Params & params() const
virtual Port & getPort(const std::string &if_name, PortID idx=InvalidPortID)
Get a port with a given name and index.
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
int16_t PortID
Port index/ID type, and a symbolic name for an invalid port id.
Contains the description of the class PortTerminator.