pub struct ChiselPipelineRegisterChain {
pub stages: Vec<PipelineStage>,
pub reset_val: String,
}Expand description
Generates a multi-stage pipeline register chain.
Fields§
§stages: Vec<PipelineStage>§reset_val: StringImplementations§
Source§impl ChiselPipelineRegisterChain
impl ChiselPipelineRegisterChain
pub fn new(reset_val: impl Into<String>) -> Self
pub fn stage(self, s: PipelineStage) -> Self
Sourcepub fn emit_registers(&self) -> String
pub fn emit_registers(&self) -> String
Emit Chisel register declarations for all stages.
pub fn stage_count(&self) -> usize
Trait Implementations§
Source§impl Clone for ChiselPipelineRegisterChain
impl Clone for ChiselPipelineRegisterChain
Source§fn clone(&self) -> ChiselPipelineRegisterChain
fn clone(&self) -> ChiselPipelineRegisterChain
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 ChiselPipelineRegisterChain
impl RefUnwindSafe for ChiselPipelineRegisterChain
impl Send for ChiselPipelineRegisterChain
impl Sync for ChiselPipelineRegisterChain
impl Unpin for ChiselPipelineRegisterChain
impl UnsafeUnpin for ChiselPipelineRegisterChain
impl UnwindSafe for ChiselPipelineRegisterChain
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