mirror of
https://github.com/myhdl/myhdl.git
synced 2024-12-14 07:44:38 +08:00
The future is now
This commit is contained in:
parent
81c76f3a52
commit
fc89694a11
@ -1,6 +1,3 @@
|
||||
from __future__ import generators
|
||||
from __future__ import print_function
|
||||
|
||||
from myhdl import Signal, Simulation, Cosimulation
|
||||
from myhdl import delay, intbv, now
|
||||
|
||||
|
@ -1,5 +1,3 @@
|
||||
from __future__ import generators
|
||||
|
||||
import unittest
|
||||
from unittest import TestCase
|
||||
|
||||
|
@ -1,5 +1,3 @@
|
||||
from __future__ import generators
|
||||
|
||||
import unittest
|
||||
from unittest import TestCase
|
||||
import random
|
||||
|
@ -1,5 +1,3 @@
|
||||
from __future__ import generators
|
||||
|
||||
import unittest
|
||||
from unittest import TestCase
|
||||
import random
|
||||
|
@ -1,5 +1,3 @@
|
||||
from __future__ import generators
|
||||
|
||||
import myhdl
|
||||
from myhdl import *
|
||||
|
||||
|
@ -1,5 +1,3 @@
|
||||
from __future__ import generators
|
||||
|
||||
import sys
|
||||
from random import randrange
|
||||
|
||||
|
@ -18,8 +18,6 @@
|
||||
# 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
|
||||
import os
|
||||
#import shlex
|
||||
|
@ -21,8 +21,6 @@
|
||||
|
||||
|
||||
"""
|
||||
from __future__ import absolute_import
|
||||
|
||||
import warnings
|
||||
from copy import deepcopy
|
||||
|
||||
|
@ -26,9 +26,6 @@ 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 __future__ import print_function
|
||||
|
||||
from copy import copy, deepcopy
|
||||
|
||||
from myhdl import _simulator as sim
|
||||
|
@ -18,9 +18,6 @@
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
""" Module that provides the Simulation class """
|
||||
from __future__ import absolute_import
|
||||
from __future__ import print_function
|
||||
|
||||
import os
|
||||
from operator import itemgetter
|
||||
from types import GeneratorType
|
||||
|
@ -18,9 +18,6 @@
|
||||
# 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
|
||||
|
||||
import ast
|
||||
|
@ -49,9 +49,6 @@ traceSignals -- function that enables signal tracing in a VCD file
|
||||
toVerilog -- function that converts a design to Verilog
|
||||
|
||||
"""
|
||||
from __future__ import absolute_import
|
||||
from __future__ import print_function
|
||||
|
||||
__version__ = "0.10"
|
||||
|
||||
|
||||
|
@ -18,9 +18,6 @@
|
||||
# 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
|
||||
|
||||
from myhdl import AlwaysError
|
||||
|
@ -18,8 +18,6 @@
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
""" Module with the always_comb function. """
|
||||
from __future__ import absolute_import
|
||||
|
||||
from types import FunctionType
|
||||
|
||||
from myhdl import AlwaysCombError
|
||||
|
@ -18,9 +18,6 @@
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
""" Module with the always_seq decorator. """
|
||||
from __future__ import absolute_import
|
||||
|
||||
|
||||
from types import FunctionType
|
||||
|
||||
from myhdl import AlwaysError, intbv
|
||||
|
@ -18,8 +18,6 @@
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
""" Block with the @block decorator function. """
|
||||
from __future__ import absolute_import, print_function
|
||||
|
||||
import inspect
|
||||
|
||||
#from functools import wraps
|
||||
|
@ -22,8 +22,6 @@
|
||||
""" module with the concat function.
|
||||
|
||||
"""
|
||||
from __future__ import absolute_import
|
||||
|
||||
from myhdl._intbv import intbv
|
||||
from myhdl._Signal import _Signal
|
||||
|
||||
|
@ -18,8 +18,6 @@
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
""" Module that provides the delay class."""
|
||||
from __future__ import absolute_import
|
||||
|
||||
_errmsg = "arg of delay constructor should be a natural integeer"
|
||||
|
||||
|
||||
|
@ -20,8 +20,6 @@
|
||||
""" Module that implements enum.
|
||||
|
||||
"""
|
||||
from __future__ import absolute_import
|
||||
|
||||
from myhdl._bin import bin
|
||||
from myhdl._Signal import _Signal
|
||||
# from myhdl.conversion._VHDLNameValidation import _nameValid
|
||||
|
@ -20,9 +20,6 @@
|
||||
""" myhdl _extractHierarchy module.
|
||||
|
||||
"""
|
||||
from __future__ import absolute_import
|
||||
|
||||
|
||||
import sys
|
||||
import inspect
|
||||
import string
|
||||
|
@ -21,8 +21,6 @@
|
||||
|
||||
"""
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
from myhdl._extractHierarchy import _Instance
|
||||
from myhdl._block import _Block
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
import ast
|
||||
|
||||
from myhdl._util import _flatten
|
||||
|
@ -18,9 +18,6 @@
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
""" Module with the always function. """
|
||||
from __future__ import absolute_import
|
||||
|
||||
|
||||
import inspect
|
||||
from types import FunctionType
|
||||
|
||||
|
@ -18,8 +18,6 @@
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
""" Module with the intbv class """
|
||||
from __future__ import absolute_import, division
|
||||
|
||||
import builtins
|
||||
|
||||
from myhdl._bin import bin
|
||||
|
@ -24,9 +24,6 @@ instances -- function that returns instances in a generator function
|
||||
downrange -- function that returns a downward range
|
||||
|
||||
"""
|
||||
from __future__ import absolute_import
|
||||
|
||||
|
||||
import inspect
|
||||
|
||||
from myhdl._Cosimulation import Cosimulation
|
||||
|
@ -18,8 +18,6 @@
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
""" Module with the modbv class """
|
||||
from __future__ import absolute_import
|
||||
|
||||
from ._intbv import intbv
|
||||
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
import ast
|
||||
import itertools
|
||||
from types import FunctionType
|
||||
|
@ -20,10 +20,6 @@
|
||||
""" myhdl traceSignals block.
|
||||
|
||||
"""
|
||||
from __future__ import absolute_import
|
||||
from __future__ import print_function
|
||||
|
||||
|
||||
import sys
|
||||
import time
|
||||
import os
|
||||
|
@ -1,4 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
import warnings
|
||||
|
||||
from myhdl._Signal import _Signal, _DelayedSignal
|
||||
|
@ -20,9 +20,6 @@
|
||||
""" Module with utilility objects for MyHDL.
|
||||
|
||||
"""
|
||||
from __future__ import absolute_import
|
||||
from __future__ import print_function
|
||||
|
||||
import __future__
|
||||
import ast
|
||||
import sys
|
||||
|
@ -1,4 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
from ._verify import verify, analyze, registerSimulator
|
||||
from ._toVerilog import toVerilog
|
||||
from ._toVHDL import toVHDL
|
||||
|
@ -20,8 +20,6 @@
|
||||
""" MyHDL conversion analysis module.
|
||||
|
||||
"""
|
||||
from __future__ import absolute_import, print_function
|
||||
|
||||
import inspect
|
||||
# import compiler
|
||||
# from compiler import ast as astNode
|
||||
|
@ -20,9 +20,6 @@
|
||||
""" myhdl toVerilog package.
|
||||
|
||||
"""
|
||||
from __future__ import absolute_import
|
||||
|
||||
|
||||
import ast
|
||||
|
||||
from myhdl import ConversionError
|
||||
|
@ -20,9 +20,6 @@
|
||||
""" myhdl toVHDL conversion module.
|
||||
|
||||
"""
|
||||
from __future__ import absolute_import
|
||||
from __future__ import print_function
|
||||
|
||||
import sys
|
||||
import math
|
||||
import os
|
||||
|
@ -1,4 +1,3 @@
|
||||
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,10 +20,6 @@
|
||||
""" myhdl toVerilog conversion module.
|
||||
|
||||
"""
|
||||
from __future__ import absolute_import
|
||||
from __future__ import print_function
|
||||
|
||||
|
||||
import sys
|
||||
import math
|
||||
import os
|
||||
|
@ -1,5 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
from __future__ import print_function
|
||||
import sys
|
||||
import os
|
||||
import tempfile
|
||||
|
@ -1,6 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
from __future__ import print_function
|
||||
|
||||
import platform
|
||||
|
||||
from . import __version__
|
||||
|
@ -1,4 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
import sys
|
||||
import os
|
||||
path = os.path
|
||||
|
@ -1,4 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
import sys
|
||||
import os
|
||||
path = os.path
|
||||
|
@ -1,4 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
import sys
|
||||
import os
|
||||
path = os.path
|
||||
|
@ -1,4 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
import myhdl
|
||||
from myhdl import *
|
||||
from myhdl import ConversionError
|
||||
|
@ -1,4 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
import myhdl
|
||||
from myhdl import *
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
import myhdl
|
||||
from myhdl import *
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
import myhdl
|
||||
from myhdl import *
|
||||
from myhdl.conversion import analyze
|
||||
|
@ -1,4 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
import myhdl
|
||||
from myhdl import *
|
||||
from myhdl.conversion import verify
|
||||
|
@ -1,4 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
#! /usr/bin/env python
|
||||
|
||||
import myhdl
|
||||
|
@ -1,4 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
#! /usr/bin/env python
|
||||
|
||||
import myhdl
|
||||
|
@ -1,4 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
#! /usr/bin/env python
|
||||
|
||||
import myhdl
|
||||
|
@ -1,4 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
import myhdl
|
||||
from myhdl import *
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
import myhdl
|
||||
from myhdl import *
|
||||
from myhdl.conversion import verify
|
||||
|
@ -1,4 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
import myhdl
|
||||
from myhdl import *
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
import myhdl
|
||||
from myhdl import *
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
import myhdl
|
||||
from myhdl import *
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
import myhdl
|
||||
from myhdl import *
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
#!/usr/bin/python2.7-32
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
from __future__ import print_function
|
||||
import pytest
|
||||
from myhdl import Simulation, delay, SimulationError, instance, now
|
||||
from myhdl._Simulation import _error
|
||||
|
@ -2,8 +2,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
"""Failed VHDL code example
|
||||
"""
|
||||
from __future__ import absolute_import
|
||||
|
||||
import myhdl
|
||||
from myhdl import *
|
||||
from myhdl.conversion import verify
|
||||
|
@ -1,4 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
import myhdl
|
||||
from myhdl import *
|
||||
from myhdl.conversion import analyze
|
||||
|
@ -1,4 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
import myhdl
|
||||
from myhdl import *
|
||||
from myhdl.conversion import verify
|
||||
|
@ -2,8 +2,6 @@
|
||||
|
||||
# http://www.myhdl.org/examples/bitonic/
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
from random import randrange
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
import myhdl
|
||||
from myhdl import *
|
||||
from myhdl.conversion import analyze
|
||||
|
@ -1,4 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
import myhdl
|
||||
from myhdl import *
|
||||
from myhdl.conversion import verify
|
||||
|
@ -3,7 +3,6 @@ When an interface signal gets passed into a function, it
|
||||
can get renamed to the name of the argument. When the
|
||||
function is called multiple times, this causes name collisions """
|
||||
|
||||
from __future__ import absolute_import
|
||||
import pytest
|
||||
import myhdl
|
||||
from myhdl import *
|
||||
|
@ -2,8 +2,6 @@
|
||||
|
||||
# http://www.myhdl.org/examples/bitonic/
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
from random import randrange
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
import myhdl
|
||||
from myhdl import *
|
||||
from myhdl.conversion import analyze
|
||||
|
@ -1,4 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
#! /usr/bin/env python
|
||||
|
||||
import myhdl
|
||||
|
@ -1,4 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
import myhdl
|
||||
from myhdl import *
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
import myhdl
|
||||
from myhdl import *
|
||||
from myhdl.conversion import analyze
|
||||
|
@ -1,4 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
import myhdl
|
||||
from myhdl import *
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
import myhdl
|
||||
from myhdl import *
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
import os
|
||||
path = os.path
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
import myhdl
|
||||
from myhdl import *
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
import myhdl
|
||||
from myhdl import *
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
import os
|
||||
path = os.path
|
||||
import random
|
||||
|
@ -1,4 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
import myhdl
|
||||
from myhdl import *
|
||||
from myhdl import ConversionError
|
||||
|
@ -1,4 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
import os
|
||||
path = os.path
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
import os
|
||||
path = os.path
|
||||
from random import randrange
|
||||
|
@ -1,4 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
import sys
|
||||
import os
|
||||
path = os.path
|
||||
|
@ -1,4 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
from random import randrange
|
||||
|
||||
from myhdl import *
|
||||
|
@ -19,8 +19,6 @@
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
""" Run the intbv.signed() unit tests. """
|
||||
from __future__ import absolute_import
|
||||
|
||||
import myhdl
|
||||
from myhdl import *
|
||||
|
||||
|
@ -1,5 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
|
||||
from myhdl import (block, Signal, ResetSignal, intbv, always_seq,
|
||||
instance, delay, StopSimulation, )
|
||||
|
||||
|
@ -1,5 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
|
||||
import sys
|
||||
|
||||
import myhdl
|
||||
|
@ -1,4 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
import myhdl
|
||||
from myhdl import *
|
||||
from myhdl import ConversionError
|
||||
|
@ -1,4 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
import os
|
||||
path = os.path
|
||||
from random import randrange
|
||||
|
@ -1,4 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
import sys
|
||||
import myhdl
|
||||
from myhdl import *
|
||||
|
@ -1,4 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
import os
|
||||
path = os.path
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
from random import randrange
|
||||
|
||||
import myhdl
|
||||
|
@ -1,4 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
import myhdl
|
||||
from myhdl import *
|
||||
from myhdl import ConversionError
|
||||
|
@ -1,4 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
import os
|
||||
path = os.path
|
||||
import unittest
|
||||
|
@ -1,5 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
|
||||
import os
|
||||
path = os.path
|
||||
import unittest
|
||||
|
@ -1,4 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
import os
|
||||
path = os.path
|
||||
from random import randrange
|
||||
|
@ -1,4 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
import os
|
||||
path = os.path
|
||||
import unittest
|
||||
|
@ -4,8 +4,6 @@ Created on 23 aug. 2018
|
||||
@author: josy
|
||||
'''
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
from myhdl import Signal, intbv, block, always_comb, always_seq, ResetSignal, instance, \
|
||||
delay, StopSimulation
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
import sys
|
||||
import myhdl
|
||||
from myhdl import *
|
||||
|
@ -1,4 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
import os
|
||||
path = os.path
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
import myhdl
|
||||
from myhdl import *
|
||||
from random import randrange
|
||||
|
@ -1,4 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
import myhdl
|
||||
from myhdl import *
|
||||
from myhdl import ToVHDLWarning
|
||||
|
@ -1,4 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
import os
|
||||
path = os.path
|
||||
from random import randrange
|
||||
|
@ -1,4 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
import os
|
||||
path = os.path
|
||||
|
||||
|
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