blob: b6cf3ddc54fcd2bb1a8352cf27c4576ce3907c3d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
component sample_hold "Sample and Hold";
pin in s32 in;
pin in bit hold;
pin out s32 out;
function _ nofp;
license "GPL";
author "Stephen Wille Padnos";
;;
FUNCTION(_) {
if (!hold) {
out = in;
}
}
|