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

  1. module latch
  2. title 'transparent latch  
  3. Michael Holley   Data I/O     30 Sept 1984'
  4.  
  5.     ti3    device 'P19L8L';
  6.  
  7.     D7,D6,D5,D4,D3,D2,D1,D0 pin  2, 3, 4, 5, 6, 7, 8, 9;
  8.     F7,F6,F5,F4,F3,F2,F1,F0    pin 22,21,20,19,18,17,16,15;
  9.     INLE,OE            pin 14,13;
  10.  
  11.     D7,D6,D5,D4,D3,D2,D1,D0    IsType 'latch';
  12.  
  13.     Input    = [D7,D6,D5,D4,D3,D2,D1,D0];
  14.     Output  = [F7,F6,F5,F4,F3,F2,F1,F0];
  15.  
  16. equations
  17.     enable Output = !OE;
  18.  
  19.     Output = Input;
  20.  
  21. test_vectors ' Transparent Latch'
  22.     ([INLE,OE,Input] -> Output)
  23.      [ 0  , 0, ^hFF] ->  ^hFF;
  24.      [ 0  , 0, ^h55] ->  ^h55;
  25.      [ 0  , 0, ^hAA] ->  ^hAA;
  26.      [ 1  , 0, ^hFF] ->  ^hAA;
  27.      [ 0  , 0, ^h00] ->  ^h00;
  28.      [ 0  , 1, ^h00] ->   .Z.;
  29. end
  30.