Gal/PLD's
As you would have seen ... I use Gal/pld type chips in most of my pcb designs ... So to help you understand how they work .. here is some information about these chips ... How to use them and program them. For programming you usually need a universal programmer (and most will do .. and be able to program these chips)
Below you can see some online videos about pld programming using WinCUPL software (needed for Gal22v10 chips) ...
See this video for intro about Gal/pld programming ..
CPLD's
If you like to have more pins and higher functionality to control the address decoding and other glue logic .. have a look at my other website on micro CPLD's ..which will give you some idea on how to go about using these devices in micro board designs. Some of the feature explored are:
Simple CPLD type board construction
Use of Quartus II IDE software
Programming cpld's with VHDL type programming language
Programming the cpld's with JTAG interface
Simple testing of cpld devices
Examples of cpld implementation for micro boards e.g. memory map address decoding