sample_hold.comp
1 component sample_hold "Sample and Hold"; 2 pin in s32 in; 3 pin in bit hold; 4 pin out s32 out; 5 function _ nofp; 6 license "GPL"; 7 ;; 8 FUNCTION(_) { 9 if (!hold) { 10 out = in; 11 } 12 }
1 component sample_hold "Sample and Hold"; 2 pin in s32 in; 3 pin in bit hold; 4 pin out s32 out; 5 function _ nofp; 6 license "GPL"; 7 ;; 8 FUNCTION(_) { 9 if (!hold) { 10 out = in; 11 } 12 }