Exemplo n.º 1
0
def main():
    check_api_file_name = join(dirname(__file__), "..", "src", "check_api.vhd")
    replace_region("check_match", check_api_file_name, generate_api())

    check_file_name = join(dirname(__file__), "..", "src", "check.vhd")
    replace_region("check_match", check_file_name, generate_impl())

    with open(join(dirname(__file__), "..", "test", "tb_check_match.vhd"), "wb") as fptr:
        fptr.write(generate_test().encode())
Exemplo n.º 2
0
def main():
    check_api_file_name = join(dirname(__file__), "..", "src", "check_api.vhd")
    replace_region("check_match", check_api_file_name, generate_api())

    check_file_name = join(dirname(__file__), "..", "src", "check.vhd")
    replace_region("check_match", check_file_name, generate_impl())

    with open(join(dirname(__file__), "..", "test", "tb_check_match.vhd"), "wb") as fptr:
        fptr.write(generate_test().encode())
def main():
    check_api_file_name = str(
        Path(__file__).parent.parent / "src" / "check_api.vhd")
    replace_region("check_match", check_api_file_name, generate_api())

    check_file_name = str(Path(__file__).parent.parent / "src" / "check.vhd")
    replace_region("check_match", check_file_name, generate_impl())

    with (Path(__file__).parent.parent / "test" /
          "tb_check_match.vhd").open("wb") as fptr:
        fptr.write(generate_test().encode())