Created
August 13, 2012 04:32
-
-
Save JoshAshby/3336990 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module beginner(pin1, pin2, ledpin); | |
input pin1; | |
input pin2; | |
output ledpin; | |
wire pin1and2 = (pin1 & pin2); | |
assign ledpin = pin1and2; | |
endmodule |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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