compat.fhdl: reexport Array.
This commit is contained in:
parent
d4e8d3e95a
commit
286a8009c8
3 changed files with 5 additions and 8 deletions
|
|
@ -2,7 +2,8 @@ from collections import OrderedDict
|
|||
|
||||
from ...tools import deprecated
|
||||
from ...hdl import ast
|
||||
from ...hdl.ast import DUID, Value, Signal, Mux, Cat, Repl, Const, C, ClockSignal, ResetSignal
|
||||
from ...hdl.ast import (DUID, Value, Signal, Mux, Cat, Repl, Const, C, ClockSignal, ResetSignal,
|
||||
Array, ArrayProxy as _ArrayProxy)
|
||||
from ...hdl.cd import ClockDomain
|
||||
|
||||
|
||||
|
|
@ -84,8 +85,4 @@ class Case(ast.Switch):
|
|||
return self
|
||||
|
||||
|
||||
def Array(*args):
|
||||
raise NotImplementedError
|
||||
|
||||
|
||||
(SPECIAL_INPUT, SPECIAL_OUTPUT, SPECIAL_INOUT) = range(3)
|
||||
|
|
|
|||
|
|
@ -713,7 +713,7 @@ class Array(MutableSequence):
|
|||
master.dat_r.eq(buses[sel].dat_r),
|
||||
]
|
||||
"""
|
||||
def __init__(self, iterable):
|
||||
def __init__(self, iterable=()):
|
||||
self._inner = list(iterable)
|
||||
self._proxy_at = None
|
||||
self._mutable = True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue