pub struct ChiselStreamingModule {
pub name: String,
pub data_width: u32,
pub direction: StreamDirection,
pub has_tlast: bool,
pub has_tkeep: bool,
pub has_tid: bool,
pub id_width: u32,
pub has_tuser: bool,
pub user_width: u32,
pub body: Vec<String>,
}Expand description
A module wrapper with AXI-Stream interface(s).
Fields§
§name: String§data_width: u32§direction: StreamDirection§has_tlast: bool§has_tkeep: bool§has_tid: bool§id_width: u32§has_tuser: bool§user_width: u32§body: Vec<String>Implementations§
Source§impl ChiselStreamingModule
impl ChiselStreamingModule
pub fn producer(name: impl Into<String>, data_width: u32) -> Self
pub fn consumer(name: impl Into<String>, data_width: u32) -> Self
pub fn with_tlast(self) -> Self
pub fn with_tkeep(self) -> Self
pub fn with_tid(self, width: u32) -> Self
pub fn with_tuser(self, width: u32) -> Self
pub fn add_stmt(self, s: impl Into<String>) -> Self
pub fn emit(&self) -> String
Trait Implementations§
Source§impl Clone for ChiselStreamingModule
impl Clone for ChiselStreamingModule
Source§fn clone(&self) -> ChiselStreamingModule
fn clone(&self) -> ChiselStreamingModule
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ChiselStreamingModule
impl RefUnwindSafe for ChiselStreamingModule
impl Send for ChiselStreamingModule
impl Sync for ChiselStreamingModule
impl Unpin for ChiselStreamingModule
impl UnsafeUnpin for ChiselStreamingModule
impl UnwindSafe for ChiselStreamingModule
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