26 using namespace torc::bitstream;
27 using namespace torc::physical;
43 initializeFullFrameBlocks();
47 updateFullFrameBlocks();
57 SiteIndex siteIndex = mSites.findSiteIndex(siteName);
58 const Site& site = mSites.getSite(siteIndex);
62 return initializeFrameDataForTile(tileIndex);
68 uint32_t blockIndex) {
69 int32_t numSetBits = bitAddresses.size();
74 if(!frameSet.empty()) {
75 for(
int i = 0; i < numSetBits; i++) {
76 uint32_t bitAddr = bitAddresses[i];
77 int32_t bitIndex = bitAddr & 0x000000FF;
78 int32_t wordIndex = (bitAddr & 0x0000FF00) >> 8;
80 wordIndex += mCurrWordOffset;
81 int32_t frameIndex = (bitAddr & 0xFFFF0000) >> 16;
88 if(mMergeMode == eSet) {
89 currentWord = (1 << (bitIndex)) | currentWord;
90 }
else if(mMergeMode == eClear) {
91 currentWord = ((1 << (bitIndex)) ^ 0xFFFFFFFF) & currentWord;
93 virtexFrame->setWord(wordIndex, currentWord);
98 std::cout <<
"WARNING: Unknown frame type." << std::endl;
Encapsulation of a tile index in an unsigned 32-bit integer.
torc::physical::DesignSharedPtr DesignSharedPtr
Imported type name.
Header for the DirectoryTree class.
Main torc::bitstream namespace header.
void convertXdlToBitstream(DesignSharedPtr inDesignPtr, Bitstream &outBitstream, const Sites &sites, const Tiles &tiles, TiletypeElementMap &library)
virtual void mergeWithBaseBitstream(const std::vector< uint32_t > &bitAddresses, uint32_t blockIndex)
Merge compressed micro-bitstream with base bitstream.
Encapsulation of a device logic site.
Main torc::physical namespace header.
boost::filesystem::path path
Imported type name.
TileIndex getTileIndex(void) const
Returns the index of the containing tile.
virtual int generateBitstream(DesignSharedPtr inDesignPtr, const path inTargetBitstreamPath, EMergeMode inMergeMode=eSet, path baseBitstreamPath=path())
Function to generate bitstream, takes target bitstream path and optional base bitstream path...
boost::shared_ptr< VirtexFrame > VirtexFrameSharedPtr
Virtex frame type.
Definition of base Virtex class to implement functions common across all/some Virtex architectures...
Encapsulation of a site index in an unsigned 32-bit integer.
virtual void initializeFrameDataForSite(const std::string &siteName)
Store frame blocks and bit offset for given site.
virtual int generateBitstream(DesignSharedPtr inDesignPtr, const path inTargetBitstreamPath, EMergeMode inMergeMode=eSet, path baseBitstreamPath=path())
Function to generate bitstream to be called by user.
Header for the DDB class.
WORD_TYPE word_t
Frame word type.