From 0249ca7ef3f080b4e3be88bbc19cad2d144a2231 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Fran=C3=A7ois=20Nguyen?= Date: Fri, 29 Oct 2021 18:27:16 +0200 Subject: [PATCH] cores.litedram: remove name_force parameter from Core constructor. It was previously moved to Core.build(). --- lambdasoc/cores/litedram.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) 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}" -- 2.30.2