From: Sebastien Bourdeauducq Date: Tue, 22 Oct 2013 13:23:00 +0000 (+0200) Subject: Revert "genlib/record: support passing params in same object" X-Git-Tag: 24jan2021_ls180~2099^2~457 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=98f79021cd56aadf5d0c069dba6d082c0429a6fe;p=litex.git Revert "genlib/record: support passing params in same object" This reverts commit 018afe57ef52b8040934319cac848437a2ba0163. --- diff --git a/migen/genlib/record.py b/migen/genlib/record.py index 521dcb2c..10e3a43c 100644 --- a/migen/genlib/record.py +++ b/migen/genlib/record.py @@ -56,21 +56,11 @@ def layout_partial(layout, *elements): insert_ref.append(layout_get(copy_ref, last)) return r -class LayoutP: - def __init__(self, layout, **layout_dict): - self.layout = layout - self.layout_dict = layout_dict - class Record: def __init__(self, layout, name=None, **layout_dict): self.name = get_obj_var_name(name, "") - if isinstance(layout, LayoutP): - self.layout = layout.layout - self.layout_dict = layout.layout_dict - assert(not layout_dict) - else: - self.layout = layout - self.layout_dict = layout_dict + self.layout = layout + self.layout_dict = layout_dict if self.name: prefix = self.name + "_"