This project was created for self educational purposes and is used to simulate a GAL16V8. To accomplish this, the circuit was created using Digital a circuit simulator and VHDL.
The GAL is a programmable logic device with which one can program boolean, combinatorial or sequential circuits using source code. The GAL16V8 has 16 inputs of which 8 are in and outputs as well as a clock and enable.
- Convert the .pld file to JEDEC with GALasm
Optionally Digital can be used to create the JEDEC file (see documentation) - Convert the .jed file to hex with jedec2hex.py
- Input the .hex file path in the generic map of GAL16V8.vhd
- Simulate with vhdl-2008
Using Digital
- Open GAL16V8_Test.dig and change the hex file (Counter.hex default)
Edit > Circuit specific settings > Advanced > Content of ROM's > Edit > Fuses > File > load - Change the inputs and outputs if required. (DO NOT CHANGE GND & VCC PINS) used for programming
- Start simulation, wait till Ready led is on (programmed)