Below are instructions to help users
change the default patterns in the ROM for TPG selections.
- Go into the directory C:\Texas
Instruments\DLPC964-Apps\docs\patterns and verify that the user has Python 2.6
(or greater) installed.
- Open the binary_to_coe.py
file and read through the top comments. The patterns used in the DLPC964
Apps were generated using this script. Look at the
bit_fnames
list located near the top of the script.
- The user can create a new .txt
file and replace one of the names within the
bit_fnames
list.Note: Any patterns designated RTL defined
pattern cannot be changed to a different pattern since the patterns are not
read from the ROM.
- Instructions for creating
a .txt file for the python script:
- The text file
MUST have 1024 columns and 136 lines.
- Each character in
the text file must either be a '1' or a '0'.
- Make sure the
text file is in the same directory as the python script.
- Once the
bit_fnames
has been updated with the new text file name,
run the python script. This creates a file called
bpg_patterns.coe
- Open the
Vivado project (either by unzipping the archived project in the build\project
directory, or by running the run.tcl script).
Note: Unzipping the project is faster but if desired, then the run.tcl script has
instructions on how to run.
- Once the project is open, in the
Project Manager window, find the tab labeled IP sources and click.
- Right-click on
pgen_spbrom_v3
and select re-customize IP.
- Once the IP configuration tool is
open, go to the options tab and the user sees a Memory Initialization
section.
- Click Browse and navigate
to the location of the bpg_patterns.coe file created by the python script in
step 4. Assuming there are no errors, click OK. In the next window, click
Generate.
- The user now has reprogrammed the
ROM in the DLPC964 Apps FPGA. Now, re-build the project.
- Once
Xilinx finishes generating output products, click Generate Bitstream
located on the left in the Flow Navigator. Click OK to any prompts and
once Vivado finishes, the bitstream can be found inside the
project_1\project_1.runs\impl_1\ directory.