Enum Class FPGALinkRegisters
- All Implemented Interfaces:
Serializable
,Comparable<FPGALinkRegisters>
,Constable
FPGA registers within a register bank.
- Author:
- Donal Fellows
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionPacket dispatcher busy counter.Local channel flow control status.Remote channel flow control status.CRC error counter.Credit.Frame disassembler valid frame counter.Empty frame assembler queues.Frame error counter.Full frame assembler queues.Handshake.IDle Sentinel Input value.IDle Sentinel Output value.Local ack'd frame counter.Local nack'd frame counter.Local out-of-credit counter.Remote ack counter.Link reconnection (re-handshake) counter.Packet dispatcher valid received frame counter.Remote nack counter.Remote out-of-credit counter.Frame assembler valid sent frame counter.1 = Stop sending data frames.Frame transmitter frame counter.Version. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The base addresses of register banks are all multiples of this.final int
The offset of the register within the bank of registers.final int
Size of register, in bits.final boolean
Whether this is a writable register. -
Method Summary
Modifier and TypeMethodDescriptionaddress
(int registerBank) Compute the address of the register in a particular register bank.static FPGALinkRegisters
Returns the enum constant of this class with the specified name.static FPGALinkRegisters[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
VERS
Version. {top 24: Module, bottom 8: Protocol} -
CRCE
CRC error counter. -
FRME
Frame error counter. -
BUSY
Packet dispatcher busy counter. -
LNAK
Local nack'd frame counter. -
RNAK
Remote nack counter. -
LACK
Local ack'd frame counter. -
RACK
Remote ack counter. -
LOOC
Local out-of-credit counter. -
ROOC
Remote out-of-credit counter. -
CRDT
Credit. -
SFRM
Frame assembler valid sent frame counter. -
TFRM
Frame transmitter frame counter. -
DFRM
Frame disassembler valid frame counter. -
RFRM
Packet dispatcher valid received frame counter. -
EMPT
Empty frame assembler queues. -
FULL
Full frame assembler queues. -
CFCL
Local channel flow control status. -
CFCR
Remote channel flow control status. -
IDSO
IDle Sentinel Output value. (Sent in idle frames.) -
IDSI
IDle Sentinel Input value. (Latest received) -
HAND
Handshake. {bit 1: version err, bit 0: complete} -
RECO
Link reconnection (re-handshake) counter. -
STOP
1 = Stop sending data frames. (NB: Will still receive them)
-
-
Field Details
-
BANK_OFFSET_MULTIPLIER
public static final int BANK_OFFSET_MULTIPLIERThe base addresses of register banks are all multiples of this.- See Also:
-
offset
public final int offsetThe offset of the register within the bank of registers. -
writable
public final boolean writableWhether this is a writable register. -
size
public final int sizeSize of register, in bits.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
address
Compute the address of the register in a particular register bank.- Parameters:
registerBank
- Which register bank. Must be 0, 1, or 2.- Returns:
- The address in the FPGA's address space.
- Throws:
IllegalArgumentException
- If a bad register bank is given.
-