mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-04 10:20:24 +00:00
kernel/mem: Add a Mem::narrow helper to split up wide ports.
This commit is contained in:
parent
8c1999aac1
commit
35ee774ea8
2 changed files with 53 additions and 0 deletions
|
@ -75,6 +75,8 @@ struct Mem {
|
|||
static std::vector<Mem> get_all_memories(Module *module);
|
||||
static std::vector<Mem> get_selected_memories(Module *module);
|
||||
Cell *extract_rdff(int idx, FfInitVals *initvals);
|
||||
void narrow();
|
||||
|
||||
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) {}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue