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:
:show-inheritance:
:mod:`fhdl.size` Module
:mod:`fhdl.bitcontainer` Module
------------------------------
.. automodule:: migen.fhdl.size
.. automodule:: migen.fhdl.bitcontainer
:members:
:show-inheritance:

View File

@ -1,7 +1,7 @@
from operator import itemgetter
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.tracer import get_obj_var_name
from migen.fhdl.verilog import _printexpr as verilog_printexpr

View File

@ -1,5 +1,5 @@
from migen.fhdl.structure import *
from migen.fhdl.module import Module
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

View File

@ -79,7 +79,7 @@ class Value(HUID):
def __getitem__(self, key):
from migen.fhdl.size import flen
from migen.fhdl.bitcontainer import flen
if isinstance(key, int):
if key < 0:
@ -242,7 +242,7 @@ class Signal(Value):
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):
from migen.fhdl.size import bits_for
from migen.fhdl.bitcontainer import bits_for
Value.__init__(self)

View File

@ -1,7 +1,7 @@
from migen.fhdl.structure import *
from migen.fhdl.structure import _Slice, _Assign
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
class _SignalLister(NodeVisitor):

View File

@ -4,7 +4,7 @@ from operator import itemgetter
from migen.fhdl.structure import *
from migen.fhdl.structure import _Operator, _Slice, _Assign, _Fragment
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
def _printsig(ns, s):

View File

@ -1,5 +1,5 @@
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.tools import list_signals