Skip to content

Instantly share code, notes, and snippets.

@JoshAshby
Created August 13, 2012 04:32
Show Gist options
  • Save JoshAshby/3336990 to your computer and use it in GitHub Desktop.
Save JoshAshby/3336990 to your computer and use it in GitHub Desktop.
module beginner(pin1, pin2, ledpin);
input pin1;
input pin2;
output ledpin;
wire pin1and2 = (pin1 & pin2);
assign ledpin = pin1and2;
endmodule
NET "pin1" LOC = "P84";
NET "pin2" LOC = "P86";
NET "ledpin" LOC = "P17";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment