Verilog

From bibbleWiki
Revision as of 00:59, 21 January 2023 by Iwiseman (talk | contribs) (Created page with "=Introduction= Dipping my toe into this now I own an fpga =Hello World= This is the first program <syntaxhighlight lang="v"> module and_gate ( // inputs input pmod_0, input pmod_1, // Outputs output led_0 ); assign led_0 = ~pmod_0 & ~pmod_1; endmodule </syntaxhighlight>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Introduction

Dipping my toe into this now I own an fpga

Hello World

This is the first program

module and_gate (
    // inputs
    input   pmod_0,
    input   pmod_1,

    // Outputs
    output  led_0
);

    assign led_0 = ~pmod_0 & ~pmod_1;
    
endmodule