pub struct ChiselSRAMWrapper {
pub name: String,
pub depth: u32,
pub data_width: u32,
pub port_type: SramPortType,
pub has_mask: bool,
pub mask_granularity: u32,
pub use_sync_read: bool,
pub pipeline_read: bool,
}Expand description
SRAM wrapper descriptor.
Fields§
§name: String§depth: u32§data_width: u32§port_type: SramPortType§has_mask: bool§mask_granularity: u32§use_sync_read: bool§pipeline_read: boolImplementations§
Source§impl ChiselSRAMWrapper
impl ChiselSRAMWrapper
pub fn single_port(name: impl Into<String>, depth: u32, data_width: u32) -> Self
pub fn simple_dual_port( name: impl Into<String>, depth: u32, data_width: u32, ) -> Self
pub fn true_dual_port( name: impl Into<String>, depth: u32, data_width: u32, ) -> Self
pub fn with_mask(self, granularity: u32) -> Self
pub fn with_pipeline_read(self) -> Self
pub fn addr_width(&self) -> u32
pub fn mask_width(&self) -> u32
Trait Implementations§
Source§impl Clone for ChiselSRAMWrapper
impl Clone for ChiselSRAMWrapper
Source§fn clone(&self) -> ChiselSRAMWrapper
fn clone(&self) -> ChiselSRAMWrapper
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 ChiselSRAMWrapper
impl RefUnwindSafe for ChiselSRAMWrapper
impl Send for ChiselSRAMWrapper
impl Sync for ChiselSRAMWrapper
impl Unpin for ChiselSRAMWrapper
impl UnsafeUnpin for ChiselSRAMWrapper
impl UnwindSafe for ChiselSRAMWrapper
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