pub enum ChiselType {
UInt(u32),
SInt(u32),
Bool,
Bundle(Vec<(String, Box<ChiselType>)>),
Vec(u32, Box<ChiselType>),
Clock,
Reset,
AsyncReset,
}Expand description
Chisel hardware data types.
Variants§
UInt(u32)
UInt(width.W) — unsigned integer of width bits
SInt(u32)
SInt(width.W) — signed integer of width bits
Bool
Bool() — single-bit boolean
Bundle(Vec<(String, Box<ChiselType>)>)
new Bundle { ... } — named-field aggregate
Vec(u32, Box<ChiselType>)
Vec(count, gen) — hardware vector
Clock
Clock() — clock signal
Reset
Reset() — reset signal
AsyncReset
AsyncReset() — asynchronous reset
Trait Implementations§
Source§impl Clone for ChiselType
impl Clone for ChiselType
Source§fn clone(&self) -> ChiselType
fn clone(&self) -> ChiselType
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 moreSource§impl Debug for ChiselType
impl Debug for ChiselType
Source§impl Display for ChiselType
impl Display for ChiselType
Source§impl PartialEq for ChiselType
impl PartialEq for ChiselType
impl StructuralPartialEq for ChiselType
Auto Trait Implementations§
impl Freeze for ChiselType
impl RefUnwindSafe for ChiselType
impl Send for ChiselType
impl Sync for ChiselType
impl Unpin for ChiselType
impl UnsafeUnpin for ChiselType
impl UnwindSafe for ChiselType
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