summaryrefslogtreecommitdiff
path: root/tb/avalon.impl.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'tb/avalon.impl.hpp')
-rw-r--r--tb/avalon.impl.hpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/tb/avalon.impl.hpp b/tb/avalon.impl.hpp
index 6864c6d..f701e73 100644
--- a/tb/avalon.impl.hpp
+++ b/tb/avalon.impl.hpp
@@ -24,6 +24,17 @@ namespace taller::avalon
template<class Platform>
void interconnect<Platform>::tick(bool clk)
{
+ if(!plat.reset_reset_n) [[unlikely]]
+ {
+ active = nullptr;
+ avl_read = false;
+ avl_write = false;
+ avl_address = 0;
+ avl_writedata = 0;
+ avl_byteenable = 0;
+ return;
+ }
+
if(active)
{
assert(avl_address == plat.avl_address);