Koheron / koheron-sdk

SDK for FPGA / Linux Instruments
https://www.koheron.com/software-development-kit/
Other
100 stars 40 forks source link

how to assign exp_io_4_n pin as output pin #550

Open v-shetty opened 2 years ago

v-shetty commented 2 years ago

i would like to turn ON a LED by connecting to exp_io_4_n pin.

but in the example given, (ADC_DAC BRAM) , exp_io_4_n is by default input pin.

do i have to change xdc file to change the property of a pin?

tvanderbruggen commented 2 years ago

In boards/alpha250/starting_point.tcl, the p lines are defined as inputs and the n lines as outputs:

for {set i 0} {$i < 8} {incr i} {
  create_bd_port -dir I exp_io_${i}_p
  create_bd_port -dir O exp_io_${i}_n
}

This is not modified in the adc-dac-bram design block diagram, so exp_io_4_n should already be an output.

What makes you think exp_io_4_n is an input ?