mirror of
https://github.com/alexforencich/verilog-ethernet.git
synced 2025-01-28 07:03:08 +08:00
Update for compatibility with older version of Python
This commit is contained in:
parent
516c50d786
commit
04e4ccc517
@ -13,7 +13,7 @@ Usage: axis_arb_mux [OPTION]...
|
|||||||
import io
|
import io
|
||||||
import sys
|
import sys
|
||||||
import getopt
|
import getopt
|
||||||
from math import *
|
import math
|
||||||
from jinja2 import Template
|
from jinja2 import Template
|
||||||
|
|
||||||
class Usage(Exception):
|
class Usage(Exception):
|
||||||
@ -66,7 +66,7 @@ def main(argv=None):
|
|||||||
|
|
||||||
print("Generating {0} port AXI Stream arbitrated mux {1}...".format(ports, name))
|
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"""/*
|
t = Template(u"""/*
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ Usage: axis_arb_mux_64 [OPTION]...
|
|||||||
import io
|
import io
|
||||||
import sys
|
import sys
|
||||||
import getopt
|
import getopt
|
||||||
from math import *
|
import math
|
||||||
from jinja2 import Template
|
from jinja2 import Template
|
||||||
|
|
||||||
class Usage(Exception):
|
class Usage(Exception):
|
||||||
@ -66,7 +66,7 @@ def main(argv=None):
|
|||||||
|
|
||||||
print("Generating {0} port AXI Stream arbitrated mux {1}...".format(ports, name))
|
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"""/*
|
t = Template(u"""/*
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ Usage: axis_crosspoint [OPTION]...
|
|||||||
import io
|
import io
|
||||||
import sys
|
import sys
|
||||||
import getopt
|
import getopt
|
||||||
from math import *
|
import math
|
||||||
from jinja2 import Template
|
from jinja2 import Template
|
||||||
|
|
||||||
class Usage(Exception):
|
class Usage(Exception):
|
||||||
@ -66,7 +66,7 @@ def main(argv=None):
|
|||||||
|
|
||||||
print("Generating {0} port AXI Stream crosspoint {1}...".format(ports, name))
|
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"""/*
|
t = Template(u"""/*
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ Usage: axis_crosspoint_64 [OPTION]...
|
|||||||
import io
|
import io
|
||||||
import sys
|
import sys
|
||||||
import getopt
|
import getopt
|
||||||
from math import *
|
import math
|
||||||
from jinja2 import Template
|
from jinja2 import Template
|
||||||
|
|
||||||
class Usage(Exception):
|
class Usage(Exception):
|
||||||
@ -66,7 +66,7 @@ def main(argv=None):
|
|||||||
|
|
||||||
print("Generating {0} port AXI Stream crosspoint {1}...".format(ports, name))
|
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"""/*
|
t = Template(u"""/*
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ Usage: axis_demux [OPTION]...
|
|||||||
import io
|
import io
|
||||||
import sys
|
import sys
|
||||||
import getopt
|
import getopt
|
||||||
from math import *
|
import math
|
||||||
from jinja2 import Template
|
from jinja2 import Template
|
||||||
|
|
||||||
class Usage(Exception):
|
class Usage(Exception):
|
||||||
@ -66,7 +66,7 @@ def main(argv=None):
|
|||||||
|
|
||||||
print("Generating {0} port AXI Stream demux {1}...".format(ports, name))
|
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"""/*
|
t = Template(u"""/*
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ Usage: axis_demux_64 [OPTION]...
|
|||||||
import io
|
import io
|
||||||
import sys
|
import sys
|
||||||
import getopt
|
import getopt
|
||||||
from math import *
|
import math
|
||||||
from jinja2 import Template
|
from jinja2 import Template
|
||||||
|
|
||||||
class Usage(Exception):
|
class Usage(Exception):
|
||||||
@ -66,7 +66,7 @@ def main(argv=None):
|
|||||||
|
|
||||||
print("Generating {0} port AXI Stream demux {1}...".format(ports, name))
|
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"""/*
|
t = Template(u"""/*
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ Usage: axis_frame_join [OPTION]...
|
|||||||
import io
|
import io
|
||||||
import sys
|
import sys
|
||||||
import getopt
|
import getopt
|
||||||
from math import *
|
import math
|
||||||
from jinja2 import Template
|
from jinja2 import Template
|
||||||
|
|
||||||
class Usage(Exception):
|
class Usage(Exception):
|
||||||
@ -66,7 +66,7 @@ def main(argv=None):
|
|||||||
|
|
||||||
print("Generating {0} port AXI Stream frame joiner {1}...".format(ports, name))
|
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"""/*
|
t = Template(u"""/*
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ Usage: axis_mux [OPTION]...
|
|||||||
import io
|
import io
|
||||||
import sys
|
import sys
|
||||||
import getopt
|
import getopt
|
||||||
from math import *
|
import math
|
||||||
from jinja2 import Template
|
from jinja2 import Template
|
||||||
|
|
||||||
class Usage(Exception):
|
class Usage(Exception):
|
||||||
@ -66,7 +66,7 @@ def main(argv=None):
|
|||||||
|
|
||||||
print("Generating {0} port AXI Stream mux {1}...".format(ports, name))
|
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"""/*
|
t = Template(u"""/*
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ Usage: axis_mux_64 [OPTION]...
|
|||||||
import io
|
import io
|
||||||
import sys
|
import sys
|
||||||
import getopt
|
import getopt
|
||||||
from math import *
|
import math
|
||||||
from jinja2 import Template
|
from jinja2 import Template
|
||||||
|
|
||||||
class Usage(Exception):
|
class Usage(Exception):
|
||||||
@ -66,7 +66,7 @@ def main(argv=None):
|
|||||||
|
|
||||||
print("Generating {0} port AXI Stream mux {1}...".format(ports, name))
|
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"""/*
|
t = Template(u"""/*
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user