getBackdoorPortsByName method
- String name
Accessor to the backdoor ports of a particular register
within the block by name name
.
Implementation
CsrBackdoorInterface getBackdoorPortsByName(String name) {
final idx = _config.registers.indexOf(_config.getRegisterByName(name));
if (_backdoorIndexMap.containsKey(idx)) {
return backdoorInterfaces[_backdoorIndexMap[idx]!];
} else {
throw Exception('Register $name not found in block ${_config.name}');
}
}