Skip to content

Commit

Permalink
fix: fix broken import in base template generator and move it with it…
Browse files Browse the repository at this point in the history
…s template to own folder
  • Loading branch information
julianhoever committed Jun 10, 2023
1 parent 349a9f8 commit 9eb1f70
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions elasticai/creator/hdl/auto_wire_protocols/ports.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,7 @@ def port_definition_template_for_buffered_design() -> list[str]:
return template_string_for_port_definition(
create_port_for_buffered_design(x_width=1, y_width=1, x_count=1, y_count=1)
)


def port_definition_template_for_bufferless_design() -> list[str]:
return template_string_for_port_definition(create_port_for_bufferless_design(1, 1))
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .base_template_generator import BaseTemplateGenerator
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
from elasticai.creator.hdl.auto_wire_protocols.bufferless import base_vhdl_port
from elasticai.creator.hdl.auto_wire_protocols.ports import (
port_definition_template_for_bufferless_design,
)
from elasticai.creator.hdl.code_generation.template import (
InProjectTemplate,
TemplateExpander,
Expand All @@ -23,7 +25,7 @@ def __init__(self) -> None:
package=module_to_package(self.__module__),
file_name="base_template.tpl.vhd",
parameters={
"port": base_vhdl_port(),
"port": port_definition_template_for_bufferless_design(),
},
)

Expand Down

0 comments on commit 9eb1f70

Please sign in to comment.