# You can obtain one at http://mozilla.org/MPL/2.0/. # # Copyright (c) 2014-2022, Lars Asplund [email protected] """ Vivado IP --------- Demonstrates compiling and performing behavioral simulation of Vivado IPs with VUnit. """ from pathlib import Path from vunit import VUnit from vivado_util import add_vivado_ip ROOT = Path(__file__).parent SRC_PATH = ROOT / "src" VU = VUnit.from_argv() VU.add_library("lib").add_source_files(SRC_PATH / "*.vhd") VU.add_library("tb_lib").add_source_files(SRC_PATH / "test" / "*.vhd") add_vivado_ip( VU, output_path=ROOT / "vivado_libs", project_file=ROOT / "myproject" / "myproject.xpr", ) VU.main()
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. # # Copyright (c) 2014-2018, Lars Asplund [email protected] from os.path import join, dirname from vunit import VUnit from vivado_util import add_vivado_ip ui = VUnit.from_argv() root = dirname(__file__) src_path = join(root, "src") lib = ui.add_library("lib") lib.add_source_files(join(src_path, "*.vhd")) tb_lib = ui.add_library("tb_lib") tb_lib.add_source_files(join(src_path, "test", "*.vhd")) add_vivado_ip(ui, output_path=join(root, "vivado_libs"), project_file=join(root, "myproject", "myproject.xpr")) ui.main()
# You can obtain one at http://mozilla.org/MPL/2.0/. # # Copyright (c) 2014-2019, Lars Asplund [email protected] """ Vivado IP --------- Demonstrates compiling and performing behavioral simulation of Vivado IPs with VUnit. """ from os.path import join, dirname from vunit import VUnit from vivado_util import add_vivado_ip root = dirname(__file__) src_path = join(root, "src") vu = VUnit.from_argv() vu.add_library("lib").add_source_files(join(src_path, "*.vhd")) vu.add_library("tb_lib").add_source_files(join(src_path, "test", "*.vhd")) add_vivado_ip( vu, output_path=join(root, "vivado_libs"), project_file=join(root, "myproject", "myproject.xpr"), ) vu.main()
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. # # Copyright (c) 2014-2015, Lars Asplund [email protected] from os.path import join, dirname from vunit import VUnit from vivado_util import add_vivado_ip ui = VUnit.from_argv() root = dirname(__file__) src_path = join(root, "src") lib = ui.add_library("lib") lib.add_source_files(join(src_path, "*.vhd")) tb_lib = ui.add_library("tb_lib") tb_lib.add_source_files(join(src_path, "test", "*.vhd")) add_vivado_ip(ui, root, project_file=join(root, "myproject", "myproject.xpr")) ui.main()