From 414f3212d11cde6cb1c7f239c321a017e54f357e Mon Sep 17 00:00:00 2001 From: dan Date: Thu, 12 Jan 2023 02:30:26 -0500 Subject: [PATCH] Add git ignore. First part of part 3 tut done. --- .gitignore | 5 +++++ digikey tutorials/part 3/and_gate.pcf | 6 ++++++ digikey tutorials/part 3/and_gate.v | 15 +++++++++++++++ digikey tutorials/part 3/apio.ini | 3 +++ 4 files changed, 29 insertions(+) create mode 100644 .gitignore create mode 100644 digikey tutorials/part 3/and_gate.pcf create mode 100644 digikey tutorials/part 3/and_gate.v create mode 100644 digikey tutorials/part 3/apio.ini 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 +