OpenCores
URL https://opencores.org/ocsvn/usb_fpga_1_2/usb_fpga_1_2/trunk

Subversion Repositories usb_fpga_1_2

[/] [usb_fpga_1_2/] [trunk/] [java/] [FWLoader.java] - Diff between revs 8 and 9

Show entire file | Details | Blame | View Log

Rev 8 Rev 9
Line 64... Line 64...
                        "    -ru              Reset EZ-USB Microcontroller\n"+
                        "    -ru              Reset EZ-USB Microcontroller\n"+
                        "    -uu <ihx file>   Upload EZ-USB Firmware\n"+
                        "    -uu <ihx file>   Upload EZ-USB Firmware\n"+
                        "    -bs 0|1|A        Bit swapping for bitstreams: 0: disable, 1: enable, A: automatic detection\n"+
                        "    -bs 0|1|A        Bit swapping for bitstreams: 0: disable, 1: enable, A: automatic detection\n"+
                        "    -rf              Reset FPGA\n"+
                        "    -rf              Reset FPGA\n"+
                        "    -uf <bitstream>  Upload bitstream to FPGA\n"+
                        "    -uf <bitstream>  Upload bitstream to FPGA\n"+
 
                        "    -sf <number>     Select FPGA (default: 0)\n"+
                        "    -re              Reset EEPROM Firmware\n"+
                        "    -re              Reset EEPROM Firmware\n"+
                        "    -ue <ihx file>   Upload Firmware to EEPROM\n"+
                        "    -ue <ihx file>   Upload Firmware to EEPROM\n"+
                        "    -rm              Reset FLASH bitstream\n"+
                        "    -rm              Reset FLASH bitstream\n"+
                        "    -um <bitstream>  Upload bitstream to Flash\n"+
                        "    -um <bitstream>  Upload bitstream to Flash\n"+
                        "    -uxf <ihx file>  Upload Firmware / data  to ATxmega Flash\n"+
                        "    -uxf <ihx file>  Upload Firmware / data  to ATxmega Flash\n"+
Line 161... Line 162...
                        System.err.println(helpMsg);
                        System.err.println(helpMsg);
                        System.exit(0);
                        System.exit(0);
                }
                }
                else if ( args[i].equals("-i") || args[i].equals("-ii") || args[i].equals("-if") || args[i].equals("-ru") || args[i].equals("-rf") || args[i].equals("-re") || args[i].equals("-rm") ) {
                else if ( args[i].equals("-i") || args[i].equals("-ii") || args[i].equals("-if") || args[i].equals("-ru") || args[i].equals("-rf") || args[i].equals("-re") || args[i].equals("-rm") ) {
                }
                }
                else if ( args[i].equals("-uu") || args[i].equals("-uf") || args[i].equals("-ue") || args[i].equals("-um") || args[i].equals("-bs") || args[i].equals("-uxf")  || args[i].equals("-uxe") || args[i].equals("-rxf") || args[i].equals("-ss")) {
                else if ( args[i].equals("-uu") || args[i].equals("-uf") || args[i].equals("-sf") || args[i].equals("-ue") || args[i].equals("-um") || args[i].equals("-bs") || args[i].equals("-uxf")  || args[i].equals("-uxe") || args[i].equals("-rxf") || args[i].equals("-ss")) {
                    i+=1;
                    i+=1;
                }
                }
                else if ( args[i].equals("-wxf")  ) {
                else if ( args[i].equals("-wxf")  ) {
                    i+=3;
                    i+=3;
                }
                }
Line 253... Line 254...
                        System.err.println(helpMsg);
                        System.err.println(helpMsg);
                        System.exit(1);
                        System.exit(1);
                    }
                    }
                    System.out.println("FPGA configuration time: " + ztex.configureFpga( args[i], forceUpload, bs ) + " ms");
                    System.out.println("FPGA configuration time: " + ztex.configureFpga( args[i], forceUpload, bs ) + " ms");
                }
                }
 
                else if ( args[i].equals("-sf") ) {
 
                    i++;
 
                    int fn=-1;
 
                    try {
 
                        if (i>=args.length)
 
                            throw new Exception();
 
                        fn = Integer.parseInt( args[i] );
 
                    }
 
                    catch (Exception e) {
 
                        System.err.println("Error: Number expected after -sf");
 
                        System.err.println(helpMsg);
 
                        System.exit(1);
 
                    }
 
                    if ( fn >= 0 ) {
 
                        ztex.selectFpga(fn);
 
                    }
 
                }
                else if ( args[i].equals("-re") ) {
                else if ( args[i].equals("-re") ) {
                    ztex.eepromDisable();
                    ztex.eepromDisable();
                }
                }
                else if ( args[i].equals("-ue") ) {
                else if ( args[i].equals("-ue") ) {
                    i++;
                    i++;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.