elasticai.creator_plugins.combinatorial.tests.test_vhdl_nodes#

Module Contents#

Classes#

Functions#

API#

elasticai.creator_plugins.combinatorial.tests.test_vhdl_nodes.node(raw_node)[source]#
elasticai.creator_plugins.combinatorial.tests.test_vhdl_nodes.new_node(name: str, type: str, implementation: str, input_shape: elasticai.creator.ir2vhdl.Shape, output_shape: elasticai.creator.ir2vhdl.Shape, attributes: dict | None = None) elasticai.creator.ir2vhdl.Node[source]#
class elasticai.creator_plugins.combinatorial.tests.test_vhdl_nodes.BaseVhdlNodeTest[source]#
test_contains_all_signal_assignments(node: elasticai.creator.ir2vhdl.language.Instance, raw_node: elasticai.creator.ir2vhdl.Node, expected_assignments: set[str])[source]#
test_contains_all_generics(node: elasticai.creator.ir2vhdl.language.Instance, expected_generics: set[str])[source]#
test_first_line_is_correct(node: elasticai.creator.ir2vhdl.language.Instance, first_line: str)[source]#
test_can_define_signals(node, raw_node)[source]#
elasticai.creator_plugins.combinatorial.tests.test_vhdl_nodes.test_compute_correct_generic_map_for_shift_register(in_shape, out_shape, stride, expected)[source]#
class elasticai.creator_plugins.combinatorial.tests.test_vhdl_nodes.TestShiftRegister[source]#

Bases: elasticai.creator_plugins.combinatorial.tests.test_vhdl_nodes.BaseVhdlNodeTest

raw_node()[source]#
expected_generics() set[str][source]#

conv0 out shape is (2, 2) so we have data width of 4 and conv1 in shape is (2, 4) thus we have num points 2.

expected_assignments() set[str][source]#
first_line() str[source]#
class elasticai.creator_plugins.combinatorial.tests.test_vhdl_nodes.TestSlidingWindow[source]#

Bases: elasticai.creator_plugins.combinatorial.tests.test_vhdl_nodes.BaseVhdlNodeTest

raw_node()[source]#
expected_generics() set[str][source]#
expected_assignments() set[str][source]#
first_line() str[source]#
test_raise_error_for_incompatible_shapes()[source]#
test_warn_about_technically_compatible_but_semantically_wrong_shapes()[source]#