Skip to content

Commit

Permalink
Updating for vunit 5.0+ 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 a9c15ff commit f94c4dd
Show file tree
Hide file tree
Showing 14 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion casper_accumulators/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import numpy as np

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

Expand Down
2 changes: 1 addition & 1 deletion casper_adder/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ 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(compile_builtins=False)
vu = VUnit.from_argv()
vu.add_vhdl_builtins()
script_dir = os.path.dirname(__file__)

Expand Down
2 changes: 1 addition & 1 deletion casper_counter/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from os.path import dirname, join

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

Expand Down
2 changes: 1 addition & 1 deletion casper_delay/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import numpy as np

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

Expand Down
2 changes: 1 addition & 1 deletion casper_fifo/run.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
from vunit import VUnit

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

Expand Down
2 changes: 1 addition & 1 deletion casper_filter/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def manglePkg(file_name, line_number, new_line):
args = cli.parse_args()

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

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

Expand Down
2 changes: 1 addition & 1 deletion casper_multiplexer/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def generate_tests(obj,
g_test_nof_cycles=test_nof_cycles)
)

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

Expand Down
2 changes: 1 addition & 1 deletion casper_multiplier/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import glob
from os.path import dirname
# Create VUnit instance by parsing command line arguments
vu = VUnit.from_argv(compile_builtins=False)
vu = VUnit.from_argv()
vu.add_vhdl_builtins()
# Function for mult range calculations
def get_ranges(dat_w,margin):
Expand Down
2 changes: 1 addition & 1 deletion casper_ram/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from os.path import dirname, join

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

Expand Down
2 changes: 1 addition & 1 deletion casper_wb_fft/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def manglePkg(file_name, line_number, new_line):
args = cli.parse_args()

# Create VUnit instance by parsing command line arguments
vu = = VUnit.from_argv(args = args,compile_builtins=False)
vu = = VUnit.from_argv(args = args,)
# 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(compile_builtins=False)
vu = VUnit.from_argv()
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(compile_builtins=False)
vu = VUnit.from_argv()
script_dir = dirname(__file__)

# Create library 'common_pkg_lib'
Expand Down
4 changes: 2 additions & 2 deletions r2sdf_fft/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
cli.parser.add_argument('--twid',action = 'store_true',help = 'Run the Twiddle Tests')
cli.parser.add_argument('--bitaccurate',action = 'store_true',help = 'Run the bitaccurate Tests')
args = cli.parse_args()
vu = = VUnit.from_argv(args = args,compile_builtins=False)
#vu = VUnit.from_argv(argv = args,compile_builtins=False)
vu = = VUnit.from_argv(args = args,)
#vu = VUnit.from_argv(argv = args,)
vu.add_vhdl_builtins()
vu.add_random()

Expand Down

0 comments on commit f94c4dd

Please sign in to comment.