Skip to content

Commit

Permalink
ui: remove vunit.verilog (VUnit#559)
Browse files Browse the repository at this point in the history
  • Loading branch information
umarcor committed Oct 22, 2021
1 parent 1f69d65 commit 7960147
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 35 deletions.
4 changes: 3 additions & 1 deletion examples/verilog/uart/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@
"""

from pathlib import Path
from vunit.verilog import VUnit
from vunit import VUnit

SRC_PATH = Path(__file__).parent / "src"

VU = VUnit.from_argv()
VU.add_verilog_builtins()

VU.add_library("uart_lib").add_source_files(SRC_PATH / "*.sv")
VU.add_library("tb_uart_lib").add_source_files(SRC_PATH / "test" / "*.sv")

Expand Down
4 changes: 3 additions & 1 deletion examples/verilog/user_guide/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@
"""

from pathlib import Path
from vunit.verilog import VUnit
from vunit import VUnit

ROOT = Path(__file__).parent

VU = VUnit.from_argv()
VU.add_verilog_builtins()

VU.add_library("lib").add_source_files(ROOT / "*.sv")

VU.main()
4 changes: 3 additions & 1 deletion examples/verilog/verilog_ams/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@
# Copyright (c) 2014-2021, Lars Asplund [email protected]

from pathlib import Path
from vunit.verilog import VUnit
from vunit import VUnit

ROOT = Path(__file__).parent

VU = VUnit.from_argv()
VU.add_verilog_builtins()

LIB = VU.add_library("lib")
LIB.add_source_files(ROOT / "*.sv")
LIB.add_source_files(ROOT / "*.vams").set_compile_option("modelsim.vlog_flags", ["-ams"])
Expand Down
5 changes: 4 additions & 1 deletion tests/acceptance/artificial/verilog/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,14 @@
# Copyright (c) 2014-2021, Lars Asplund [email protected]

from pathlib import Path
from vunit.verilog import VUnit
from vunit import VUnit


ROOT = Path(__file__).parent

VU = VUnit.from_argv()
VU.add_verilog_builtins()

LIB = VU.add_library("lib")
LIB.add_source_files(ROOT / "*.sv", defines={"DEFINE_FROM_RUN_PY": ""})

Expand Down
31 changes: 0 additions & 31 deletions vunit/verilog.py

This file was deleted.

0 comments on commit 7960147

Please sign in to comment.