mirror of
https://github.com/myhdl/myhdl.git
synced 2025-01-24 21:52:56 +08:00
from __future__ import absolute_import in all files for uniformity
This commit is contained in:
parent
a0d9a4fd13
commit
4aba3ba407
@ -18,6 +18,7 @@
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
""" Module that provides the Cosimulation class """
|
||||
from __future__ import absolute_import
|
||||
|
||||
|
||||
import sys
|
||||
|
@ -21,6 +21,7 @@
|
||||
|
||||
|
||||
"""
|
||||
from __future__ import absolute_import
|
||||
|
||||
import warnings
|
||||
from copy import deepcopy
|
||||
|
@ -26,6 +26,7 @@ posedge -- callable to model a rising edge on a signal in a yield statement
|
||||
negedge -- callable to model a falling edge on a signal in a yield statement
|
||||
|
||||
"""
|
||||
from __future__ import absolute_import
|
||||
|
||||
from inspect import currentframe, getouterframes
|
||||
from copy import copy, deepcopy
|
||||
|
@ -18,6 +18,7 @@
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
""" Module that provides the Simulation class """
|
||||
from __future__ import absolute_import
|
||||
|
||||
|
||||
import sys
|
||||
|
@ -18,6 +18,7 @@
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
""" Module that provides the _Waiter class """
|
||||
from __future__ import absolute_import
|
||||
|
||||
|
||||
from types import GeneratorType
|
||||
|
@ -18,6 +18,7 @@
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
""" Module with the always function. """
|
||||
from __future__ import absolute_import
|
||||
|
||||
|
||||
from types import FunctionType
|
||||
|
@ -18,6 +18,7 @@
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
""" Module with the always_comb function. """
|
||||
from __future__ import absolute_import
|
||||
|
||||
import sys
|
||||
import inspect
|
||||
|
@ -18,6 +18,7 @@
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
""" Module with the always_seq decorator. """
|
||||
from __future__ import absolute_import
|
||||
|
||||
|
||||
import sys
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
# cell dereferencing hack, thanks to Samuele Pedroni
|
||||
|
||||
import new
|
||||
|
@ -20,6 +20,7 @@
|
||||
""" module with the concat function.
|
||||
|
||||
"""
|
||||
from __future__ import absolute_import
|
||||
|
||||
from myhdl._intbv import intbv
|
||||
from myhdl._Signal import _Signal
|
||||
|
@ -20,6 +20,7 @@
|
||||
""" Module that implements enum.
|
||||
|
||||
"""
|
||||
from __future__ import absolute_import
|
||||
|
||||
|
||||
from types import StringType
|
||||
|
@ -20,6 +20,7 @@
|
||||
""" myhdl _extractHierarchy module.
|
||||
|
||||
"""
|
||||
from __future__ import absolute_import
|
||||
|
||||
|
||||
import sys
|
||||
|
@ -18,6 +18,7 @@
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
""" Module with the always function. """
|
||||
from __future__ import absolute_import
|
||||
|
||||
|
||||
from types import FunctionType
|
||||
|
@ -18,6 +18,7 @@
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
""" Module with the intbv class """
|
||||
from __future__ import absolute_import
|
||||
|
||||
|
||||
|
||||
|
@ -24,6 +24,7 @@ instances -- function that returns instances in a generator function
|
||||
downrange -- function that returns a downward range
|
||||
|
||||
"""
|
||||
from __future__ import absolute_import
|
||||
|
||||
|
||||
import sys
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
import ast
|
||||
from types import FunctionType
|
||||
|
||||
|
@ -20,6 +20,7 @@
|
||||
""" myhdl traceSignals module.
|
||||
|
||||
"""
|
||||
from __future__ import absolute_import
|
||||
|
||||
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
import warnings
|
||||
|
||||
from myhdl._Signal import _Signal, _DelayedSignal
|
||||
|
@ -20,6 +20,7 @@
|
||||
""" unparse module
|
||||
|
||||
"""
|
||||
from __future__ import absolute_import
|
||||
|
||||
|
||||
import compiler
|
||||
|
@ -20,6 +20,7 @@
|
||||
""" Module with utilility objects for MyHDL.
|
||||
|
||||
"""
|
||||
from __future__ import absolute_import
|
||||
|
||||
|
||||
import ast
|
||||
|
@ -20,6 +20,7 @@
|
||||
""" MyHDL conversion analysis module.
|
||||
|
||||
"""
|
||||
from __future__ import absolute_import
|
||||
|
||||
import inspect
|
||||
# import compiler
|
||||
|
@ -20,6 +20,7 @@
|
||||
""" myhdl toVerilog package.
|
||||
|
||||
"""
|
||||
from __future__ import absolute_import
|
||||
|
||||
|
||||
import inspect
|
||||
|
@ -20,6 +20,7 @@
|
||||
""" myhdl toVHDL conversion module.
|
||||
|
||||
"""
|
||||
from __future__ import absolute_import
|
||||
|
||||
|
||||
import sys
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
# This file is part of the myhdl library, a Python package for using
|
||||
# Python as a Hardware Description Language.
|
||||
#
|
||||
|
@ -20,6 +20,7 @@
|
||||
""" myhdl toVerilog conversion module.
|
||||
|
||||
"""
|
||||
from __future__ import absolute_import
|
||||
|
||||
|
||||
import sys
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
import sys
|
||||
import os
|
||||
import tempfile
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
from myhdl import *
|
||||
|
||||
from test_lfsr24 import test_lfsr24
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
from myhdl import *
|
||||
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
from myhdl import *
|
||||
|
||||
def lfsr24(lfsr, enable, clock, reset):
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
from myhdl import *
|
||||
|
||||
def long_divider(
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
from myhdl import *
|
||||
|
||||
def random_generator(random_word, enable, clock, reset):
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
from myhdl import *
|
||||
|
||||
from glibc_random import glibc_random
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
from myhdl import *
|
||||
|
||||
from glibc_random import glibc_random
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
from myhdl import *
|
||||
|
||||
from lfsr24 import lfsr24
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
from myhdl import *
|
||||
|
||||
from glibc_random import glibc_random
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
from myhdl import *
|
||||
|
||||
from test_longdiv import test_longdiv
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
from myhdl import *
|
||||
|
||||
from test_longdiv import test_longdiv
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
from myhdl import *
|
||||
|
||||
from test_longdiv import test_longdiv
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
from myhdl import *
|
||||
|
||||
from test_longdiv import test_longdiv
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
from myhdl import *
|
||||
|
||||
from test_longdiv import test_longdiv
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
from myhdl import *
|
||||
|
||||
from test_longdiv import test_longdiv
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
from myhdl import *
|
||||
|
||||
from test_longdiv import test_longdiv
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
from myhdl import *
|
||||
|
||||
from test_longdiv import test_longdiv
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
from myhdl import *
|
||||
|
||||
from test_longdiv import test_longdiv
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
from myhdl import *
|
||||
|
||||
from test_longdiv import test_longdiv
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
from myhdl import *
|
||||
|
||||
from random_generator import random_generator
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
from myhdl import *
|
||||
|
||||
from timer import timer_sig, timer_var
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
from myhdl import *
|
||||
|
||||
from timer import timer_sig, timer_var
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
from myhdl import *
|
||||
|
||||
def timer_sig(flag, clock, reset, MAXVAL):
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
from myhdl.conversion import verify
|
||||
|
||||
verify.simulator = "GHDL"
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
from myhdl.conversion import verify
|
||||
|
||||
verify.simulator = "cver"
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
from myhdl.conversion import verify
|
||||
|
||||
verify.simulator = "icarus"
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
import sys
|
||||
import os
|
||||
path = os.path
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
import sys
|
||||
import os
|
||||
path = os.path
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
import sys
|
||||
import os
|
||||
path = os.path
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
from myhdl import *
|
||||
from myhdl import ConversionError
|
||||
from myhdl.conversion._misc import _error
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
from myhdl import *
|
||||
|
||||
def bug_28(dout, channel):
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
from myhdl import *
|
||||
|
||||
def bug_3529686(clr, clk, run, ack, serialout):
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
from myhdl import *
|
||||
from myhdl.conversion import analyze
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
from myhdl import *
|
||||
from myhdl.conversion import verify
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
#! /usr/bin/env python
|
||||
|
||||
from myhdl import *
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
#! /usr/bin/env python
|
||||
|
||||
from myhdl import *
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
#! /usr/bin/env python
|
||||
|
||||
from myhdl import *
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
from myhdl import *
|
||||
|
||||
WIDTH=4
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
from myhdl import *
|
||||
from myhdl.conversion import verify
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
from myhdl import *
|
||||
|
||||
INT_CONDITION_0 = 0
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
from myhdl import *
|
||||
|
||||
def gray_counter (clk, reset, enable, gray_count):
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
from myhdl import *
|
||||
|
||||
#t_state = enum('WAIT_POSEDGE', 'WAIT_NEGEDGE', encoding='one_hot')
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
from myhdl import *
|
||||
|
||||
t_state = enum('WAIT_POSEDGE', 'WAIT_NEGEDGE', encoding='one_hot')
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
#!/usr/bin/python2.7-32
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
|
@ -2,6 +2,7 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
"""Failed VHDL code example
|
||||
"""
|
||||
from __future__ import absolute_import
|
||||
|
||||
from myhdl import *
|
||||
from myhdl.conversion import verify
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
from myhdl import *
|
||||
from myhdl.conversion import analyze
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
from myhdl import *
|
||||
|
||||
def issue_9():
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
from myhdl.conversion import verify, analyze
|
||||
|
||||
verify.simulator = analyze.simulator = "vcom"
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
from myhdl.conversion import verify, analyze
|
||||
|
||||
verify.simulator = analyze.simulator = "vlog"
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
from myhdl.conversion import verify, analyze
|
||||
|
||||
verify.simulator = analyze.simulator = "GHDL"
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
from myhdl.conversion import verify, analyze
|
||||
|
||||
verify.simulator = analyze.simulator = "cver"
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
from myhdl.conversion import verify, analyze
|
||||
|
||||
verify.simulator = analyze.simulator = "icarus"
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
from myhdl import *
|
||||
|
||||
def bench_SliceSignal():
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
from myhdl import *
|
||||
|
||||
def adapter(o_err, i_err, o_spec, i_spec):
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
import os
|
||||
path = os.path
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
from myhdl import *
|
||||
|
||||
def map_case4(z, a):
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
from myhdl import *
|
||||
|
||||
def constants(v, u, x, y, z, a):
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
import os
|
||||
path = os.path
|
||||
import random
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
from myhdl import *
|
||||
from myhdl import ConversionError
|
||||
from myhdl.conversion._misc import _error
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
import os
|
||||
path = os.path
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
import os
|
||||
path = os.path
|
||||
from random import randrange
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
import sys
|
||||
import os
|
||||
path = os.path
|
||||
|
@ -19,6 +19,7 @@
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
""" Run the intbv.signed() unit tests. """
|
||||
from __future__ import absolute_import
|
||||
|
||||
from myhdl import *
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
|
||||
import sys
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
|
||||
import sys
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
|
||||
import sys
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
from myhdl import *
|
||||
from myhdl import ConversionError
|
||||
from myhdl.conversion._misc import _error
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
import os
|
||||
path = os.path
|
||||
from random import randrange
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
import sys
|
||||
from myhdl import *
|
||||
from myhdl.conversion import verify
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
import os
|
||||
path = os.path
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
from random import randrange
|
||||
|
||||
from myhdl import *
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
from myhdl import *
|
||||
from myhdl import ConversionError
|
||||
from myhdl.conversion._misc import _error
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
import os
|
||||
path = os.path
|
||||
import unittest
|
||||
|
@ -1,3 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
import os
|
||||
path = os.path
|
||||
from random import randrange
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user