formatting

This commit is contained in:
Fischer Moseley 2024-08-03 19:49:20 -07:00
parent 8f45546b5a
commit 6eae490061
2 changed files with 4 additions and 3 deletions

View File

@ -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()

View File

@ -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