Currently I'm working on a project using a MKR Vidor 4000, but I come across a doubt.
If I want to send data from the FPGA to the Atmel chip, or from the Atmel chip to the FPGA using the digital pins that both devices share, how should I declare this pins direction?
IE, if I write a digital value using the Atmel for the FPGA to read it, how should I declare the pins on both the Arduino IDE code, and the Verilog description? Looking to avoid damaging any device.
Should I declare the pin as output in the atmel and as a input on the FPGA, or as inout port on both of them (if that's even possible)?