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

  1. module multi
  2. title 'multiple devices in one module 
  3. FutureNet - Data I/O  17 Jan 1986'
  4.  
  5.     U01,U02    device 'P16L8';
  6.  
  7.     A,B,C,D,Y1    pin in U01 1,2,3,4,15;
  8.     C,D,E,F,Y2    pin in U02 1,2,3,4,15;
  9.  
  10.     Input1    = [A,B,C,D];
  11.     Input2    = [C,D,E,F];
  12.  
  13. equations in U01
  14.     !Y1 = A & B # C & D;
  15.  
  16. equations in U02
  17.     !Y2 = E & F # C & D;
  18.  
  19. test_vectors in U01
  20.     (Input1 -> Y1)
  21.      ^b1111 ->  0;
  22.      ^b0011 ->  0;
  23.      ^b1100 ->  0;
  24.      ^b0000 ->  1;
  25.      ^b1000 ->  1;
  26.      ^b0001 ->  1;
  27.  
  28. test_vectors in U02
  29.     (Input2 -> Y2)
  30.      ^b1111 ->  0;
  31.      ^b0011 ->  0;
  32.      ^b1100 ->  0;
  33.      ^b0000 ->  1;
  34.      ^b1000 ->  1;
  35.      ^b0001 ->  1;
  36. end
  37.  
  38.