Skip to content

Commit

Permalink
Implemented version 4.7.0 changes as per VUnit/vunit#777
Browse files Browse the repository at this point in the history
  • Loading branch information
mschiller-nrao committed May 25, 2023
1 parent 352461f commit 507f926
Show file tree
Hide file tree
Showing 13 changed files with 22 additions and 18 deletions.
3 changes: 2 additions & 1 deletion casper_accumulators/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
import numpy as np

# Create VUnit instance by parsing command line arguments
vu = VUnit.from_argv()
vu = from_argv(compile_builtins=False)
vu.add_vhdl_builtins()
script_dir = dirname(__file__)

# XPM Library compile
Expand Down
4 changes: 2 additions & 2 deletions casper_adder/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ def generate_tests(obj, direc, add_sub, inp_pipeline, out_pipeline, in_dat_w):
g_a_val_min=a_v_min, g_a_val_max=a_v_max, g_b_val_min=b_v_min, g_b_val_max=b_v_max)
)

vu = VUnit.from_argv()

vu = from_argv(compile_builtins=False)
vu.add_vhdl_builtins()
script_dir = os.path.dirname(__file__)

lib1 = vu.add_library("casper_adder_lib",allow_duplicate=True)
Expand Down
3 changes: 2 additions & 1 deletion casper_counter/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
from os.path import dirname, join

# Create VUnit instance by parsing command line arguments
vu = VUnit.from_argv()
vu = from_argv(compile_builtins=False)
vu.add_vhdl_builtins()
script_dir = dirname(__file__)

# Create library 'casper_counter_lib'
Expand Down
3 changes: 2 additions & 1 deletion casper_delay/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
import numpy as np

# Create VUnit instance by parsing command line arguments
vu = VUnit.from_argv()
vu = from_argv(compile_builtins=False)
vu.add_vhdl_builtins()
script_dir = dirname(__file__)

# XPM Library compile
Expand Down
4 changes: 2 additions & 2 deletions casper_fifo/run.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import os
from vunit import VUnit

vu = VUnit.from_argv()

vu = from_argv(compile_builtins=False)
vu.add_vhdl_builtins()
script_dir = os.path.dirname(__file__)

lib1 = vu.add_library("tb_lib",allow_duplicate=True)
Expand Down
4 changes: 2 additions & 2 deletions casper_filter/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ def manglePkg(file_name, line_number, new_line):
args = cli.parse_args()

# Create VUnit instance by parsing command line arguments
vu = VUnit.from_args(args = args)

vu = VUnit.from_args(args = args,compile_builtins=False)
vu.add_vhdl_builtins()
# XPM Library compile
lib_xpm = vu.add_library("xpm")
lib_xpm.add_source_files(join(script_dir, "../xilinx/xpm_vhdl/src/xpm/xpm_VCOMP.vhd"))
Expand Down
3 changes: 2 additions & 1 deletion casper_flow_control/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
import random

# Create VUnit instance by parsing command line arguments
vu = VUnit.from_argv()
vu = from_argv(compile_builtins=False)
vu.add_vhdl_builtins()
script_dir = dirname(__file__)

# Create library 'common_pkg_lib'
Expand Down
4 changes: 2 additions & 2 deletions casper_multiplexer/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ def generate_tests(obj,
g_test_nof_cycles=test_nof_cycles)
)

vu = VUnit.from_argv()

vu = from_argv(compile_builtins=False)
vu.add_vhdl_builtins()
script_dir = os.path.dirname(__file__)

lib1 = vu.add_library("casper_multiplexer_lib")
Expand Down
4 changes: 2 additions & 2 deletions casper_multiplier/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
import glob
from os.path import dirname
# Create VUnit instance by parsing command line arguments
vu = VUnit.from_argv()

vu = from_argv(compile_builtins=False)
vu.add_vhdl_builtins()
# Function for mult range calculations
def get_ranges(dat_w,margin):
min_val = -(2**(dat_w-1))
Expand Down
3 changes: 2 additions & 1 deletion casper_ram/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
from os.path import dirname, join

# Create VUnit instance by parsing command line arguments
vu = VUnit.from_argv()
vu = from_argv(compile_builtins=False)
vu.add_vhdl_builtins()
script_dir = dirname(__file__)

# XPM Library compile
Expand Down
1 change: 0 additions & 1 deletion casper_wb_fft/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ def manglePkg(file_name, line_number, new_line):

# Create VUnit instance by parsing command line arguments
vu = VUnit.from_args(args = args,compile_builtins=False)

# If none of the flags are specified, run all tests.
run_all = not(args.par or args.pipe or args.wide or args.bitaccurate)
vu.add_vhdl_builtins()
Expand Down
2 changes: 1 addition & 1 deletion casper_wbpfb/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def manglePkg(file_name, line_number, new_line):
# test_to_run = sys.argv[1]

# Create VUnit instance by parsing command line arguments
vu = VUnit.from_argv()
vu = from_argv(compile_builtins=False)
vu.add_vhdl_builtins()
# XPM Library compile
lib_xpm = vu.add_library("xpm")
Expand Down
2 changes: 1 addition & 1 deletion misc/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import random

# Create VUnit instance by parsing command line arguments
vu = VUnit.from_argv()
vu = from_argv(compile_builtins=False)
script_dir = dirname(__file__)

# Create library 'common_pkg_lib'
Expand Down

0 comments on commit 507f926

Please sign in to comment.