formatting
This commit is contained in:
parent
8f45546b5a
commit
6eae490061
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue