Advertisement
Guest User

Untitled

a guest
Aug 17th, 2011
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. --- estop_latch.comp 2010-12-14 11:43:54.000000000 -0600
  2. +++ raw.php?i=dEibsEeg 2011-08-17 11:17:28.000000000 -0500
  3. @@ -1,6 +1,8 @@
  4. -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.";
  5. +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.";
  6. pin in bit ok_in;
  7. -pin in bit fault_in;
  8. +pin in bit fault_in0;
  9. +pin in bit fault_in1;
  10. +pin in bit fault_in2;
  11. pin in bit reset;
  12. pin out bit ok_out;
  13. pin out bit fault_out;
  14. @@ -14,7 +16,7 @@
  15.  
  16. FUNCTION(_) {
  17. /* check inputs */
  18. - if ( ok_in && !fault_in) {
  19. + if ( ok_in && !fault_in0 && !fault_in1 && !fault_in2 ) {
  20. /* no fault conditions, check for reset edge */
  21. if ( reset && !data.old_reset ) {
  22. /* got a rising edge, indicate "OK" on outputs */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement