diff options
author | Marcelina KoĆcielnicka <mwk@0x04.net> | 2021-07-12 02:11:54 +0200 |
---|---|---|
committer | Marcelina KoĆcielnicka <mwk@0x04.net> | 2021-07-12 02:51:08 +0200 |
commit | c86a79bf0b6c58aaf747e5b01de7bef5a3c7db42 (patch) | |
tree | b54d75357c5383b0804b6773a6f0eb9b5db1a7d5 | |
parent | 009940f56ca71cc8655a13a514371eb5757b96ca (diff) | |
download | yosys-c86a79bf0b6c58aaf747e5b01de7bef5a3c7db42.tar.gz yosys-c86a79bf0b6c58aaf747e5b01de7bef5a3c7db42.tar.bz2 yosys-c86a79bf0b6c58aaf747e5b01de7bef5a3c7db42.zip |
kernel/mem: Make the Mem helpers inherit from AttrObject.
-rw-r--r-- | kernel/mem.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/kernel/mem.h b/kernel/mem.h index b4a9cb695..2b92dff83 100644 --- a/kernel/mem.h +++ b/kernel/mem.h @@ -25,9 +25,8 @@ YOSYS_NAMESPACE_BEGIN -struct MemRd { +struct MemRd : RTLIL::AttrObject { bool removed; - dict<IdString, Const> attributes; Cell *cell; int wide_log2; bool clk_enable, clk_polarity, ce_over_srst; @@ -46,9 +45,8 @@ struct MemRd { } }; -struct MemWr { +struct MemWr : RTLIL::AttrObject { bool removed; - dict<IdString, Const> attributes; Cell *cell; int wide_log2; bool clk_enable, clk_polarity; @@ -66,18 +64,16 @@ struct MemWr { } }; -struct MemInit { - dict<IdString, Const> attributes; +struct MemInit : RTLIL::AttrObject { Cell *cell; Const addr; Const data; MemInit() : cell(nullptr) {} }; -struct Mem { +struct Mem : RTLIL::AttrObject { Module *module; IdString memid; - dict<IdString, Const> attributes; bool packed; RTLIL::Memory *mem; Cell *cell; |