module NLAST2 title 'COMPARISON OF HITCN0-2 WITH TOTHIT0-2 = LAST2' "INPUTS GENERAL M0, M1, M2, M3, M4, M5, M6, M7 pin ; SS0, SS1, SS2 pin ; HITCN0, HITCN1, HITCN2 pin ; RPOKX pin ; SM1Q0, READY, TRAIL, CLRTAG pin ; IHOLD pin ; "outputs N2LAST0, N2LAST1, N2LAST2 pin ; N2LAST3, N2LAST4, N2LAST5 pin ; N2LAST6, N2LAST7, N2LAST8 pin ; N2LAST9 pin ; EMPTY, RLE pin ; " decode the tagram Match lines & the address SS lines to get " the Total # of hits TOTH0 macro {( !SS2 & !SS1 & !SS0 & M1 "2 hit/cell # !SS2 & SS1 & !SS0 & M3 "2 hit/cell # SS2 & !SS1 & !SS0 & M5 "2 hit/cell # SS2 & SS1 & !SS0 & M7 "2 hit/cell # !SS2 & !SS1 & SS0 & (M1 & !M2 # M3) "4 hit/cell # SS2 & !SS1 & SS0 & (M5 & !M6 # M7) "4 hit/cell # SS1 & SS0 & "8 hit/cell (M1 & !M2 # M3 & !M4 # M5 & !M6 # M7) )}; TOTH1 macro {( !SS2 & !SS1 & SS0 & M2 "4 hit/cell # SS2 & !SS1 & SS0 & M6 "4 hit/cell # SS1 & SS0 & (M2 & !M4 # M6) )};"8 hit/cell TOTH2 macro {( SS1 & SS0 & M4)}; "4 hit/cell " A2 = [TOTH2, TOTH1, TOTH0]; " B2 = [HITCN2, HITCN1, HITCN0]; "TAGRAM CONTROL: comparing A2=[TOTH2, TOTH1, TOTH0] to "B2=[HITCN2, HITCN1, HITCN0] " we get LAST2, to control the number of hits to be sent. " NLAST2 = !(A2==B2); divided into 10 FFB macrocells " to be fast (40 products). We place them into a 7318. " NLAST2 (defined in fsm.abl) = N2LAST0 + .... + N2LAST9 " LAST2 (defined in fsm.abl) = !N2LAST0 * .... * !N2LAST9 EQUATIONS RLE = !RPOKX &!SM1Q0 & READY &!TRAIL &!CLRTAG &!IHOLD &!N2LAST0 &!N2LAST1 &!N2LAST2 &!N2LAST3 &!N2LAST4 &!N2LAST5 &!N2LAST6 &!N2LAST7 &!N2LAST8 &!N2LAST9 # !SM1Q0 &!READY & TRAIL &!CLRTAG &!IHOLD & !RPOKX # !RPOKX & SM1Q0 &!READY &!TRAIL &!CLRTAG ; N2LAST0 = !M1 & !M5 & !M7 & HITCN0 & HITCN2 # M2 & !M3 & !M5 & !M7 & HITCN0 & HITCN1 # !M1 & !M7 & HITCN0 & HITCN1 & HITCN2 # !M1 & !M3 & M6 & !M7 & HITCN0 & HITCN1; N2LAST1 = M2 & !M5 & !M7 & HITCN0 & HITCN2 # M2 & !M7 & HITCN0 & HITCN1 & HITCN2 # !M3 & !SS1 & !SS2 & HITCN0 & HITCN1 # !M7 & !SS1 & SS2 & HITCN0 & HITCN1; N2LAST2 = M3 & !SS0 & SS1 & !SS2 & !HITCN0 # M5 & !SS1 & SS2 & !HITCN0 & !HITCN1 # M2 & !M3 & M6 & !M7 & HITCN0 & HITCN1 # M1 & !SS1 & !SS2 & !HITCN0 & !HITCN1; N2LAST3 = !M6 & HITCN1 & HITCN2 # M2 & !M4 & SS0 & SS1 & !HITCN1 # M3 & !M4 & SS0 & SS1 & !HITCN0 # M3 & SS0 & !SS1 & !SS2 & !HITCN0; N2LAST4 = M2 & SS0 & !SS1 & !SS2 & !HITCN1 # M1 & !M2 & SS0 & SS1 & !HITCN0 # M5 & !M6 & SS0 & SS1 & !HITCN0 # !M1 & !SS0 & !SS1 & !SS2 & HITCN0; N2LAST5 = !M1 & !M3 & !SS1 & !SS2 & HITCN0 # !M5 & !SS0 & !SS1 & SS2 & HITCN0 # !M3 & !SS0 & SS1 & !SS2 & HITCN0 # !M1 & !M3 & !M5 & !M7 & HITCN0; N2LAST6 = !SS0 & HITCN2 # !SS1 & HITCN2 # !SS0 & HITCN1; N2LAST7 = !M2 & !SS1 & !SS2 & HITCN1 # !M5 & !M7 & !SS1 & SS2 & HITCN0 # !M6 & !SS1 & SS2 & HITCN1 # !M7 & !SS0 & SS1 & SS2 & HITCN0; N2LAST8 = M7 & SS1 & SS2 & !HITCN0 # M7 & SS0 & SS2 & !HITCN0 # M4 & SS0 & SS1 & !HITCN2 # M6 & SS0 & SS2 & !HITCN1; N2LAST9 = M7 & SS0 & SS1 & !HITCN0 # M6 & SS0 & SS1 & !HITCN1 # !M2 & !M6 & HITCN1 # !M4 & HITCN2; EMPTY = ( !M2 & !SS0 & SS1 & !SS2 # !M6 & !SS0 & SS1 & SS2 # !M4 & !SS1 & SS2 # !M0 & !SS1 & !SS2 # !M0 & SS0 & SS1 ); END