summaryrefslogtreecommitdiff
path: root/src/sim/cell/cell.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/sim/cell/cell.rs')
-rw-r--r--src/sim/cell/cell.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sim/cell/cell.rs b/src/sim/cell/cell.rs
index d35fa76..2664721 100644
--- a/src/sim/cell/cell.rs
+++ b/src/sim/cell/cell.rs
@@ -18,6 +18,11 @@ impl Cell {
pub fn flip_parity(&mut self) {
self.flags ^= Self::FLAG_PARITY;
}
+ #[inline]
+ pub fn match_parity(&mut self, seqno: u64) {
+ // TODO this will break with more flags
+ self.flags = (seqno as u8) & 0b1;
+ }
}
impl Cell {