I think my GAL encoding isn't working correctly. One of the read lines is swapped with the write, but changing the sense in the description makes nothing work. No idea why.
Code: Select all
Name Sun 3/80 tty-fix ;
PartNo 00 ;
Date 19/03/2022 ;
Revision 01 ;
Designer Engineer ;
Company Personal ;
Assembly None ;
Location ;
Device g16v8 ;
/* *************** INPUT PINS *********************/
PIN 2 = !R;
PIN 3 = !UART_ENABLE;
PIN 4 = PORT_SELECT;
/* *************** OUTPUT PINS *********************/
PIN 19 = !SER0WR;
PIN 18 = !SER0RD;
PIN 17 = !SER1WR;
PIN 16 = !SER1RD;
SER0EN = UART_ENABLE & PORT_SELECT;
SER1EN = UART_ENABLE & !PORT_SELECT;
SER0WR = SER0EN & !R;
SER0RD = SER0EN & R;
SER1WR = SER1EN & !R;
SER1RD = SER1EN & R;

