aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/mem.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/mem.h')
-rw-r--r--kernel/mem.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/mem.h b/kernel/mem.h
index 214086ac4..08befebdb 100644
--- a/kernel/mem.h
+++ b/kernel/mem.h
@@ -77,6 +77,12 @@ struct Mem {
Cell *extract_rdff(int idx, FfInitVals *initvals);
void narrow();
+ // If write port idx2 currently has priority over write port idx1,
+ // inserts extra logic on idx1's enable signal to disable writes
+ // when idx2 is writing to the same address, then removes the priority
+ // from the priority mask.
+ void emulate_priority(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) {}
};