| 34 | void setSubModuleNum(std::string subModuleName, int num) { subModuleNum[subModuleName] = num; } |
| 35 | |
| 36 | std::shared_ptr<Module> getSubModule(std::string _name) { |
| 37 | if (submodules.find(_name) == submodules.end()) return nullptr; |
| 38 | return submodules[_name]; |
| 39 | } |
| 40 | std::shared_ptr<Port> getPort(std::string portName) { |
| 41 | if (ports.find(portName) == ports.end()) return nullptr; |
| 42 | return ports[portName]; |
no test coverage detected