
   % Multi TOS, IDE . Supports ROM areas #E00000-#EFFFFF %
  % #FC0000-#FEFFFF    , writing to Flash EPROMs in area at #E0.... %
  % For machines with orig. ROM at #FC0000 %
  % Vers 2 with delay for Kingston CF %

*IDENTIFICATION
   TOSMIDE2;

*TYPE
  GAL16V8;
  
*PINS
 
    %INPUTS %
    
    A23 = 1,
    A22 = 2,
    A21 = 3,
    A20 = 4,
    A19 = 5,
    A18 = 6,
    A17 = 7,
    A16 = 8,
   
   

    A5 = 9, 
     
    AS = 11,
    RW = 12,
    ROM2 = 19,

    %OUTPUTS %
    			 
    CER = 18,  %E00000-EFFFFF, FC0000-FEFFFF , for TOS 1.xx and 2.06 in same chips%
  
    
    SELP = 13,
    SELS = 14,
    IORD = 15,    % Via 74LS03  to IDE port, for delay - Kingston ! %
    IOWR = 16,   
    DTACK = 17;	 %Goes to inverter with Open Collector e.g. 74LS03 %
   


*BOOLEAN-EQUATIONS


   DTACK = /AS*A23*A22*A21*/A20+
   A23*A22*A21*A20*/A19*/A18*/A17*/A16; 
   
      /CER = /AS*A23*A22*A21*/A20+/ROM2+
    /AS*A23*A22*A21*A20*A19*A18*/A17*A16*RW+
    /AS*A23*A22*A21*A20*A19*A18*A17*/A16*RW;
   /SELP = A23*A22*A21*A20*/A19*/A18*/A17*/A16*/A5;
   /SELS = A23*A22*A21*A20*/A19*/A18*/A17*/A16*A5;
   IORD = /AS*A23*A22*A21*A20*/A19*/A18*/A17*/A16*RW;
   /IOWR = /AS*A23*A22*A21*A20*/A19*/A18*/A17*/A16*/RW;
     
*END
     
     			  