19 #ifndef TORC_BITSTREAM_SPARTAN6_HPP
20 #define TORC_BITSTREAM_SPARTAN6_HPP
22 #include <boost/cstdint.hpp>
28 namespace bitstream {
class Spartan6UnitTest; }
144 if(diffMajBlock)
return diffMajBlock < 0;
146 if(diffMajRow)
return diffMajRow < 0;
171 if(diffMinBlock)
return diffMinBlock < 0;
185 #endif // TORC_BITSTREAM_SPARTAN6_HPP
static const char * sCommandName[eCommandCount]
Configuration command names.
Header for the Spartan6Bitstream class.
static const char * sOpcodeName[eOpcodeCount]
Packet opcode names.
FrameMajorAddress(uint16_t inMajAddress)
void assign(uint16_t inMajAddress)
static const Subfield sMASK[]
Control Mask Register (MASK) subfields.
static const Subfield sCOR2[]
Configuration Options Register 2 (COR2) subfields.
bool operator<(const FrameMajorAddress &rhs) const
EFarMin
Frame Address Register Minor subfields.
static const Subfield sCTL[]
Control Register 0 (CTL0) subfields.
static const Subfield sMODE_REG[]
Mode Register (Mode) subfields.
boost::uint16_t uint16_t
Imported type name.
EFarMaj
Frame Address Register Major subfields.
boost::uint32_t uint32_t
Imported type name.
static uint16_t makeSubfield(ERegister inRegister, const std::string &inSubfield, const std::string &inSetting)
Return the masked value for a subfield of the specified register.
static const char * sRegisterName[eRegisterCount]
Configuration register names.
FrameMinorAddress(uint16_t inMinBlock, uint16_t inMinMinor)
virtual uint32_t getFrameLength(void) const
Return the frame length for the current device.
FrameMajorAddress(uint16_t inMajBlock, uint16_t inMajRow, uint16_t inMajMajor)
static const char * sPacketTypeName[ePacketTypeCount]
Packet type names.
static const Subfield sHC_OPT_REG[]
HC_OPT_REG Register (PWRDN_REG) subfields.
static const Subfield sSEU_OPT[]
SEU_OPT Register (SEU_OPT) subfields.
friend std::ostream & operator<<(std::ostream &os, const Spartan6 &rhs)
Insert the bitstream header into an output stream.
static const Subfield sCOR1[]
Configuration Options Register 1 (COR1) subfields.
bool operator<(const FrameMinorAddress &rhs) const
bool operator==(const FrameMajorAddress &rhs) const
ERegister
Configuration register enumeration.
static const Subfield sBOOSTS[]
BOOSTS Register (BOOSTS) subfields.
ECommand
Configuration command enumeration for eRegisterCMD.
static const Subfield sSTAT[]
Status Register (STAT) subfields.
void assign(uint16_t inMinAddress)
boost::uint16_t uint16_t
Imported type name.
friend class torc::bitstream::bitstream::Spartan6UnitTest
bool operator==(const FrameMinorAddress &rhs) const
static const Subfield sPWRDN_REG[]
Suspend Register (PWRDN_REG) subfields.
EFarBlockType
Frame Address Register top and bottom constants.
FrameMinorAddress(uint16_t inMinAddress)