1
0
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:
Keerthan Jaic 2015-02-01 18:00:29 -05:00
parent a0d9a4fd13
commit 4aba3ba407
161 changed files with 161 additions and 0 deletions

View File

@ -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

View File

@ -21,6 +21,7 @@
"""
from __future__ import absolute_import
import warnings
from copy import deepcopy

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
# cell dereferencing hack, thanks to Samuele Pedroni
import new

View File

@ -20,6 +20,7 @@
""" module with the concat function.
"""
from __future__ import absolute_import
from myhdl._intbv import intbv
from myhdl._Signal import _Signal

View File

@ -20,6 +20,7 @@
""" Module that implements enum.
"""
from __future__ import absolute_import
from types import StringType

View File

@ -20,6 +20,7 @@
""" myhdl _extractHierarchy module.
"""
from __future__ import absolute_import
import sys

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
import ast
from types import FunctionType

View File

@ -20,6 +20,7 @@
""" myhdl traceSignals module.
"""
from __future__ import absolute_import

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
import warnings
from myhdl._Signal import _Signal, _DelayedSignal

View File

@ -20,6 +20,7 @@
""" unparse module
"""
from __future__ import absolute_import
import compiler

View File

@ -20,6 +20,7 @@
""" Module with utilility objects for MyHDL.
"""
from __future__ import absolute_import
import ast

View File

@ -20,6 +20,7 @@
""" MyHDL conversion analysis module.
"""
from __future__ import absolute_import
import inspect
# import compiler

View File

@ -20,6 +20,7 @@
""" myhdl toVerilog package.
"""
from __future__ import absolute_import
import inspect

View File

@ -20,6 +20,7 @@
""" myhdl toVHDL conversion module.
"""
from __future__ import absolute_import
import sys

View File

@ -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.
#

View File

@ -20,6 +20,7 @@
""" myhdl toVerilog conversion module.
"""
from __future__ import absolute_import
import sys

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
import sys
import os
import tempfile

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
from myhdl import *
from test_lfsr24 import test_lfsr24

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
from myhdl import *

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
from myhdl import *
def lfsr24(lfsr, enable, clock, reset):

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
from myhdl import *
def long_divider(

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
from myhdl import *
def random_generator(random_word, enable, clock, reset):

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
from myhdl import *
from glibc_random import glibc_random

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
from myhdl import *
from glibc_random import glibc_random

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
from myhdl import *
from lfsr24 import lfsr24

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
from myhdl import *
from glibc_random import glibc_random

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
from myhdl import *
from test_longdiv import test_longdiv

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
from myhdl import *
from test_longdiv import test_longdiv

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
from myhdl import *
from test_longdiv import test_longdiv

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
from myhdl import *
from test_longdiv import test_longdiv

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
from myhdl import *
from test_longdiv import test_longdiv

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
from myhdl import *
from test_longdiv import test_longdiv

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
from myhdl import *
from test_longdiv import test_longdiv

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
from myhdl import *
from test_longdiv import test_longdiv

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
from myhdl import *
from test_longdiv import test_longdiv

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
from myhdl import *
from test_longdiv import test_longdiv

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
from myhdl import *
from random_generator import random_generator

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
from myhdl import *
from timer import timer_sig, timer_var

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
from myhdl import *
from timer import timer_sig, timer_var

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
from myhdl import *
def timer_sig(flag, clock, reset, MAXVAL):

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
from myhdl.conversion import verify
verify.simulator = "GHDL"

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
from myhdl.conversion import verify
verify.simulator = "cver"

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
from myhdl.conversion import verify
verify.simulator = "icarus"

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
import sys
import os
path = os.path

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
import sys
import os
path = os.path

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
import sys
import os
path = os.path

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
from myhdl import *
from myhdl import ConversionError
from myhdl.conversion._misc import _error

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
from myhdl import *
def bug_28(dout, channel):

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
from myhdl import *
def bug_3529686(clr, clk, run, ack, serialout):

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
from myhdl import *
from myhdl.conversion import analyze

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
from myhdl import *
from myhdl.conversion import verify

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
#! /usr/bin/env python
from myhdl import *

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
#! /usr/bin/env python
from myhdl import *

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
#! /usr/bin/env python
from myhdl import *

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
from myhdl import *
WIDTH=4

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
from myhdl import *
from myhdl.conversion import verify

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
from myhdl import *
INT_CONDITION_0 = 0

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
from myhdl import *
def gray_counter (clk, reset, enable, gray_count):

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
from myhdl import *
#t_state = enum('WAIT_POSEDGE', 'WAIT_NEGEDGE', encoding='one_hot')

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
from myhdl import *
t_state = enum('WAIT_POSEDGE', 'WAIT_NEGEDGE', encoding='one_hot')

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
#!/usr/bin/python2.7-32
# -*- coding: utf-8 -*-

View File

@ -2,6 +2,7 @@
# -*- coding: utf-8 -*-
"""Failed VHDL code example
"""
from __future__ import absolute_import
from myhdl import *
from myhdl.conversion import verify

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
from myhdl import *
from myhdl.conversion import analyze

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
from myhdl import *
def issue_9():

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
from myhdl.conversion import verify, analyze
verify.simulator = analyze.simulator = "vcom"

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
from myhdl.conversion import verify, analyze
verify.simulator = analyze.simulator = "vlog"

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
from myhdl.conversion import verify, analyze
verify.simulator = analyze.simulator = "GHDL"

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
from myhdl.conversion import verify, analyze
verify.simulator = analyze.simulator = "cver"

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
from myhdl.conversion import verify, analyze
verify.simulator = analyze.simulator = "icarus"

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
from myhdl import *
def bench_SliceSignal():

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
from myhdl import *
def adapter(o_err, i_err, o_spec, i_spec):

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
import os
path = os.path

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
from myhdl import *
def map_case4(z, a):

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
from myhdl import *
def constants(v, u, x, y, z, a):

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
import os
path = os.path
import random

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
from myhdl import *
from myhdl import ConversionError
from myhdl.conversion._misc import _error

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
import os
path = os.path

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
import os
path = os.path
from random import randrange

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
import sys
import os
path = os.path

View File

@ -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 *

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
import sys

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
import sys

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
import sys

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
from myhdl import *
from myhdl import ConversionError
from myhdl.conversion._misc import _error

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
import os
path = os.path
from random import randrange

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
import sys
from myhdl import *
from myhdl.conversion import verify

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
import os
path = os.path

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
from random import randrange
from myhdl import *

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
from myhdl import *
from myhdl import ConversionError
from myhdl.conversion._misc import _error

View File

@ -1,3 +1,4 @@
from __future__ import absolute_import
import os
path = os.path
import unittest

View File

@ -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