diff --git a/rtl/axis_arb_mux.py b/rtl/axis_arb_mux.py index 9d37839d..e0c12869 100755 --- a/rtl/axis_arb_mux.py +++ b/rtl/axis_arb_mux.py @@ -13,7 +13,7 @@ Usage: axis_arb_mux [OPTION]... import io import sys import getopt -from math import * +import math from jinja2 import Template class Usage(Exception): @@ -66,7 +66,7 @@ def main(argv=None): print("Generating {0} port AXI Stream arbitrated mux {1}...".format(ports, name)) - select_width = ceil(log2(ports)) + select_width = int(math.ceil(math.log(ports, 2))) t = Template(u"""/* diff --git a/rtl/axis_arb_mux_64.py b/rtl/axis_arb_mux_64.py index 873c2e2a..ecbd8101 100755 --- a/rtl/axis_arb_mux_64.py +++ b/rtl/axis_arb_mux_64.py @@ -13,7 +13,7 @@ Usage: axis_arb_mux_64 [OPTION]... import io import sys import getopt -from math import * +import math from jinja2 import Template class Usage(Exception): @@ -66,7 +66,7 @@ def main(argv=None): print("Generating {0} port AXI Stream arbitrated mux {1}...".format(ports, name)) - select_width = ceil(log2(ports)) + select_width = int(math.ceil(math.log(ports, 2))) t = Template(u"""/* diff --git a/rtl/axis_crosspoint.py b/rtl/axis_crosspoint.py index e37707bb..985aae77 100755 --- a/rtl/axis_crosspoint.py +++ b/rtl/axis_crosspoint.py @@ -13,7 +13,7 @@ Usage: axis_crosspoint [OPTION]... import io import sys import getopt -from math import * +import math from jinja2 import Template class Usage(Exception): @@ -66,7 +66,7 @@ def main(argv=None): print("Generating {0} port AXI Stream crosspoint {1}...".format(ports, name)) - select_width = ceil(log2(ports)) + select_width = int(math.ceil(math.log(ports, 2))) t = Template(u"""/* diff --git a/rtl/axis_crosspoint_64.py b/rtl/axis_crosspoint_64.py index 12dbe8ae..158396e1 100755 --- a/rtl/axis_crosspoint_64.py +++ b/rtl/axis_crosspoint_64.py @@ -13,7 +13,7 @@ Usage: axis_crosspoint_64 [OPTION]... import io import sys import getopt -from math import * +import math from jinja2 import Template class Usage(Exception): @@ -66,7 +66,7 @@ def main(argv=None): print("Generating {0} port AXI Stream crosspoint {1}...".format(ports, name)) - select_width = ceil(log2(ports)) + select_width = int(math.ceil(math.log(ports, 2))) t = Template(u"""/* diff --git a/rtl/axis_demux.py b/rtl/axis_demux.py index d7ce6cea..ac32eca9 100755 --- a/rtl/axis_demux.py +++ b/rtl/axis_demux.py @@ -13,7 +13,7 @@ Usage: axis_demux [OPTION]... import io import sys import getopt -from math import * +import math from jinja2 import Template class Usage(Exception): @@ -66,7 +66,7 @@ def main(argv=None): print("Generating {0} port AXI Stream demux {1}...".format(ports, name)) - select_width = ceil(log2(ports)) + select_width = int(math.ceil(math.log(ports, 2))) t = Template(u"""/* diff --git a/rtl/axis_demux_64.py b/rtl/axis_demux_64.py index cf927c1f..807f19bf 100755 --- a/rtl/axis_demux_64.py +++ b/rtl/axis_demux_64.py @@ -13,7 +13,7 @@ Usage: axis_demux_64 [OPTION]... import io import sys import getopt -from math import * +import math from jinja2 import Template class Usage(Exception): @@ -66,7 +66,7 @@ def main(argv=None): print("Generating {0} port AXI Stream demux {1}...".format(ports, name)) - select_width = ceil(log2(ports)) + select_width = int(math.ceil(math.log(ports, 2))) t = Template(u"""/* diff --git a/rtl/axis_frame_join.py b/rtl/axis_frame_join.py index c01ed0ff..896f50c7 100755 --- a/rtl/axis_frame_join.py +++ b/rtl/axis_frame_join.py @@ -13,7 +13,7 @@ Usage: axis_frame_join [OPTION]... import io import sys import getopt -from math import * +import math from jinja2 import Template class Usage(Exception): @@ -66,7 +66,7 @@ def main(argv=None): print("Generating {0} port AXI Stream frame joiner {1}...".format(ports, name)) - select_width = ceil(log2(ports)) + select_width = int(math.ceil(math.log(ports, 2))) t = Template(u"""/* diff --git a/rtl/axis_mux.py b/rtl/axis_mux.py index 122c9602..8230bfd4 100755 --- a/rtl/axis_mux.py +++ b/rtl/axis_mux.py @@ -13,7 +13,7 @@ Usage: axis_mux [OPTION]... import io import sys import getopt -from math import * +import math from jinja2 import Template class Usage(Exception): @@ -66,7 +66,7 @@ def main(argv=None): print("Generating {0} port AXI Stream mux {1}...".format(ports, name)) - select_width = ceil(log2(ports)) + select_width = int(math.ceil(math.log(ports, 2))) t = Template(u"""/* diff --git a/rtl/axis_mux_64.py b/rtl/axis_mux_64.py index 29b3f7aa..31fd2a66 100755 --- a/rtl/axis_mux_64.py +++ b/rtl/axis_mux_64.py @@ -13,7 +13,7 @@ Usage: axis_mux_64 [OPTION]... import io import sys import getopt -from math import * +import math from jinja2 import Template class Usage(Exception): @@ -66,7 +66,7 @@ def main(argv=None): print("Generating {0} port AXI Stream mux {1}...".format(ports, name)) - select_width = ceil(log2(ports)) + select_width = int(math.ceil(math.log(ports, 2))) t = Template(u"""/*