pub trait Synth: Default + Copy + PartialEq + Debug {
    const BITS: usize;

    // Required methods
    fn descriptor() -> TypeDescriptor;
    fn vcd(self) -> VCDValue;
    fn verilog(self) -> VerilogLiteral;

    // Provided method
    fn bits(self) -> usize { ... }
}

Required Associated Constants§

Required Methods§

source

fn descriptor() -> TypeDescriptor

source

fn vcd(self) -> VCDValue

source

fn verilog(self) -> VerilogLiteral

Provided Methods§

source

fn bits(self) -> usize

Implementors§

source§

impl Synth for Clock

source§

const BITS: usize = 1usize

source§

impl Synth for Bit

source§

const BITS: usize = 1usize

source§

impl<const N: usize> Synth for Bits<N>

source§

const BITS: usize = N

source§

impl<const N: usize> Synth for Signed<N>

source§

const BITS: usize = N