summaryrefslogtreecommitdiff
path: root/tb/mem.hpp
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2022-11-08 21:33:59 -0600
committerAlejandro Soto <alejandro@34project.org>2022-11-08 21:33:59 -0600
commit1ea0519a2b6b81e0ba324cd69f8785735e7cbef5 (patch)
treea89c1aa54fac62b1b849aa147c4c7ee1b42d4601 /tb/mem.hpp
parentbf7f350e161b2dc97e023724c8f190473af78202 (diff)
Fix handling of multi-cycle Avalon waitrequest states in bus master
Diffstat (limited to 'tb/mem.hpp')
-rw-r--r--tb/mem.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tb/mem.hpp b/tb/mem.hpp
index 016fdc0..a76780d 100644
--- a/tb/mem.hpp
+++ b/tb/mem.hpp
@@ -36,6 +36,9 @@ namespace taller::avalon
std::unique_ptr<std::uint32_t[]> block;
std::uint32_t base;
std::uint32_t mask;
+ unsigned count = 0;
+
+ bool ready() noexcept;
};
template<typename F>