mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-24 13:18:56 +00:00
kernel/mem: Add model support for read port init value and resets.
Like wide port support, this is still completely unusable, and support in various passes will be gradually added later. It also has no support at all in the cell library, so attempting to create a read port with a reset or initial value will cause an assert failure for now.
This commit is contained in:
parent
097de6c5f8
commit
24b880b2de
2 changed files with 73 additions and 4 deletions
|
@ -30,9 +30,10 @@ struct MemRd {
|
|||
dict<IdString, Const> attributes;
|
||||
Cell *cell;
|
||||
int wide_log2;
|
||||
bool clk_enable, clk_polarity;
|
||||
bool clk_enable, clk_polarity, ce_over_srst;
|
||||
Const arst_value, srst_value, init_value;
|
||||
bool transparent;
|
||||
SigSpec clk, en, addr, data;
|
||||
SigSpec clk, en, arst, srst, addr, data;
|
||||
MemRd() : removed(false), cell(nullptr) {}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue