pub struct ArcIf {
pub axi_data: MemorySlices,
}
Fields§
§axi_data: MemorySlices
Trait Implementations§
Source§impl ChipComms for ArcIf
impl ChipComms for ArcIf
Source§fn axi_translate(&self, addr: &str) -> Result<AxiData, AxiError>
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>>
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
.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>>
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.
fn noc_write( &self, chip_if: &dyn ChipInterface, noc_id: u8, x: u8, y: u8, addr: u64, data: &[u8], ) -> Result<(), Box<dyn Error>>
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>>
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.
fn noc_write32( &self, chip_if: &dyn ChipInterface, noc_id: u8, x: u8, y: u8, addr: u64, value: u32, ) -> Result<(), Box<dyn Error>>
fn noc_broadcast32( &self, chip_if: &dyn ChipInterface, noc_id: u8, addr: u64, value: u32, ) -> Result<(), Box<dyn Error>>
fn axi_read32( &self, chip_if: &dyn ChipInterface, addr: u64, ) -> Result<u32, Box<dyn Error>>
fn axi_write32( &self, chip_if: &dyn ChipInterface, addr: u64, value: u32, ) -> Result<(), Box<dyn Error>>
fn axi_sread32( &self, chip_if: &dyn ChipInterface, addr: &str, ) -> Result<u32, Box<dyn Error>>
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more