Goal: replace an 82s129 Bipolar PROM from a Donkey Kong Jr with a GAL G22v10.
Footprint and pin outs of the GAL does NOT need to match the order of the PROM, as it already has more pins so I will be building an adapter PCB.
I was able to complete the equations and compile everything in WinCupl and get the correct outputs.
Now I would like to mimic the Chip Enable (active low) feature of the PROM. The prom actually has 2 CE pins, but in my application they are tied together, so I only need one CE.
I see in the documentation that the G22v10 has a tristate output feature, but I can't seem to find an example or documentation that shows how to implement the High-Z state.
My Question: How can I create the appropriate code so that when the CE is HIGH, the output pins are all "HIGH-Z" state.
Attached is my sample code