openasip icon indicating copy to clipboard operation
openasip copied to clipboard

Compiled Simulation: Error found using ttasim-tandem

Open nrother opened this issue 2 years ago • 1 comments

The attached files will produce an error message in ttasim-tandem:

rother@pikachu:~/Documents/TTA/GBP_TTA/tta_test$ ttasim --version
ttasim - TCE Simulator command line interface 1.25-r4248
rother@pikachu:~/Documents/TTA/GBP_TTA/tta_test$ ttasim-tandem baseline.adf test.tpef
SIMULATION ERROR DETECTED (PCs DIFFER)
--------------------------------------
      cycle: 43
 other's PC: 11
   this' PC: 10

The program is a simple copy+sum loop. It works fine using the interpreter, but fails in the compiled version (the output array is empty). So the issue might be related to the memory interaction.

I'm unsure how to debug this further. Is the compiled engine generally considered stable?

nrother avatar Aug 29 '22 11:08 nrother

Compiled engine is much less stable than the interpreted. I think it lacks some features for little endian machines still. The code for the both engines is under src/applibs/Simulator.

pjaaskel avatar Aug 29 '22 13:08 pjaaskel