From: Jean-François Nguyen Date: Fri, 29 Oct 2021 16:27:16 +0000 (+0200) Subject: cores.litedram: remove name_force parameter from Core constructor. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0249ca7ef3f080b4e3be88bbc19cad2d144a2231;p=lambdasoc.git cores.litedram: remove name_force parameter from Core constructor. It was previously moved to Core.build(). --- diff --git a/lambdasoc/cores/litedram.py b/lambdasoc/cores/litedram.py index 11c4700..c1515b4 100644 --- a/lambdasoc/cores/litedram.py +++ b/lambdasoc/cores/litedram.py @@ -387,9 +387,6 @@ class Core(Elaboratable): name : str Optional. Name of the LiteDRAM core. If ``None`` (default) the name is inferred from the name of the variable this instance is assigned to. - name_force: bool - Force name. If ``True``, no exception will be raised in case of a name collision with a - previous LiteDRAM instance. Defaults to ``False``. Attributes ---------- @@ -399,13 +396,8 @@ class Core(Elaboratable): DRAM size, in bytes. user_port : :class:`NativePort` User port. Provides access to the DRAM storage. - - Exceptions - ---------- - Raises a :exn:`ValueError` if ``name`` collides with the name given to a previous LiteDRAM - instance and ``name_force`` is ``False``. """ - def __init__(self, config, *, pins=None, name=None, name_force=False, src_loc_at=0): + def __init__(self, config, *, pins=None, name=None, src_loc_at=0): if not isinstance(config, Config): raise TypeError("Config must be an instance of litedram.Config, " "not {!r}"