OpenCores
URL https://opencores.org/ocsvn/fpga-cf/fpga-cf/trunk

Subversion Repositories fpga-cf

[/] [fpga-cf/] [trunk/] [java/] [src/] [edu/] [byu/] [cc/] [plieber/] [fpgaenet/] [examples/] [SignalMonitor.java] - Diff between revs 2 and 7

Show entire file | Details | Blame | View Log

Rev 2 Rev 7
Line 73... Line 73...
        }
        }
 
 
        private void setupConnections() {
        private void setupConnections() {
                try {
                try {
                        fcpProtocol = new FCPProtocol();
                        fcpProtocol = new FCPProtocol();
                        fcpProtocol.connect(InetAddress.getByName("192.168.1.222"), 0x3001);
                        fcpProtocol.connect(InetAddress.getByName("10.0.1.42"), 0x3001);
                } catch (IOException e) {
                } catch (IOException e) {
                        return;
                        return;
                }
                }
                icapif = new IcapInterface(fcpProtocol);
                icapif = new IcapInterface(fcpProtocol);
                icapTools = new IcapTools(icapif);
                icapTools = new IcapTools(icapif);
                icapReadback = new IcapReadback(icapTools);
                icapReadback = new IcapReadback(icapTools);
                while(!fcpProtocol.isConnected());
                while(!fcpProtocol.isConnected());
 
                try {
                icapTools.synchIcap();
                icapTools.synchIcap();
 
                } catch (FCPException e) {
 
                        // TODO Auto-generated catch block
 
                        e.printStackTrace();
 
                }
        }
        }
 
 
        private void createActions() {
        private void createActions() {
                openLL = new QAction(tr("&Open LL File"), this);
                openLL = new QAction(tr("&Open LL File"), this);
                openLL.setShortcut(tr("Ctrl+O"));
                openLL.setShortcut(tr("Ctrl+O"));
Line 142... Line 147...
        }
        }
 
 
        protected void openLL() {
        protected void openLL() {
                String fName = QFileDialog.getOpenFileName(this, tr("Open LL File"), "", new QFileDialog.Filter(
                String fName = QFileDialog.getOpenFileName(this, tr("Open LL File"), "", new QFileDialog.Filter(
                                tr("LL Files (*.ll *.LL)")));
                                tr("LL Files (*.ll *.LL)")));
 
                if (fName == null || fName.compareTo("") == 0) return;
                LogicalMapping llMapping = new LogicalMapping(fName);
                LogicalMapping llMapping = new LogicalMapping(fName);
                netListModel = new NetListModel(llMapping);
                netListModel = new NetListModel(llMapping);
                listProxyModel = new QSortFilterProxyModel(this);
                listProxyModel = new QSortFilterProxyModel(this);
                listProxyModel.setSourceModel(netListModel);
                listProxyModel.setSourceModel(netListModel);
                listProxyModel.sort(0);
                listProxyModel.sort(0);

powered by: WebSVN 2.1.0

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