from operator import itemgetter
from migen.fhdl.structure import *
-from migen.fhdl.structure import _DUID, _Value
+from migen.fhdl.structure import _Value
from migen.fhdl.bitcontainer import bits_for, value_bits_sign
from migen.fhdl.tools import *
from migen.fhdl.tracer import get_obj_var_name
"READ_FIRST", "WRITE_FIRST", "NO_CHANGE"]
-class Special(_DUID):
+class Special(DUID):
def iter_expressions(self):
for x in []:
yield x
from migen.util.misc import flat_iteration as _flat_iteration
-class _DUID:
+class DUID:
"""Deterministic Unique IDentifier"""
__next_uid = 0
def __init__(self):
- self.duid = _DUID.__next_uid
- _DUID.__next_uid += 1
+ self.duid = DUID.__next_uid
+ DUID.__next_uid += 1
-class _Value(_DUID):
+class _Value(DUID):
"""Base class for operands
Instances of `_Value` or its subclasses can be operands to