|
torc-master
|
Bitstream packet for Spartan class architectures. More...
#include <SpartanPacket.hpp>
Inheritance diagram for torc::bitstream::SpartanPacket:
Collaboration diagram for torc::bitstream::SpartanPacket:Public Types | |
| enum | EPacketType { ePacketType1 = 1, ePacketType2, ePacketTypeCount = 8 } |
| Packet type enumeration. More... | |
| enum | EOpcode { eOpcodeNOP = 0, eOpcodeRead, eOpcodeWrite, eOpcodeReserved, eOpcodeCount } |
| Packet opcode enumeration. More... | |
| enum | EPacket { ePacketMaskType = 0xe0000000, ePacketShiftType = 29, ePacketMaskOpcode = 0x18000000, ePacketShiftOpcode = 27, ePacketMaskType1Address = 0x07ffe000, ePacketShiftType1Address = 13, ePacketMaskType1Reserved = 0x00001800, ePacketShiftType1Reserved = 11, ePacketMaskType1Count = 0x000007ff, ePacketShiftType1Count = 0, ePacketMaskType2Count = 0x07ffffff, ePacketShiftType2Count = 0 } |
| Packet subfields. More... | |
| enum | ESynchronization { eSynchronizationDummy = 0xffffffff, eSynchronizationSync = 0xaa995566, eSynchronizationBusWidthSync = 0x000000bb, eSynchronizationBusWidthDetect = 0x11220044 } |
| Synchronization words. More... | |
Public Member Functions | |
| SpartanPacket (void) | |
| Null constructor. More... | |
| SpartanPacket (uint32_t inHeader, uint32_t inCount, uint32_t inWord, uint32_t *inWords) | |
| Full constructor. More... | |
| SpartanPacket (uint32_t inHeader, uint32_t inWord) | |
| Header plus single word constructor. More... | |
| SpartanPacket (uint32_t inHeader) | |
| Header only constructor. More... | |
| SpartanPacket (const SpartanPacket &rhs) | |
| Copy constructor. More... | |
| void | write (std::ostream &inStream) const |
| Write a packet. More... | |
| uint32_t | operator[] (size_t inIndex) const |
| EPacketType | getType (void) const |
| EOpcode | getOpcode (void) const |
| int | getAddress (void) const |
| uint32_t | getHeader (void) const |
| uint32_t | getWordCount (void) const |
| Returns the number of payload words in the packet, excluding the header word. More... | |
| uint32_t | getWordSize (void) const |
| Returns the total number of words in the packet, including the header word. More... | |
| bool | isType1 (void) const |
| bool | isType2 (void) const |
| bool | isNop (void) const |
| bool | isReserved (void) const |
| bool | isRead (void) const |
| bool | isWrite (void) const |
| bool | isDummyWord (void) const |
| bool | isSyncWord (void) const |
| bool | isBusWidthSyncWord (void) const |
| bool | isBusWidthDetectWord (void) const |
Static Public Member Functions | |
| static SpartanPacket | read (std::istream &inStream) |
| Read a packet. More... | |
| static SpartanPacket | makeNullType1Write (uint32_t inAddress) |
| Construct a null type 1 write packet. More... | |
| static SpartanPacket | makeType1Write (uint32_t inAddress, uint32_t inWord) |
| Construct a type 1 write packet. More... | |
| static SpartanPacket | makeType2Write (uint32_t inCount, uint32_t *inWords) |
| Construct a type 2 write packet. More... | |
| static uint32_t | makeHeader (EPacketType inType, EOpcode inOpcode, uint32_t inAddress, uint32_t inCount) |
| Construct a packet header. More... | |
Data Fields | |
| uint32_t | mHeader |
| uint32_t | mCount |
| uint32_t | mWord |
| WordSharedArray | mWords |
| EPacketType | mType |
| EOpcode | mOpcode |
| int | mAddress |
Static Public Attributes | |
| static const char * | sPacketTypeName [ePacketTypeCount] |
| Packet type names. More... | |
| static const char * | sOpcodeName [eOpcodeCount] |
| Packet opcode names. More... | |
Protected Types | |
| typedef boost::uint32_t | uint32_t |
| Imported type name. More... | |
| typedef boost::shared_array < uint32_t > | WordSharedArray |
| Word shared array type. More... | |
Protected Member Functions | |
| void | initialize (void) |
Friends | |
| class | torc::bitstream::bitstream::SpartanPacketUnitTest |
Bitstream packet for Spartan class architectures.
Definition at line 69 of file SpartanPacket.hpp.
|
protected |
Imported type name.
Definition at line 74 of file SpartanPacket.hpp.
|
protected |
Word shared array type.
Definition at line 76 of file SpartanPacket.hpp.
|
inherited |
Packet opcode enumeration.
| Enumerator | |
|---|---|
| eOpcodeNOP | |
| eOpcodeRead | |
| eOpcodeWrite | |
| eOpcodeReserved | |
| eOpcodeCount | |
Definition at line 42 of file SpartanPacket.hpp.
|
inherited |
Packet subfields.
Definition at line 46 of file SpartanPacket.hpp.
|
inherited |
Packet type enumeration.
| Enumerator | |
|---|---|
| ePacketType1 | |
| ePacketType2 | |
| ePacketTypeCount | |
Definition at line 39 of file SpartanPacket.hpp.
|
inherited |
Synchronization words.
| Enumerator | |
|---|---|
| eSynchronizationDummy | |
| eSynchronizationSync | |
| eSynchronizationBusWidthSync | |
| eSynchronizationBusWidthDetect | |
Definition at line 60 of file SpartanPacket.hpp.
|
inline |
Null constructor.
Definition at line 101 of file SpartanPacket.hpp.
Here is the caller graph for this function:
|
inline |
Full constructor.
Definition at line 104 of file SpartanPacket.hpp.
Here is the call graph for this function:Header plus single word constructor.
Definition at line 110 of file SpartanPacket.hpp.
Here is the call graph for this function:
|
inline |
Header only constructor.
Definition at line 115 of file SpartanPacket.hpp.
Here is the call graph for this function:
|
inline |
Copy constructor.
Definition at line 120 of file SpartanPacket.hpp.
Here is the call graph for this function:
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Returns the number of payload words in the packet, excluding the header word.
Definition at line 240 of file SpartanPacket.hpp.
Here is the caller graph for this function:
|
inline |
Returns the total number of words in the packet, including the header word.
Definition at line 242 of file SpartanPacket.hpp.
Here is the caller graph for this function:
|
inlineprotected |
Definition at line 78 of file SpartanPacket.hpp.
Here is the caller graph for this function:
|
inline |
Definition at line 254 of file SpartanPacket.hpp.
|
inline |
Definition at line 253 of file SpartanPacket.hpp.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 246 of file SpartanPacket.hpp.
|
inline |
|
inlinestatic |
Construct a packet header.
Definition at line 209 of file SpartanPacket.hpp.
Here is the caller graph for this function:
|
inlinestatic |
Construct a null type 1 write packet.
A type 1 write packet to the FDRI register is generally only useful to specify the current register in preparation for a type 2 write. The type 2 write header includes a size but specifies no target register, hence the prior null type 1 packet.
Definition at line 187 of file SpartanPacket.hpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
Construct a type 1 write packet.
Definition at line 191 of file SpartanPacket.hpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
Construct a type 2 write packet.
Definition at line 196 of file SpartanPacket.hpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 228 of file SpartanPacket.hpp.
|
inlinestatic |
Read a packet.
Definition at line 127 of file SpartanPacket.hpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Write a packet.
Definition at line 175 of file SpartanPacket.hpp.
Here is the call graph for this function:
|
friend |
Definition at line 70 of file SpartanPacket.hpp.
| int torc::bitstream::SpartanPacket::mAddress |
Definition at line 93 of file SpartanPacket.hpp.
| uint32_t torc::bitstream::SpartanPacket::mCount |
Definition at line 88 of file SpartanPacket.hpp.
| uint32_t torc::bitstream::SpartanPacket::mHeader |
Definition at line 87 of file SpartanPacket.hpp.
| EOpcode torc::bitstream::SpartanPacket::mOpcode |
Definition at line 92 of file SpartanPacket.hpp.
| EPacketType torc::bitstream::SpartanPacket::mType |
Definition at line 91 of file SpartanPacket.hpp.
| uint32_t torc::bitstream::SpartanPacket::mWord |
Definition at line 89 of file SpartanPacket.hpp.
| WordSharedArray torc::bitstream::SpartanPacket::mWords |
Definition at line 90 of file SpartanPacket.hpp.
|
static |
Packet opcode names.
Definition at line 97 of file SpartanPacket.hpp.
|
static |
Packet type names.
Definition at line 95 of file SpartanPacket.hpp.