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/] [debug/] [IcapReadback.java] - Blame information for rev 10

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 peteralieb
/**
2
 *
3
 */
4
package edu.byu.cc.plieber.fpgaenet.debug;
5
 
6
import edu.byu.cc.plieber.fpgaenet.debug.llparse.LatchRBEntry;
7
import edu.byu.cc.plieber.fpgaenet.fcp.FCPException;
8
import edu.byu.cc.plieber.fpgaenet.icapif.IcapTools;
9
import edu.byu.ece.bitstreamTools.configuration.Frame;
10
 
11
/**
12
 * @author Peter Lieber
13
 *
14
 */
15
public class IcapReadback {
16
 
17
        IcapTools icapTools;
18
 
19
        public IcapReadback(IcapTools icapTools) {
20
                this.icapTools = icapTools;
21
        }
22
 
23
        public boolean readState(LatchRBEntry netEntry) throws FCPException {
24
                Frame frame = icapTools.readFrame(netEntry.getFrame());
25
                int bit = frame.getData().getBitReverse(netEntry.getFrameOffset());
26
                return (bit > 0);
27
        }
28
}

powered by: WebSVN 2.1.0

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