FPGAwars / apio

:seedling: Open source ecosystem for open FPGA boards
https://github.com/FPGAwars/apio/wiki
GNU General Public License v2.0
773 stars 131 forks source link

deactivating gtkwave #337

Closed theogvn closed 3 months ago

theogvn commented 5 months ago

Hey, I'm not using GTKWave and thus have not install it in on my Mac, instead I'm using WaveTrace in VS code. But when I run $ apio sim I constantly get the error sh: gtkwave: command not found would it be possible to add a parameter to sim to deactivate the automatic start up of GTKWave ?

dead-by-noon commented 5 months ago

It's just checking to see if gtkwave is executable, which it shouldn't be, assuming that you don't have it on your Mac. If you wanted to deacticate the automatic startup of GTKWave, you may need to alter the functions of the script that elicit the sim command, or delete it entirely from the commands folder. It seems like there is some indication of the script compiling a list of all the python commands from the commands folder: https://github.com/FPGAwars/apio/blob/b0827f9ee277ca9f900f53e8110048be698cf252/apio/__main__.py#L61

theogvn commented 5 months ago

Yeah that's what I tried to do, but unfortunately I haven't been able to find the piece of code that tries to execute gtkwave from the shell. I think it should be somewhere in the functions called by sim.py but they seem endlesss x). If someone knows ?

Obijuan commented 3 months ago

from apio 0.0.9 there is a new command: apio test (thanks to @zapta ) that is similar to apio sim but without launching gtkwave. Please try it (currently it is in the development branch, but it will be soon releases as a stable version) here you can fin the instructions for installing apio development

zapta commented 3 months ago

Thanks Juan. I have been using the dev branch for some time. Will pull the latest version.

A few notes about the test command:

  1. By default it runs all the testbenches (*_tb.v) while the sim runs just one.

  2. It's intended to be used with assertions that fail the test automatically if something is unexpected. Similar to unit testing of software.

  3. When debugging a failed assertion, it's useful to run the sim command with assertions disabled to examine what's going on. The sim command now defines a macro called INTERACTIVE_SIM that allows the user to disable assertions.

  4. An example for a testbench with assertions is available here https://github.com/FPGAwars/apio-examples/tree/master/upduino31/testbench (you don't need to have an Upduino board to try it)

On Mon, Mar 18, 2024 at 4:16 AM Juan Gonzalez-Gomez < @.***> wrote:

from apio 0.0.9 there is a new command: apio test (thanks to @zapta https://github.com/zapta ) that is similar to apio sim but without launching gtkwave. Please try it (currently it is in the development branch, but it will be soon releases as a stable version) here you can fin the instructions for installing apio development https://github.com/FPGAwars/apio/wiki/Apio-development-version

— Reply to this email directly, view it on GitHub https://github.com/FPGAwars/apio/issues/337#issuecomment-2003639359, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQVMQJWFTFCFTJYWLOH6MLYY3EKRAVCNFSM6AAAAABCM4VOUSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMBTGYZTSMZVHE . You are receiving this because you were mentioned.Message ID: @.***>

Obijuan commented 3 months ago

The stable apio 0.9.2 has been released, with the new apio test command. Please test it and if you find it useful, close this issue

Obijuan commented 3 months ago

I am closing this issue. Please, feel free to reopen it if the problem remains