aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/mem.h
diff options
context:
space:
mode:
authorMarcelina Koƛcielnicka <mwk@0x04.net>2021-05-22 17:00:20 +0200
committerMarcelina Koƛcielnicka <mwk@0x04.net>2021-05-25 00:38:20 +0200
commit95a39d342584fc9f98c57550aa7fba9e4652067b (patch)
tree4448d0f6963df490e672ea8fa70ad42bb542247e /kernel/mem.h
parent835688bf80eb9db7241c1aa767b7e97dad1c0eeb (diff)
downloadyosys-95a39d342584fc9f98c57550aa7fba9e4652067b.tar.gz
yosys-95a39d342584fc9f98c57550aa7fba9e4652067b.tar.bz2
yosys-95a39d342584fc9f98c57550aa7fba9e4652067b.zip
kernel/mem: Add priority_mask to model.
This is going to be used to store arbitrary priority masks in the future. Right now, it is not supported by our cell library, so the priority_mask is computed from port order on helper construction, and discarded when emitted. However, this allows us to already convert helper-using passes to the new model.
Diffstat (limited to 'kernel/mem.h')
-rw-r--r--kernel/mem.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/mem.h b/kernel/mem.h
index a2af6a183..af06e970a 100644
--- a/kernel/mem.h
+++ b/kernel/mem.h
@@ -40,6 +40,7 @@ struct MemWr {
dict<IdString, Const> attributes;
Cell *cell;
bool clk_enable, clk_polarity;
+ std::vector<bool> priority_mask;
SigSpec clk, en, addr, data;
MemWr() : removed(false), cell(nullptr) {}
};