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

Go to the source code of this file.

Functions

void ensureFramesAre (bool usableFramesOnly, bool testValueEqual, uint32_t testValue)
 

Function Documentation

◆ ensureFramesAre()

void ensureFramesAre ( bool  usableFramesOnly,
bool  testValueEqual,
uint32_t  testValue 
)
inline

Definition at line 18 of file inlineTest.h.

19 {
20  for(int r = 0 ; r < numberOfRows ; r++){
21  for(int c = 0 ; c < numberOfCols[r] ; c++){
22  uint8_t frameLetter = (uint8_t)resourceString[r][c];
23  if(frameLetter <= 1) //don't include the extra frames on each row in the test
24  continue;
25  if(!usableFramesOnly || (!LUT_isFrameUnusedForResourceLetter[frameLetter])){
26  for(int m = 0 ; m < LUT_numberOfFramesForResourceLetter[frameLetter] ; m++){
27  for(int f = 0 ; f < WORDS_PER_FRAME ; f++){
28  if(testValueEqual) {
29  throwingAssertPrintVar_5(bitstreamCLB[r][c][m * WORDS_PER_FRAME + f], ==, testValue, r, c, m, WORDS_PER_FRAME, f);
30  } else {
31  throwingAssertPrintVar_5(bitstreamCLB[r][c][m * WORDS_PER_FRAME + f], !=, testValue, r, c, m, WORDS_PER_FRAME, f);
32  }
33  }
34  }
35  }
36  }
37  for(int c = 0 ; c < numberOfBRAMCols[r] ; c++){
38  for(int m = 0 ; m < FRAMES_PER_BRAM_CONTENT_COLUMN ; m++){
39  for(int f = 0 ; f < WORDS_PER_FRAME ; f++){
40  if(testValueEqual){
41  throwingAssertPrintVar_5(bitstreamBRAM[r][c][m * WORDS_PER_FRAME + f], ==, testValue, r, c, m, WORDS_PER_FRAME, f);
42  } else {
43  throwingAssertPrintVar_5(bitstreamBRAM[r][c][m * WORDS_PER_FRAME + f], !=, testValue, r, c, m, WORDS_PER_FRAME, f);
44  }
45  }
46  }
47  }
48  }
49  log("Test finished successfully.");
50 }
#define throwingAssertPrintVar_5(left, operator,right, var1, var2, var3, var4, var5)
Definition: assert.h:37

References throwingAssertPrintVar_5.

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

Here is the caller graph for this function: