3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-07-30 07:53:16 +00:00

kernel/mem: Add prepare_wr_merge helper.

This commit is contained in:
Marcelina Kościelnicka 2021-05-26 02:06:44 +02:00
parent 64ba3c3842
commit 57ca51be76
2 changed files with 27 additions and 0 deletions

View file

@ -84,6 +84,13 @@ struct Mem {
// from the priority mask.
void emulate_priority(int idx1, int idx2);
// Prepares for merging write port idx2 into idx1 (where idx1 < idx2).
// Specifically, takes care of priority masks: any priority relations
// that idx2 had are replicated onto idx1, unless they conflict with
// priorities already present on idx1, in which case emulate_priority
// is called.
void prepare_wr_merge(int idx1, int idx2);
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) {}
};