Altera_Forum
Honored Contributor
11 years agoGPIO with both input and output pins
Hi,
I have a DE1 develeopment board with lots of GPIO pins. Currently I use one header for inputs and the other for outputs. But I would like to put them all on the same header. When I try to set them up in the top level module (I am using verilog) I get the error Error (10134): Verilog HDL Module Declaration error at TopLevel: port "GPIO_1" is declared more than once This is when the code looks something like: module TopLevel (GPIO_1); input [1:0] GPIO_1; output [3:2] GPIO_1; Stuff goes here; endmodule This seems like a really simple question to me but I don't know what the solution is. I don't want/need bi directional pins I just want some to be inputs and some to be outputs from the same header. Please let me know if you know what to do to fix this. Thanks Deep