Skip to content

Instantly share code, notes, and snippets.

@gibiansky
Created November 25, 2012 06:15
Show Gist options
  • Save gibiansky/4142578 to your computer and use it in GitHub Desktop.
Save gibiansky/4142578 to your computer and use it in GitHub Desktop.
Verilog Module Declaration
// Our input and output signals are all one bit.
// We could make them more than one bit; the only
// thing that would change is we would have to write
// e.g "input [0:N] a" instead of "input a".
module mux(input a, input b, input select, output out);
// Verilog code goes here
endmodule
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment