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}');
}
}