FPGAwars / apio

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

Added an apio test command. #352

Closed zapta closed 4 months ago

zapta commented 4 months ago

This PR adds the apio test command to simulate all the testbenches.

Notes in an arbitrary order:

`define EXPECT(signal, value) \
    if (signal !== value) begin \
        $display("ASSERTION FAILED in %m: signal != value"); \
        `ifndef INTERACTIVE_SIM \
             $fatal; \
        `endif \
    end

EDIT: I am not familiar with verilog assertions. If there are more comment way to assert and to control assertions, please let me know and I will change the INTERACTIVE_SIM mechanism to something else in a followup PR.

Obijuan commented 4 months ago

Thanks! You are on fire! 🔥🔥😃

zapta commented 4 months ago

I like apio. It makes everything simple, ike platformio. I develop my verilog project using the apio dev branch.

On Thu, Feb 22, 2024 at 11:34 PM Juan Gonzalez-Gomez < @.***> wrote:

Thanks! You are on fire! 🔥🔥😃

— Reply to this email directly, view it on GitHub https://github.com/FPGAwars/apio/pull/352#issuecomment-1960854013, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQVMQL6XDJGQJINHXR3FNLYVBBA5AVCNFSM6AAAAABDWB3V3KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRQHA2TIMBRGM . You are receiving this because you authored the thread.Message ID: @.***>