summaryrefslogtreecommitdiff
path: root/tb/mem.hpp
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2022-09-27 15:13:10 -0600
committerAlejandro Soto <alejandro@34project.org>2022-09-27 15:13:10 -0600
commit583a1ebaafe285c223afbfcc60bb68e6c10174ca (patch)
tree45931e6c7112468b172be55caa17739f2ad2c9bb /tb/mem.hpp
parent7fe23c697af81c08b69c0b30f1db48ed16493662 (diff)
Add simple loop execution testbench
Diffstat (limited to 'tb/mem.hpp')
-rw-r--r--tb/mem.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tb/mem.hpp b/tb/mem.hpp
index 0d9bbb0..78c4818 100644
--- a/tb/mem.hpp
+++ b/tb/mem.hpp
@@ -23,8 +23,8 @@ namespace taller::avalon
return mask;
}
- virtual bool read(std::uint32_t addr, std::uint32_t &data);
- virtual bool write(std::uint32_t addr, std::uint32_t data, unsigned byte_enable);
+ virtual bool read(std::uint32_t addr, std::uint32_t &data) final override;
+ virtual bool write(std::uint32_t addr, std::uint32_t data, unsigned byte_enable = 0b1111) final override;
private:
std::unique_ptr<std::uint32_t[]> block;