Trait rvsim::Memory[][src]

pub trait Memory {
    fn access<T: Copy>(
        &mut self,
        addr: u32,
        access: MemoryAccess<'_, T>
    ) -> bool; }

A trait used by the interpreter to implement loads and stores.

Required methods

fn access<T: Copy>(&mut self, addr: u32, access: MemoryAccess<'_, T>) -> bool[src]

Access the given address in memory.

Loading content...

Implementations on Foreign Types

impl Memory for [u8][src]

A simple byte array can be used to implement a block of DRAM.

This is typically wrapped by a Memory implementation that does access control and translates addresses, because by default all types of access are allowed, and the base address is 0.

Loading content...

Implementors

Loading content...