Package: memory_pkg

Constants

Name Type Value Description
null_memory memory_t (p_logger => null_logger,
p_check_permissions => boolean'low,
p_default_endian => endianness_t'low,
others => null_ptr)
memory_logger logger_t get_logger("vunit_lib:memory_pkg") Default memory logger
null_buffer buffer_t (p_memory_ref => null_memory,
p_name => null_string_ptr,
p_address => natural'low,
p_num_bytes => natural'low)

Types

Name Type Description
endianness_arg_t (little_endian,
big_endian,
default_endian)
memory_t Memory model object
permissions_t (no_access,
write_only,
read_only,
read_and_write)
--------------------------------------------------- Memory access permission control functions ---------------------------------------------------
buffer_t --------------------------------------------------- Memory buffer allocation --------------------------------------------------- Reference to an allocated buffer with the memory

Functions

Description
Empties the memory by removing all data and permissions

Description

Memory data read and write functions

Description
Write integer

Description
Check that all expected bytes within address range was written
with correct value

Description
Check that all expected bytes within the entire memory was written
with correct value

Description
Check that all expected bytes was written with correct value in buffer

Description
Perform write of one byte without running any address or data checks