NAME PALtoGAL - PAL to GAL JEDEC file conversion utility SYNOPSIS PALtoGAL [-d device] [-i infile] [-o outfile] [-r RAL code] [-s signature] DESCRIPTION GAL devices are fuse map compatible with standard PAL devices, so any development software that is capable of creating JEDEC files for use with PAL devices, such as PALASM, can be used with GAL devices. However, GAL devices have additional "fuses" that define their architecture (synchronous, asynchronous, or combinations thereof). This architecture information is not provided by PAL-only assemblers and compilers. Most programming fixtures configure GAL device architectures automatically, using menus or other means to determine the device being emulated. However, some programming fixtures do not configure GAL device architectures automatically, requiring instead, that all necessary architecture information be present in the JEDEC file. This means that JEDEC files developed for use with PAL devices must be modified before they can be used with GAL devices on such a programmer. This program (PALtoGAL) performs all of the necessary translations required. The modifications PALtoGAL performs are as follows: 1) Appends the proper architecture information. 2) Sets unused product terms to all zeros. 3) Sets unused input terms to all ones. 4) Expands the fuse map to include every fuse (recognizes, but doesn't use the F field). 5) Strips away test vectors. GAL devices, being 100% testable during manufacturing, don't need them for functional verification like bipolar fuse link devices do. 6) Includes a fuse address (L field) every 32 fuses (every 40 fuses for GAL20V8) for JEDEC file readability. 7) Recalculates fuse array and transmission checksums. 8) Adds "QP" (quantity of pins) and "QF" (quantity of fuses) fields. 9) Inserts user electronic signature, if specified. Command line options (not order or case sensitive): -i Input JEDEC file name (required). Default extension is .JED -o Output filename. Default is to overwrite the input file. When an output filename is specified, default extension is .JED -d Destination device type (16V8 or 20V8). Default is to use the JEDEC "QP" field to determine device type. When no "QP" field is present, device type defaults to 16V8. -r RAL architecture to force on JEDEC file. Default is to not force any architecture. The valid RAL codes are: 16V8: 10L8 12L6 14L4 16L2 16L8 16R8 16R6 16R4 10H8 12H6 14H4 16H2 16H8 16RP8 16RP6 16RP4 10P8 12P6 14P4 16P2 16P8 20V8: 14L8 16L6 18L4 20L2 20L8 20R8 20R6 20R4 14H8 16H6 18H4 20H2 20H8 20RP8 20RP6 20RP4 14P8 16P6 18P4 20P2 20P8 -s User electronic signature to write into GAL device. Format is hexadecimal or ASCII, most significant byte/character first. The signature word in a GAL device is 64 bits wide; if 64 bits of data are not specified, the signature will be "right justified" within the UES and the most significant bit positions padded with zeros. EXAMPLES 1) A file named COUNTER.JED, which was compiled for a PAL20R8,is to be converted into a file called COUNTER.GAL for use with a GAL20V8. The JEDEC file contains a "QP" field. PALtoGAL -iCOUNTER -oCOUNTER.GAL -r20R8 -s'rev3'B9 The ASCII characters "rev3" followed by a hex B9 were placed into the UES word. Notice that ASCII characters and hex values may be mixed (ASCII character strings must be preceded by a single quote; a closing quote is only necessary if hex values follow). 2) To add an electronic signature ("4/15/87") to an existing GAL20V8 JEDEC file named DECODER.JED (file does not contain a "QP" field): PALtoGAL -d20V8 -iDECODER -s'4/15/87 3) To "clean up" (perform operations 4 through 8, above) an existing GAL20V8 JEDEC file (containing a "QP" field) named MULTIPLX.GAL: PALtoGAL -iMULTIPLX.GAL DIAGNOSTICS Usage: PALtoGAL [-dDevice] [-iInfile] [-oOutfile] [-rRAL code] [-sSignature] Input file not found. Invalid RAL device type: Unrecognized parameter: Unrecognized option: -