extract_rdff: Add initvals parameter.
This is not used yet, but will be needed when read port reset/initial value support lands.
This commit is contained in:
@@ -445,7 +445,7 @@ std::vector<Mem> Mem::get_selected_memories(Module *module) {
|
||||
return res;
|
||||
}
|
||||
|
||||
Cell *Mem::extract_rdff(int idx) {
|
||||
Cell *Mem::extract_rdff(int idx, FfInitVals *initvals) {
|
||||
MemRd &port = rd_ports[idx];
|
||||
|
||||
if (!port.clk_enable)
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
#define MEM_H
|
||||
|
||||
#include "kernel/yosys.h"
|
||||
#include "kernel/ffinit.h"
|
||||
|
||||
YOSYS_NAMESPACE_BEGIN
|
||||
|
||||
@@ -70,7 +71,7 @@ struct Mem {
|
||||
Const get_init_data() const;
|
||||
static std::vector<Mem> get_all_memories(Module *module);
|
||||
static std::vector<Mem> get_selected_memories(Module *module);
|
||||
Cell *extract_rdff(int idx);
|
||||
Cell *extract_rdff(int idx, FfInitVals *initvals);
|
||||
Mem(Module *module, IdString memid, int width, int start_offset, int size) : module(module), memid(memid), packed(false), mem(nullptr), cell(nullptr), width(width), start_offset(start_offset), size(size) {}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user