PROGRAMMING INSTRUCTIONS PHASE 1: In this phase a source file is prepared for PALASM compiler. Computer assistance is not needed in this phase. 1. Obtain logical equations for the required system outputs. This may be either a new design or conversion from an existing circuit to a PAL design. 2. Prepare a source file with these equations written in PALASM language. Filename should have an extension of PDS. PHASE 2: After preparing a source file it has to be compiled with a PC loaded special software to generate the target file or simulation results that shows the status of the PAL fuses according to functions and simulated output respectively. 3. For compiling your program, a) Startup PALASM on any of the Lab computers. b) Load your XXX.pds file onto the software by using the "Retrieve Existing Design" option. c) Next, select the compile option from the "RUN" menu. This will bring up a new form which has to be verified by pressing "F10". d) Once the compilation takes place, PALASM will create for you a XXX.jed file. This is the file which contains the Fuse-map for your design and has to be taken to the machine with the programmer. 4. If compiler generates error(s), then go back to step 2 and correct them. Basically errors are due to syntax or conceptual. The first one is the easier to catch and correct. Use compiler outputs to locate the errors. The compiler will not generate a .JED file unless all the errors are corrected. 5. (OPTION) Source file can be simulated to see output waveforms, pin descriptions using the PALASM software in the following way: a) For simulation, your .pds file should include the SIMULATION section b) Select the SIMULATE option from the "RUN" menu. c) This will simulate your design and produce two files, a XXX.hst file and a XXX.trf file. d) Next, you can go to the "VIEW" menu and select the "WAVEFORMS" option. This will display the timing diagram for your simulation. e) If the results are not as desired, go to step 2 and modify your design accordingly. PHASE 3: After a successful compilation and simulation, the PAL/PLD chip can be programmed with a PC which is loaded with a special software CM6000 and instrumented with a special hardware (PAL Programmer Device). 6. Chnge directory to CM6000. 7. Use the following command to activate the PAL programmer device. c:> cm6000 A new menu will be on the screen with multiple selections. 8. Upload the JEDEC file which is the output of the compiler at the second phase. Select "Input File" from the menu for this process. 9. Install the chip over the socket properly. See the figure by the socket and ask help from the TA for a correct installation. Wrong installation may easily cause the chip to be fried. 10. Download the JEDEC file selecting "Program Device" option from the menu. 11. After programming process, the software will automatically verify whether the download process has been successful or not. This process is over wait a few seconds and remove the chip from the socket. 12. Take the programmed chip and install it to the target system. A list of "Hot keys" for all the opeartions using the programmer is provided in the lab. ----- NOTE: The license agreement with these software producers indicates that the softwares mentioned above is strictly restricted to copy or duplicate.