diff --git a/src/manta/manta.py b/src/manta/manta.py index 1ecfc0d..e724748 100644 --- a/src/manta/manta.py +++ b/src/manta/manta.py @@ -33,7 +33,9 @@ class Manta(Elaboratable): # Load config from either YAML or JSON extension = config_path.split(".")[-1] if extension not in ["yaml", "yml", "json"]: - raise ValueError(f"Configuration file {config_path} has unrecognized file type.") + raise ValueError( + f"Configuration file {config_path} has unrecognized file type." + ) with open(config_path, "r") as f: if extension in ["yaml", "yml"]: @@ -82,7 +84,6 @@ class Manta(Elaboratable): return manta - def elaborate(self, platform): m = Module() diff --git a/src/manta/utils.py b/src/manta/utils.py index 5b5bfb5..eef0f8e 100644 --- a/src/manta/utils.py +++ b/src/manta/utils.py @@ -77,7 +77,7 @@ class CoreContainer: value.interface = self._manta.interface value.base_addr = self._last_used_addr - if value.max_addr > (2**16)-1: + if value.max_addr > (2**16) - 1: raise ValueError(f"Ran out of address space while allocating core.") self._last_used_addr = value.max_addr + 1