Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- estop_latch.comp 2010-12-14 11:43:54.000000000 -0600
- +++ raw.php?i=dEibsEeg 2011-08-17 11:17:28.000000000 -0500
- @@ -1,6 +1,8 @@
- -component estop_latch "ESTOP latch which sets ok-out true and fault-out false only if ok-in is true, fault-in is false, and a rising edge is seen on reset. While ok-out is true, watchdog toggles, and can be used for chargepumps or similar needs.";
- +component estop_latch2 "ESTOP latch2 which sets ok-out true and fault-out false only if ok-in is true, fault-in0 is false, fault-in1 is false, fault-in2 is false, and a rising edge is seen on reset. While ok-out is true, watchdog toggles, and can be used for chargepumps or similar needs.";
- pin in bit ok_in;
- -pin in bit fault_in;
- +pin in bit fault_in0;
- +pin in bit fault_in1;
- +pin in bit fault_in2;
- pin in bit reset;
- pin out bit ok_out;
- pin out bit fault_out;
- @@ -14,7 +16,7 @@
- FUNCTION(_) {
- /* check inputs */
- - if ( ok_in && !fault_in) {
- + if ( ok_in && !fault_in0 && !fault_in1 && !fault_in2 ) {
- /* no fault conditions, check for reset edge */
- if ( reset && !data.old_reset ) {
- /* got a rising edge, indicate "OK" on outputs */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement