Skip to content

Instantly share code, notes, and snippets.

@ScienceElectronicsFun
Created November 7, 2021 16:05
Show Gist options
  • Save ScienceElectronicsFun/19df6d14c0b478b6e998742703e33616 to your computer and use it in GitHub Desktop.
Save ScienceElectronicsFun/19df6d14c0b478b6e998742703e33616 to your computer and use it in GitHub Desktop.
Spartan 7 demo code
module top(
input button1,
input button2,
input button3,
input button4,
output led1,
output led2
);
assign led1 = button1 & button2 & button3 & button4;
assign led2 = button1 | button2 | button3 | button4;
endmodule
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment