summaryrefslogtreecommitdiff
path: root/tb/null.hpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tb/null.hpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/tb/null.hpp b/tb/null.hpp
new file mode 100644
index 0000000..37de464
--- /dev/null
+++ b/tb/null.hpp
@@ -0,0 +1,31 @@
+#ifndef TALLER_NULL_HPP
+#define TALLER_NULL_HPP
+
+#include <cstdint>
+#include <memory>
+
+#include "avalon.hpp"
+
+namespace taller::avalon
+{
+ class null : public slave
+ {
+ public:
+ using slave::slave;
+
+ inline virtual bool read(std::uint32_t addr, std::uint32_t &data) final override
+ {
+ return true;
+ }
+
+ inline virtual bool write
+ (
+ std::uint32_t addr, std::uint32_t data, unsigned byte_enable = 0b1111
+ ) final override
+ {
+ return true;
+ }
+ };
+}
+
+#endif