3
0
Fork 0
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:
Marcelina Kościelnicka 2021-05-25 00:58:17 +02:00
parent 8c1999aac1
commit 35ee774ea8
2 changed files with 53 additions and 0 deletions

View file

@ -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) {}
};