Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
0699c765fThis file is pinned to the selected release. Download the original to open it in your design tool.
HAL_COMP(rev);
HAL_PIN(in) = 0.0;
HAL_PIN(out) = 0.0;
HAL_PIN(rev) = 0.0;
RT(
if(PIN(rev) > 0.0){
PIN(out) = minus(0, PIN(in));
}
else{
PIN(out) = PIN(in);
}
);
ENDCOMP;