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/] [llparse/] [RBEntry.java] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 peteralieb
/*
2
@LICENSE@
3
*/
4
 
5
package edu.byu.cc.plieber.fpgaenet.debug.llparse;
6
import java.lang.String;
7
 
8
/**
9
 * The base class for storing Virtex2 readback bitstream offset
10
 * information from the Xilinx Logical Allocation (<code>.ll</code>)
11
 * file.
12
 *
13
 * @author Paul Graham  */
14
public class RBEntry {
15
 
16
  /** The offset to a "junk" bit in the Virtex2 bitstream. */
17
  int offset;
18
  /** The readback bitstream frame for the state data bit. */
19
  int frame;
20
  /** The readback bitstream frame offset for the state data bit. */
21
  int frameOffset;
22
  /**
23
   * The location of the block (IOB, slice, BlockRAM) containing the
24
   * state data. */
25
  String block;
26
 
27
  /**
28
   * Constructs an object based on the readback bitstream parameters
29
   * available from the <code>.ll</code> file.
30
   *
31
   * @param new_offset The "junk" offset provided by the
32
   *                   <code>.ll</code> file.
33
   *
34
   * @param new_frame The frame number of the state bit in the
35
   *                  readback bitstream.
36
   *
37
   * @param new_frameOffset The frame offset of the state bit in the
38
   *                        readback bitstream.
39
   *
40
   * @param new_block The physical location of the block containing
41
   *                  the state element (C21, CLB_R8C55.S1,
42
   *                  RAMB4_R4C1). */
43
  RBEntry(int new_offset, int new_frame, int new_frameOffset,
44
          String new_block) {
45
    offset = new_offset;
46
    frame = new_frame;
47
    frameOffset = new_frameOffset;
48
    block = new_block;
49
  }
50
 
51
  /**
52
   * Returns the offset for the "junk" bit in the Virtex2 bitstream.
53
   *
54
   * @return The offset for the "junk" bit in the Virtex2 bitstream. */
55
  public int getOffset() {
56
    return offset;
57
  }
58
 
59
  /**
60
   * Returns the readback bitstream frame for the state data bit.
61
   *
62
   * @return The readback bitstream frame for the state data bit.  */
63
  public int getFrame() {
64
    return frame;
65
  }
66
 
67
  /**
68
   * Returns the readback bitstream frame offset for the state data
69
   * bit.
70
   *
71
   * @return The readback bitstream frame offset for the state data
72
   *         bit.  */
73
  public int getFrameOffset() {
74
    return frameOffset;
75
  }
76
 
77
  /**
78
   * Returns the location of the block containing the state data.
79
   *
80
   * @return The location of the block containing the state data. */
81
  String getBlock() {
82
    return block;
83
  }
84
 
85
}
86
 

powered by: WebSVN 2.1.0

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