summaryrefslogtreecommitdiff
path: root/tb/avalon.hpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tb/avalon.hpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/tb/avalon.hpp b/tb/avalon.hpp
index dc550f5..e286786 100644
--- a/tb/avalon.hpp
+++ b/tb/avalon.hpp
@@ -39,9 +39,15 @@ namespace taller::avalon
return this->verilated;
}
- inline bool operator==(VlWide<4> verilated) const noexcept
+ inline bool operator==(const VlWide<4> &verilated) const noexcept
{
- return this->verilated == verilated;
+ line verilated_line{verilated};
+ return this->hi == verilated_line.hi && this->lo == verilated_line.lo;
+ }
+
+ inline bool operator!=(const VlWide<4> &verilated) const noexcept
+ {
+ return !(*this == verilated);
}
};