Line 16... |
Line 16... |
// along with this program; if not, write to the Free Software
|
// along with this program; if not, write to the Free Software
|
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
//
|
//
|
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
//
|
//
|
// $Id: Gen_LCD_Image.java,v 1.1 2007-05-25 11:20:18 jwdonal Exp $
|
// $Id: Gen_LCD_Image.java,v 1.2 2007-05-29 04:15:10 jwdonal Exp $
|
//
|
//
|
// Description: This program parses the RGB COE files in binary, decimal
|
// Description: This program parses the RGB COE files in binary, decimal
|
// or hex format and displays what the image should look like on the LCD
|
// or hex format and displays what the image should look like on the LCD
|
// if the COE files given to this app are the same ones given to the Xilinx
|
// if the COE files given to this app are the same ones given to the Xilinx
|
// CoreGen tool for each color's BRAM instance.
|
// CoreGen tool for each color's BRAM instance.
|
Line 69... |
Line 69... |
private int currByteIntRed;
|
private int currByteIntRed;
|
private int currByteIntGreen;
|
private int currByteIntGreen;
|
private int currByteIntBlue;
|
private int currByteIntBlue;
|
|
|
private String hdrFileStr;
|
private String hdrFileStr;
|
private String temp;
|
|
|
|
|
|
/**
|
/**
|
* Constructor for a Gen_LCD_Image object.
|
* Constructor for a Gen_LCD_Image object.
|
*
|
*
|
Line 95... |
Line 94... |
currByteIntGreen = 0;
|
currByteIntGreen = 0;
|
currByteIntBlue = 0;
|
currByteIntBlue = 0;
|
|
|
hdrFileStr = "uninitialized";
|
hdrFileStr = "uninitialized";
|
|
|
temp = "unintialized";
|
|
|
|
|
|
}
|
}
|
|
|
|
|
public void openHeaderFile() throws FileNotFoundException {
|
public void openHeaderFile() throws FileNotFoundException {
|
|
|
Line 206... |
Line 202... |
} //getBramWidth
|
} //getBramWidth
|
|
|
|
|
public void getRadixValues() throws IOException {
|
public void getRadixValues() throws IOException {
|
|
|
|
String temp = "unintialized";
|
|
|
for( int fileNum = 0; fileNum < NUM_COE_FILES; fileNum++ ) {
|
for( int fileNum = 0; fileNum < NUM_COE_FILES; fileNum++ ) {
|
|
|
//Scan for the memory initialization radix value for each file
|
//Scan for the memory initialization radix value for each file
|
do {
|
do {
|
// a whole lotta nothin until I say stop
|
// a whole lotta nothin until I say stop
|