Add git ignore. First part of part 3 tut done.
This commit is contained in:
6
digikey tutorials/part 3/and_gate.pcf
Normal file
6
digikey tutorials/part 3/and_gate.pcf
Normal file
@@ -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
|
||||
15
digikey tutorials/part 3/and_gate.v
Normal file
15
digikey tutorials/part 3/and_gate.v
Normal file
@@ -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
|
||||
3
digikey tutorials/part 3/apio.ini
Normal file
3
digikey tutorials/part 3/apio.ini
Normal file
@@ -0,0 +1,3 @@
|
||||
[env]
|
||||
board = icestick
|
||||
|
||||
Reference in New Issue
Block a user