byteman  1.3 (Build #225)
Bitstream relocation and manipulation tool
Functions
inlineAssembly.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void assemblyOutputData (std::ifstream &fin, std::ofstream &fout, std::streamoff sizeInBytes)
 

Function Documentation

◆ assemblyOutputData()

void assemblyOutputData ( std::ifstream &  fin,
std::ofstream &  fout,
std::streamoff  sizeInBytes 
)
inline

Definition at line 17 of file inlineAssembly.h.

18 {
19  std::streamoff numOfWords = sizeInBytes/(std::streamoff)4;
20  for(std::streamoff i = 0 ; i < numOfWords ; i++){
21  uint32_t aWord = FileIO::read32(fin, loadedBitstreamEndianness);
22  fout << ".word " << "0x" << std::uppercase << std::hex << std::setw(8) << std::setfill('0') << aWord << std::endl;
23  }
24  std::streamoff numOfBytes = sizeInBytes % (std::streamoff)4;
25  for(std::streamoff i = 0 ; i < numOfBytes ; i++){
26  uint8_t aByte = FileIO::read32(fin, loadedBitstreamEndianness);
27  fout << ".byte " << "0x" << std::uppercase << std::hex << std::setw(2) << std::setfill('0') << aByte << std::endl;
28  }
29 }
uint32_t read32(std::ifstream &fin, Endianness e=Endianness::NATIVE)
Definition: FileIO.h:131

References FileIO::read32().

Referenced by XilinxSeries7::disassemblerToAsm(), XilinxUltraScale::disassemblerToAsm(), and XilinxUltraScalePlus::disassemblerToAsm().

Here is the call graph for this function:
Here is the caller graph for this function: