leonardt / fault

A Python package for testing hardware (part of the magma ecosystem)
BSD 3-Clause "New" or "Revised" License
41 stars 13 forks source link

Print Doesn't Emit stdout When Running From Terminal #161

Closed David-Durst closed 5 years ago

David-Durst commented 5 years ago

The file will emit the following output (among other output) when run in my IDE.

Running command: ./obj_dir/VModule_1
<STDOUT>
clk: 0
clk: 1
</STDOUT>
<STDERR>

Got      : 0x0
Expected : 0x2
i        : 8
Port     : Module_1.O
</STDERR>

I believe this is written to stdout.

However, when I run the file from the command line with command python ae_circuit12687-33.py, I don't get this part of the output. I only get the output written to stderr.

Am I running it wrong?

sgherbst commented 5 years ago

Hi David, thanks for reporting this. I just checked out the aetherling repo and tried running python ae_circuit12687-33.py in the directory aetherling/aetherling/examples. Unfortunately I can't replicate the error -- here's what I see.

Running command: ./obj_dir/VModule_1
<STDOUT>
clk: 0
clk: 1
</STDOUT>
<STDERR>

Got      : 0x0
Expected : 0x2
i        : 8
Port     : Module_1.O
</STDERR>
Found 1 error(s):
1) Got return code 1.

More information:

David-Durst commented 5 years ago

My apologies. The issues was due to an old fault version. I have multiple virtual environments on my laptop. My shell's environment still had fault 2.0.15 from PyPI while my IDE's environment has the latest fault from source.