Struct ArcIf

Source
pub struct ArcIf {
    pub axi_data: MemorySlices,
}

Fields§

§axi_data: MemorySlices

Trait Implementations§

Source§

impl ChipComms for ArcIf

Source§

fn axi_translate(&self, addr: &str) -> Result<AxiData, AxiError>

Translate a String path into the corresponding AXI address.
Source§

fn axi_read( &self, chip_if: &dyn ChipInterface, addr: u64, data: &mut [u8], ) -> Result<(), Box<dyn Error>>

Read and write to the NOC using AXI address gotten from axi_translate.
Source§

fn axi_write( &self, chip_if: &dyn ChipInterface, addr: u64, data: &[u8], ) -> Result<(), Box<dyn Error>>

Source§

fn noc_read( &self, chip_if: &dyn ChipInterface, noc_id: u8, x: u8, y: u8, addr: u64, data: &mut [u8], ) -> Result<(), Box<dyn Error>>

Read and write to a noc endpoint, this could be a local or remote chip.
Source§

fn noc_write( &self, chip_if: &dyn ChipInterface, noc_id: u8, x: u8, y: u8, addr: u64, data: &[u8], ) -> Result<(), Box<dyn Error>>

Source§

fn noc_broadcast( &self, chip_if: &dyn ChipInterface, noc_id: u8, addr: u64, data: &[u8], ) -> Result<(), Box<dyn Error>>

Source§

fn noc_read32( &self, chip_if: &dyn ChipInterface, noc_id: u8, x: u8, y: u8, addr: u64, ) -> Result<u32, Box<dyn Error>>

Convenience functions for reading and writing 32 bit values.
Source§

fn noc_write32( &self, chip_if: &dyn ChipInterface, noc_id: u8, x: u8, y: u8, addr: u64, value: u32, ) -> Result<(), Box<dyn Error>>

Source§

fn noc_broadcast32( &self, chip_if: &dyn ChipInterface, noc_id: u8, addr: u64, value: u32, ) -> Result<(), Box<dyn Error>>

Source§

fn axi_read32( &self, chip_if: &dyn ChipInterface, addr: u64, ) -> Result<u32, Box<dyn Error>>

Source§

fn axi_write32( &self, chip_if: &dyn ChipInterface, addr: u64, value: u32, ) -> Result<(), Box<dyn Error>>

Source§

fn axi_sread32( &self, chip_if: &dyn ChipInterface, addr: &str, ) -> Result<u32, Box<dyn Error>>

Source§

fn axi_swrite32( &self, chip_if: &dyn ChipInterface, addr: &str, value: u32, ) -> Result<(), Box<dyn Error>>

Auto Trait Implementations§

§

impl Freeze for ArcIf

§

impl RefUnwindSafe for ArcIf

§

impl Send for ArcIf

§

impl Sync for ArcIf

§

impl Unpin for ArcIf

§

impl UnwindSafe for ArcIf

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.