fn emit_blocking_assign_llhd(
        &mut self,
        lvalue: (HybridValue, Option<HybridValue>),
        rvalue: HybridValue,
    ) -> Result<()> {
        let ty = lvalue.0 .1.ty();
        if circt::llhd::is_signal_type(ty) {
            let delay = self.mk_const_time(&num::zero(), 0, 1);
            self.mk_drv(lvalue.0, rvalue, delay);
        } else if circt::llhd::is_pointer_type(ty) {
            self.mk_st(lvalue.0, rvalue);
        } else {
            panic!("value of type `{}` cannot be assigned to", ty);
        }
        if let Some(lv) = lvalue.1 {
            self.mk_st(lv, rvalue);
        }
        Ok(())
    }
/// Emit a blocking assignment to a variable or signal.
Emit a blocking assignment to a variable or signal.
Emit a blocking assignment to a variable or signal .
fn emit_blocking_assign_llhd(
        &mut self,
        lvalue: (HybridValue, Option<HybridValue>),
        rvalue: HybridValue,
    ) -> Result<()> {
        let ty = lvalue.0 .1.ty();
        if circt::llhd::is_signal_type(ty) {
            let delay = self.mk_const_time(&num::zero(), 0, 1);
            self.mk_drv(lvalue.0, rvalue, delay);
        } else if circt::llhd::is_pointer_type(ty) {
            self.mk_st(lvalue.0, rvalue);
        } else {
            panic!("value of type `{}` cannot be assigned to", ty);
        }
        if let Some(lv) = lvalue.1 {
            self.mk_st(lv, rvalue);
        }
        Ok(())
    }
fn emit_blocking_assign_llhd ( & mut self , lvalue : ( HybridValue , Option < HybridValue > ) , rvalue : HybridValue , ) -> Result < ( ) > { let ty = lvalue . 0 . 1 . ty ( ) ; if circt :: llhd :: is_signal_type ( ty ) { let delay = self . mk_const_time ( & num :: zero ( ) , 0 , 1 ) ; self . mk_drv ( lvalue . 0 , rvalue , delay ) ; } else if circt :: llhd :: is_pointer_type ( ty ) { self . mk_st ( lvalue . 0 , rvalue ) ; } else { panic ! ( " " ty ) ; } if let Some ( lv ) = lvalue . 1 { self . mk_st ( lv , rvalue ) ; } Ok ( ( ) ) }
Emit a blocking assignment to a variable or signal.
Emit a blocking assignment to a variable or signal .
&mut self
lvalue
(HybridValue, Option<HybridValue>)
rvalue
HybridValue
&mut self
lvalue
(HybridValue, Option<HybridValue>)
rvalue
HybridValue