MODULE busif TITLE 'Bus interface for A4 ethernet card' "CPLD DEVICE 'ispLSI2032EJ' Declarations " input pins !S2, !S4, LA2, LA3, LA4, LA5 pin; !WBE, !RST, CLK2, !PRE, !PWE pin; ETHIRQ, !ECON pin; " output pins !OE245, CPAB, DIR245, DIR646, CPBA, !OE646 pin istype 'com'; !IOR, !IOW, RESET, SLEEP pin istype 'com'; !AEN pin 3 istype 'com'; PIRQ, EFIQ pin istype 'com'; EQUATIONS AEN = S2 & LA2; DIR245 = PWE; OE245 = (S2 & ECON); IOR = (PRE & ECON); IOW = (PWE & ECON); SLEEP = ECON; OE646 = S2 & !LA2 & ECON; CPAB = !PWE & ECON; CPBA = !PRE & ECON; PIRQ = 0; PIRQ.oe = ETHIRQ; EFIQ = 1; EFIQ.oe = 0; END