Okay I'm pretty good with electronics but a total noob when it comes to PLD's so my apologies if this is a dumb question...
I'm trying to build a device from info I found on the web that uses a GAL16V8 chip. The info from the web includes what's claimed to be OPAL code, but the free versions of OPAL I could find ("OPALjr") seem to have serious problems with it. My question is simple (sort of): is this code just messed up, or are there significant differences between the pay and free versions of OPAL that would explain the problems?
Here's the code: begin definition device GAL16V8 inputs DSI=2,DSCLK=3,BREAK=4,RESET=5,OE=6,M_FREEZE=7,M_DSO=8,SW=9,BERR=11; outputs (com) M_BERR=19,M_DSCLK=18,DSO=16,FREEZE=14,MAGIC=12; feedback (com) M_DSI=17,M_RESET=15,FF_BREAK=13; end definition begin equations M_DSI=DSI; M_DSI.oe=M_FREEZE&OE; M_DSCLK=DSCLK&FF_BREAK&M_RESET; FF_BREAK=BREAK|(FF_BREAK&(M_FREEZE|M_DSI)); M_RESET=RESET; M_RESET.oe=/RESET; M_BERR=/BERR; M_BERR.oe=BERR; FREEZE=M_FREEZE;DSO=M_DSO; MAGIC=0; end equations
OPALjr is complaining about 3 things: it wants a "CHIP" keyword, it doesn't like the parenthesees in the 13th line, and doesn't like the assignment to "0" in the 2nd-to-last line. Looking in the OPALjr docs, they specifically forbid the use of parens, and there's no mention of the "device" keyword or assignment to "0".
Any input would be greatly appreciated!