home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s199 / 1.img / ORXOR.ABL < prev    next >
Encoding:
Text File  |  1986-02-04  |  1.4 KB  |  50 lines

  1. module _OrXor  flag '-f'
  2.  
  3. title 'Using OR and XOR outputs in VTI and RICOH EPALs 
  4. FutureNet - Data I/O  Redmond WA  11 Jan 1986' 
  5.  
  6. " The E16P8, E16RP4, E16RP6, E16RP8 EPALs allow product term sharing
  7. " between two adjacent outputs and the product terms can be used by 
  8. " both outputs at the same time. As in the following equations.
  9. "
  10. "    PIN18  = A $ B;
  11. "    PIN19  = A # B;
  12. "
  13. " This feature is not directly supported in ABEL and writing this pair
  14. " of equations will cause an error in FUSEMAP. 
  15. " To utilize two active outputs it is necessary to omit the OR equation
  16. " and then manually override the fuse selection for the OR output. 
  17. " An enable equation is required for the OR output.
  18. "
  19. " Output    Fuses               Configuration         Fuse Pattern
  20. "   19   [2048..2050]        Active Low     OR    [1,0,0]
  21. "   18   [2051..2053]        Active Low    XOR    [0,1,0]
  22. "   17   [2054..2056]        Active High    OR    [1,0,1]
  23. "   16   [2057..2059]        Active High   XOR    [0,1,1]
  24. "   15   [2060..2062]
  25. "   14   [2063..2065]           Fuse State
  26. "   13   [2066..2068]           0 = Connected
  27. "   12   [2069..2072]           1 = Open 
  28. "
  29.     orxor    device    'E16P8';
  30.  
  31.     A,B        pin 2,3;
  32.     F18,F19        pin 18,19; 
  33.  
  34. fuses
  35.     [2048..2050] = [1,0,1]; " F19 Active High  OR
  36.  
  37. equations
  38.      F18  = A $ B;
  39.  
  40.     enable F19 = 1;
  41.  
  42. test_vectors  ( [A,B] -> [F18,F19] )
  43.         [1,1] -> [ 0 , 1];
  44.         [1,0] -> [ 1 , 1];
  45.         [0,1] -> [ 1 , 1];
  46.         [0,0] -> [ 0 , 0];
  47.  
  48. end
  49.