"""
if not isinstance(sub_bus, Interface):
raise TypeError("Subordinate bus must be an instance of "
- "wishbone.Interface, not {!r}" .format(sub_bus))
+ "wishbone.Interface, not {!r}".format(sub_bus))
if sub_bus.granularity > self.bus.granularity:
raise ValueError("Subordinate bus has granularity {}, "
"which is greater than the "
.format(sub_bus.granularity, self.bus.granularity))
if not sparse:
if sub_bus.data_width != self.bus.data_width:
- raise ValueError("Subordinate bus has data width {}, "
- "which is not the same as "
- "decoder data width {} "
- "(required for dense address translation)"
+ raise ValueError("Subordinate bus has data width {}, "
+ "which is not the same as "
+ "decoder data width {} (required "
+ "for dense address translation)"
.format(sub_bus.data_width,
self.bus.data_width))
else:
for opt_output in {"err", "rty", "stall"}:
if hasattr(sub_bus, opt_output) and not hasattr(
self.bus, opt_output):
- raise ValueError("Subordinate bus has optional output "
- "{!r}, but the decoder "
+ raise ValueError("Subordinate bus has optional output {!r}, "
+ "but the decoder "
"does not have a corresponding input"
.format(opt_output))