Trait rust_hdl::prelude::synth::Synth

source ·
pub trait Synth: Default + Copy + PartialEq<Self> + Debug {
    const BITS: usize;

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

Required Associated Constants§

Required Methods§

source

fn descriptor() -> TypeDescriptor

source

fn vcd(self) -> VCDValue

source

fn verilog(self) -> VerilogLiteral

Implementations on Foreign Types§

source§

impl Synth for bool

source§

const BITS: usize = 1usize

source§

fn descriptor() -> TypeDescriptor

source§

fn vcd(self) -> VCDValue

source§

fn verilog(self) -> VerilogLiteral

source§

impl Synth for I2CDriverCmd

source§

const BITS: usize = 3usize

source§

fn descriptor() -> TypeDescriptor

source§

fn vcd(self) -> VCDValue

source§

fn verilog(self) -> VerilogLiteral

source§

impl Synth for I2CControllerCmd

source§

const BITS: usize = 3usize

source§

fn descriptor() -> TypeDescriptor

source§

fn vcd(self) -> VCDValue

source§

fn verilog(self) -> VerilogLiteral

source§

impl Synth for BankState

source§

const BITS: usize = 4usize

source§

fn descriptor() -> TypeDescriptor

source§

fn vcd(self) -> VCDValue

source§

fn verilog(self) -> VerilogLiteral

Implementors§

source§

impl Synth for SDRAMCommand

source§

const BITS: usize = 3usize

source§

impl Synth for Clock

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