gmj.pcb.fpga.test
Class ChipDef
java.lang.Object
   gmj.pcb.fpga.test.ChipDef
gmj.pcb.fpga.test.ChipDef
- public class ChipDef 
- extends Object
Maps row numbers to row names etc.
 assumes that rows are alpha and columns are numeric
 
 sample file
 rows 16
 columns 16
 rowsIndices A B C D E F G H J K L M N P R T
 
| Constructor Summary | 
| private  | ChipDef()
 | 
 
 
 
rows
private int rows
columns
private int columns
rowIndices
private String[] rowIndices
ChipDef
private ChipDef()
getRow
public int getRow(String pinName)
- 
 
getColumn
public int getColumn(String pinName)
- 
 
getNumIndex
private int getNumIndex(String pinName)
- 
 
parseChipDef
public static ChipDef parseChipDef(String fileName)
                            throws IOException
- 
- Throws:
- IOException
 
parseChipDef
public static ChipDef parseChipDef(InputStream inStream)
                            throws IOException
- 
- Throws:
- IOException
 
getDef
private static String getDef(BufferedReader reader,
                             String label)
                      throws IOException
- 
- Throws:
- IOException
 
parseRowIndices
private static String[] parseRowIndices(BufferedReader reader,
                                        int rows)
                                 throws IOException
- 
- Throws:
- IOException
 
toString
public String toString()
- 
- Overrides:
- toStringin class- Object
 
- 
 
main
public static void main(String[] args)
- 
 
Copyright © 2013. All Rights Reserved.