diff options
author | Johannes Stoelp <johannes.stoelp@gmail.com> | 2023-10-29 23:05:04 +0100 |
---|---|---|
committer | Johannes Stoelp <johannes.stoelp@gmail.com> | 2023-10-29 23:05:04 +0100 |
commit | b0b6a7d7f4de63fba2ba91a98cecec1bd57d03f1 (patch) | |
tree | 7dd61f93298d56a6234435b72b30bf00cacd242b /src/models | |
parent | b716fdae5ef9b76920fdd2bcd8aab97d9cde90a0 (diff) | |
download | sysc-playground-b0b6a7d7f4de63fba2ba91a98cecec1bd57d03f1.tar.gz sysc-playground-b0b6a7d7f4de63fba2ba91a98cecec1bd57d03f1.zip |
test: add first lt_bus tests
Diffstat (limited to 'src/models')
-rw-r--r-- | src/models/lt_bus.h | 1 |
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. |