Skip to main content

NocInterface

Struct NocInterface 

Source
pub struct NocInterface {
    pub noc_id: u8,
    pub x: u8,
    pub y: u8,
    pub backing: Box<dyn ChipInterface + Send + Sync>,
}

Fields§

§noc_id: u8§x: u8§y: u8§backing: Box<dyn ChipInterface + Send + Sync>

Trait Implementations§

Source§

impl ChipInterface for NocInterface

Source§

fn get_device_info(&self) -> Result<Option<DeviceInfo>, Box<dyn Error>>

Access information about the underlying chip.
Source§

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

Read and write to the noc endpoint on the chip in implementation this may take the form of a direct pci bar read/write or a noc read/write
Source§

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

Source§

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

Read and write to a noc endpoint on the chip.
Source§

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

Source§

fn noc_multicast( &self, noc_id: u8, start: (u8, u8), end: (u8, u8), addr: u64, data: &[u8], ) -> Result<(), Box<dyn Error>>

Source§

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

Source§

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

Read and write to a noc endpoint via ethernet on a local or remote chip.
Source§

fn eth_noc_write( &self, eth_addr: EthAddr, noc_id: u8, x: u8, y: u8, addr: u64, data: &[u8], ) -> Result<(), Box<dyn Error>>

Source§

fn eth_noc_multicast( &self, eth_addr: EthAddr, noc_id: u8, start: (u8, u8), end: (u8, u8), addr: u64, data: &[u8], ) -> Result<(), Box<dyn Error>>

Source§

fn eth_noc_broadcast( &self, eth_addr: EthAddr, noc_id: u8, addr: u64, data: &[u8], ) -> Result<(), Box<dyn Error>>

Source§

fn as_any(&self) -> &dyn Any

Auto Trait Implementations§

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.