aboutsummaryrefslogtreecommitdiff
path: root/src/models
diff options
context:
space:
mode:
Diffstat (limited to 'src/models')
-rw-r--r--src/models/lt_bus.h1
1 files changed, 1 insertions, 0 deletions
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.