<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Task - Loading PennyWSPR verilog code into the Penelope FPGA using Ozy Blaster<div><br></div><div>Steps:</div><div>1) Download Bill KD5TFD's PennyWSPR code <a href="svn://64.245.179.219/svn/repos_sdr_hpsdr/trunk/PennyWSPR">svn://64.245.179.219/svn/repos_sdr_hpsdr/trunk/PennyWSPR</a> and follow the steps in his readme to create your own customized version with your own call sign and grid square.</div><div><br></div><div>2) If you want to customize the code ie. different bands, transmit cycle etc., use Quartus II to modify PennyWSPR.v. I I have Quartus 8.1 on my system and it worked just fine.  Bill says this code is just one step above 'hello world' code.  I was able to make some sense of it after much study. I guess my Verilog skills are at the 'hello world' level.  Once you have the code the way you like it, rebuild it.  Modify and rebuilt it again if you have any compilation errors.</div><div><br></div><div>3) In your PennyWSPR directory there will be a file, PennyWSPR.pof.  You would use this file and your JTAG blaster to program Penny.  However, if you do not have a JTAG blaster you have another option to program Penny using Ozy configured to be a programmer.  </div><div><br></div><div>To do this create a PennyWSPR.jic file:</div><div>- Using Quartus II, go to File - Convert Programming Files and fill in the following text boxes.</div><div><br></div><div>In the Output Programming file section:</div><div>-Select Programming file type - JTAG Indirect Configuration File (.jic)</div><div>Configuration device EPCS4</div><div>File name PennyWSPR.jic (or any other descriptive file name of your choice using .jic)</div><div>There are no other selections to make in the Output Programming file section.</div><div><br></div><div>In the Input files to convert section:</div><div>- Highlight Flash Loader. Then select 'Add device'.  In Device family, tick Cyclone II. In Device name, tick EP2C8. Click OK.</div><div>- Highlight SOF data. Then select 'Add file'. You should default to your PennyWSPR directory.  Select PennyWSPR.sof and click Open.</div><div><br></div><div>Click 'Generate' button at the bottom of this page.  If everything is ok you should have a "Generated output file .jic successfully" message.</div><div><br></div><div>Close the Convert Programming Files page.</div><div><br></div><div>Now, you can close Quartus II or just minimize it.</div><div><br></div><div>Using Explorer - Check that you have a PennyWSPR.jic file in your PennyWSPR directory.  </div><div><br></div><div>4) Next using Explorer we will add/modify some of Phil's files in the Ozy blaster directory. If you don't have these files get them from the OpenHPSDR svn.</div><div><br></div><div>- Make a copy of PennyWSPR.jic and place it in the Ozy blaster files directory.</div><div><br></div><div>- Create a PennyWSPR.cdf file.  Right click on Penelope_V1.1.cdf, click Edit.  Select File-Save As and save this file as PennyWSPR.cdf.  </div><div>Change the text in 6th line "Device PartName(EPC2C8) File("Penelope_v1.1.jic")......etc." to </div><div>"Device PartName(EPC2C8) File("PennyWSPR.jic")....... etc". </div><div>Click File-Save, then close the editor.</div><div><br></div><div>- Modify Program-Penelope-EPCS4.bat.  Right click on Program-Penelope-EPCS4.bat. Click Edit.</div><div>Scroll down through the file. </div><div><br></div><div>In the section, "prompt the user for the file to use", add the following line after the line beginning Echo B, </div><div>"Echo C. Program using PennyWSPR" (Don't include the quotations).</div><div><br></div><div>Scroll down some more.  In the section, %Choice%, </div><div>Add "If /I '%Choice%'=='C' GOTO ItemC" after the Item B choice line. (Don't include the quotations).</div><div><br></div><div>One last set of additions.  In the last section, add these two lines just before the GOTO CONTINUE statement.</div><div>":ItemC</div><div>%DIRECTORY% -C USB-BLASTER PennyWSPR.cdf"  (Don't include the quotations).</div><div><br></div><div>Click Save and exit.</div><div><br></div><div>5) Now you should be able to program Penelope with the PennyWSPR verilog code.  Install your Ozy and Penelope in the Atlas board, run Program-Penelope-EPCS4.bat and select PennWSPR as the code to install.</div><div><br></div><div>6) Connect and antenna and have fun with PennyWSPR.</div><div><br></div><div><br></div><div><br></div><div>Thanks to Bill KD5TFD and Phil VK6APH for making their hard work available to us to enjoy.</div><div><br></div><div>73</div><div><br></div><div>Rick ve3mm</div><div><br></div></body></html>