pub enum ChiselInterfaceTemplate {
SramPort {
addr_bits: u32,
data_bits: u32,
},
ApbPort {
addr_bits: u32,
data_bits: u32,
},
AhbLitePort {
addr_bits: u32,
data_bits: u32,
},
Axi4LitePort {
addr_bits: u32,
data_bits: u32,
},
}Expand description
Standard interface templates (SRAM, APB, AHB, AXI4-Lite stubs).
Variants§
Implementations§
Source§impl ChiselInterfaceTemplate
impl ChiselInterfaceTemplate
Sourcepub fn emit_ports(&self, prefix: &str, is_master: bool) -> String
pub fn emit_ports(&self, prefix: &str, is_master: bool) -> String
Emit the IO bundle fields for this interface.
Trait Implementations§
Source§impl Clone for ChiselInterfaceTemplate
impl Clone for ChiselInterfaceTemplate
Source§fn clone(&self) -> ChiselInterfaceTemplate
fn clone(&self) -> ChiselInterfaceTemplate
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 ChiselInterfaceTemplate
impl RefUnwindSafe for ChiselInterfaceTemplate
impl Send for ChiselInterfaceTemplate
impl Sync for ChiselInterfaceTemplate
impl Unpin for ChiselInterfaceTemplate
impl UnsafeUnpin for ChiselInterfaceTemplate
impl UnwindSafe for ChiselInterfaceTemplate
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