GAL programming



Programmer XGecu (TL866*)
GAL
Lattice GAL16V8-35LP


Workstation OS Linux
GAL compiler software GALasm
Programmer software minipro


Example project Basic inverter (Hello world)


     Source

GAL16V8
hello
BTN NC NC NC NC NC NC NC NC GND
NC OUT NC NC NC NC NC NC NC VCC

OUT = /BTN

DESCRIPTION


Compile command used galasm hello.gal
tr -d '\015' < hello.jed > hello.ujed

[ or makefile ]

GALIC=GAL16V8
all: hello.ujed

%.ujed: %.gal
galasm $<
tr -d '\015' <$(@:.ujed=.jed) >$@
upload: erase
minipro -p $(GALIC) -w $(file)

erase:
minipro -p $(GALIC) -E

clean:
rm *.jed *.pin *.fus *.chp

.phony: all
make && make upload file=hello.ujed

Programming command / settings used minipro -p GAL16V8 -w hello.ujed


 Schematic

  


Operation / test procedure

- Wire GAL

- Power it up, the LED should be on
- Push button, the LED should go out when pin 1 goes low.
- If that is the case, congratulations, You have just made your first working programmable logic device circuit.


Polprog / Rue Mohr