From e2d82e8e18ebddc78a0c187c4b7501b9f3aaa9c5 Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Thu, 5 Oct 2023 06:31:27 -0600 Subject: tb: move most C++ source files to tb/top/conspiracion --- tb/const.hpp | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 tb/const.hpp (limited to 'tb/const.hpp') 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 -#include - -#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 -- cgit v1.2.3