From b0b6a7d7f4de63fba2ba91a98cecec1bd57d03f1 Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Sun, 29 Oct 2023 23:05:04 +0100 Subject: test: add first lt_bus tests --- src/models/lt_bus.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/models') diff --git a/src/models/lt_bus.h b/src/models/lt_bus.h index c533c50..a8391f8 100644 --- a/src/models/lt_bus.h +++ b/src/models/lt_bus.h @@ -47,6 +47,7 @@ class lt_bus : public sc_core::sc_module { void attach_target(tlm::tlm_base_target_socket_b<>& target, u64 start, u64 end) { + assert(start <= end); const range addr{start, end}; // Check if new range overlaps with any registered memory map range. -- cgit v1.2.3