cpc / openasip

Open Application-Specific Instruction Set processor tools (OpenASIP)
http://openasip.org
Other
140 stars 42 forks source link

Compiled Simulation: Error found using ttasim-tandem #176

Open nrother opened 2 years ago

nrother commented 2 years ago

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?

pjaaskel commented 2 years ago

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.