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] - Rev 2
Compare with Previous | Blame | View Log
/** * */ package edu.byu.cc.plieber.fpgaenet.debug; import edu.byu.cc.plieber.fpgaenet.debug.llparse.LatchRBEntry; import edu.byu.cc.plieber.fpgaenet.fcp.FCPException; import edu.byu.cc.plieber.fpgaenet.icapif.IcapTools; import edu.byu.ece.bitstreamTools.configuration.Frame; /** * @author Peter Lieber * */ public class IcapReadback { IcapTools icapTools; public IcapReadback(IcapTools icapTools) { this.icapTools = icapTools; } public boolean readState(LatchRBEntry netEntry) throws FCPException { Frame frame = icapTools.readFrame(netEntry.getFrame()); int bit = frame.getData().getBitReverse(netEntry.getFrameOffset()); return (bit > 0); } }