Skip to content

Commit

Permalink
fix: fix missing creation of a subpath in the save_to function
Browse files Browse the repository at this point in the history
  • Loading branch information
julianhoever committed Jun 4, 2023
1 parent f701a57 commit 2a4dbdf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def port(self) -> Port:
outgoing=[signal(name="y")],
)

def save_to(self, destination: Path):
def save_to(self, destination: Path) -> None:
process_content = []
pairs = list(self._io_pairs.items())
for input, output in pairs[0:1]:
Expand All @@ -67,4 +67,4 @@ def save_to(self, destination: Path):
f"else signed_y <= to_signed({output}, {self._width});\nend if;"
)
self._template.parameters.update(process_content=process_content)
destination.as_file(".vhd").write(self._template)
destination.create_subpath(self.name).as_file(".vhd").write(self._template)

0 comments on commit 2a4dbdf

Please sign in to comment.