summaryrefslogtreecommitdiff
path: root/tb/const.hpp
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2023-10-05 06:31:27 -0600
committerAlejandro Soto <alejandro@34project.org>2023-10-05 13:07:57 -0600
commite2d82e8e18ebddc78a0c187c4b7501b9f3aaa9c5 (patch)
treeeb72ed72e33f3a5ef3d9843ddcff624156177647 /tb/const.hpp
parent59caca686d4d7798b617ee2a9f9d4c5d1d27b8ff (diff)
tb: move most C++ source files to tb/top/conspiracion
Diffstat (limited to 'tb/const.hpp')
-rw-r--r--tb/const.hpp38
1 files changed, 0 insertions, 38 deletions
diff --git a/tb/const.hpp b/tb/const.hpp
deleted file mode 100644
index 4ccad3e..0000000
--- a/tb/const.hpp
+++ /dev/null
@@ -1,38 +0,0 @@
-#ifndef TALLER_CONST_HPP
-#define TALLER_CONST_HPP
-
-#include <cstdint>
-#include <memory>
-
-#include "avalon.hpp"
-
-namespace taller::avalon
-{
- class const_map : public slave
- {
- public:
- inline const_map(std::uint32_t addr, std::uint32_t value, std::uint32_t size = 4) noexcept
- : slave(addr, size, 4),
- value(value)
- {}
-
- inline virtual bool read(std::uint32_t addr, std::uint32_t &data) final override
- {
- data = value;
- return true;
- }
-
- inline virtual bool write
- (
- std::uint32_t addr, std::uint32_t data, unsigned byte_enable = 0b1111
- ) final override
- {
- return true;
- }
-
- private:
- std::uint32_t value;
- };
-}
-
-#endif