diff options
| author | Alejandro Soto <alejandro@34project.org> | 2022-11-14 21:10:40 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2022-11-14 21:10:40 -0600 |
| commit | 6fb3849e73b797d4610a2b782127f927dec0c9c9 (patch) | |
| tree | 9d17de8907d860b795761e0644f17d0fd33106de /tb/null.hpp | |
| parent | cad870295dfb741d5c24c25016c5bba878bc37e5 (diff) | |
Implement VGA simulation
Diffstat (limited to 'tb/null.hpp')
| -rw-r--r-- | tb/null.hpp | 31 |
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 |
