I am beginner in Altera DE2-115. I am asked to make a project using Verilog language. My idea was connect an infrared sensor and if it is cut with something, a buzzer starts.
The infra has 3 connections: ground , vcc , signal
and the buzzer: vcc and signal
So, for example, if I connect signal1 of infra in to pin 9 and pin 10 for buzzer signal ... all I know is infra has output 0 or 1, so if it is 0, the buzzer should start; if it is 1, the buzzer should stop.
I can code it in C, but I don't know how to code this in Verilog, so I need a code for this idea in Verilog.