example_app: add dramsim_test to .gitignore

Signed-off-by: Emilio G. Cota <cota@braap.org>
gitignore: add *.deppo

Signed-off-by: Emilio G. Cota <cota@braap.org>
TraceBasedSim: remove unused variable 'dramsim_logfile'

Signed-off-by: Emilio G. Cota <cota@braap.org>
PrintMacros: add missing include of <iostream>

The header file should be safely included even if there are
no other previously included header files. Fix it.

Signed-off-by: Emilio G. Cota <cota@braap.org>
PrintMacros: define SHOW_SIM_OUTPUT as weak symbol

When linking against libdramsim, library users have to define
SHOW_SIM_OUTPUT in order to avoid linking errors.

Fix it by emitting a weak version of the symbol. In case of the
DRAMSim tool, this weak symbol is overruled by the (strong) symbol
in the TraceBasedSim object.

Library users can optionally overrule the weak symbol, which means
that

a) New users of the library just won't have to worry about this,
   since they won't see an error at link time. They'll still be
   able to enable output by defining a strong symbol.

b) Existing users of the library will probably have already set
   a strong symbol, which will overrule the weak symbol we define
   here, and thus everything will work as before.

Signed-off-by: Emilio G. Cota <cota@braap.org>
Makefile: do not include TraceBasedSim object in library

This object should only be part of the DRAMSim executable.
Fix it.

Signed-off-by: Emilio G. Cota <cota@braap.org>
Makefile: build static library with libdramsim.a

Signed-off-by: Emilio G. Cota <cota@braap.org>