diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..edebc20 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +*\hardware.json +*.history +*.bin +*.asc +*.dblite \ No newline at end of file diff --git a/digikey tutorials/part 3/and_gate.pcf b/digikey tutorials/part 3/and_gate.pcf new file mode 100644 index 0000000..776763b --- /dev/null +++ b/digikey tutorials/part 3/and_gate.pcf @@ -0,0 +1,6 @@ +#LEDs +set_io led_0 99 + +#PMOD I/0 +set_io -pullup yes pmod_0 78 +set_io -pullup yes pmod_1 79 \ No newline at end of file diff --git a/digikey tutorials/part 3/and_gate.v b/digikey tutorials/part 3/and_gate.v new file mode 100644 index 0000000..a3ea808 --- /dev/null +++ b/digikey tutorials/part 3/and_gate.v @@ -0,0 +1,15 @@ +// Modeule: when buttons 1 and 2 are pressed, turn on LED + +module and_gate ( + // Inputs + input pmod_0, + input pmod_1, + + // Outputs + output led_0 +); + + // Continuous assignment: not and and operators + assign led_0 = ~pmod_0 & ~pmod_1; + +endmodule \ No newline at end of file diff --git a/digikey tutorials/part 3/apio.ini b/digikey tutorials/part 3/apio.ini new file mode 100644 index 0000000..1faba9f --- /dev/null +++ b/digikey tutorials/part 3/apio.ini @@ -0,0 +1,3 @@ +[env] +board = icestick +