fhdl.size: rename to bitcontainer

This commit is contained in:
Robert Jordens 2013-12-03 14:12:40 -07:00 committed by Sebastien Bourdeauducq
parent 86ba9c8bbc
commit 8d3d61ba98
8 changed files with 9 additions and 9 deletions

View file

@ -8,10 +8,10 @@ migen API Documentation
:members: :members:
:show-inheritance: :show-inheritance:
:mod:`fhdl.size` Module :mod:`fhdl.bitcontainer` Module
------------------------------ ------------------------------
.. automodule:: migen.fhdl.size .. automodule:: migen.fhdl.bitcontainer
:members: :members:
:show-inheritance: :show-inheritance:

View file

@ -1,7 +1,7 @@
from operator import itemgetter from operator import itemgetter
from migen.fhdl.structure import * from migen.fhdl.structure import *
from migen.fhdl.size import bits_for, value_bits_sign from migen.fhdl.bitcontainer import bits_for, value_bits_sign
from migen.fhdl.tools import * from migen.fhdl.tools import *
from migen.fhdl.tracer import get_obj_var_name from migen.fhdl.tracer import get_obj_var_name
from migen.fhdl.verilog import _printexpr as verilog_printexpr from migen.fhdl.verilog import _printexpr as verilog_printexpr

View file

@ -1,5 +1,5 @@
from migen.fhdl.structure import * from migen.fhdl.structure import *
from migen.fhdl.module import Module from migen.fhdl.module import Module
from migen.fhdl.specials import TSTriple, Instance, Memory from migen.fhdl.specials import TSTriple, Instance, Memory
from migen.fhdl.size import log2_int, bits_for, flen, fiter, fslice, freversed from migen.fhdl.bitcontainer import log2_int, bits_for, flen, fiter, fslice, freversed
from migen.fhdl.decorators import DecorateModule, InsertCE, InsertReset, RenameClockDomains from migen.fhdl.decorators import DecorateModule, InsertCE, InsertReset, RenameClockDomains

View file

@ -79,7 +79,7 @@ class Value(HUID):
def __getitem__(self, key): def __getitem__(self, key):
from migen.fhdl.size import flen from migen.fhdl.bitcontainer import flen
if isinstance(key, int): if isinstance(key, int):
if key < 0: if key < 0:
@ -242,7 +242,7 @@ class Signal(Value):
related : Signal or None related : Signal or None
""" """
def __init__(self, bits_sign=None, name=None, variable=False, reset=0, name_override=None, min=None, max=None, related=None): def __init__(self, bits_sign=None, name=None, variable=False, reset=0, name_override=None, min=None, max=None, related=None):
from migen.fhdl.size import bits_for from migen.fhdl.bitcontainer import bits_for
Value.__init__(self) Value.__init__(self)

View file

@ -1,7 +1,7 @@
from migen.fhdl.structure import * from migen.fhdl.structure import *
from migen.fhdl.structure import _Slice, _Assign from migen.fhdl.structure import _Slice, _Assign
from migen.fhdl.visit import NodeVisitor, NodeTransformer from migen.fhdl.visit import NodeVisitor, NodeTransformer
from migen.fhdl.size import value_bits_sign from migen.fhdl.bitcontainer import value_bits_sign
from migen.util.misc import flat_iteration from migen.util.misc import flat_iteration
class _SignalLister(NodeVisitor): class _SignalLister(NodeVisitor):

View file

@ -4,7 +4,7 @@ from operator import itemgetter
from migen.fhdl.structure import * from migen.fhdl.structure import *
from migen.fhdl.structure import _Operator, _Slice, _Assign, _Fragment from migen.fhdl.structure import _Operator, _Slice, _Assign, _Fragment
from migen.fhdl.tools import * from migen.fhdl.tools import *
from migen.fhdl.size import bits_for, flen from migen.fhdl.bitcontainer import bits_for, flen
from migen.fhdl.namer import Namespace, build_namespace from migen.fhdl.namer import Namespace, build_namespace
def _printsig(ns, s): def _printsig(ns, s):

View file

@ -1,5 +1,5 @@
from migen.fhdl.std import * from migen.fhdl.std import *
from migen.fhdl.size import value_bits_sign from migen.fhdl.bitcontainer import value_bits_sign
from migen.fhdl.specials import Special from migen.fhdl.specials import Special
from migen.fhdl.tools import list_signals from migen.fhdl.tools import list_signals