Altera_Forum
Honored Contributor
11 years agobutton with fpga pull up, gnd
I connected push button to gpio_1 pins on Altera DE2 board.
In verilog code I assigned one button pin 'r' as ouput to gnd, another pin 'c' inout tri1 (pull up). I want to make inverter for 'c' to drive any of DE2 onboard LEDS, when button pressed LED would lit. module link_klavos2 (q, c, r ); output q; inout tri1 c; output r; supply0 gnd; assign r = gnd; assign q = ~c; endmodule In Aldec-HDL environment I got compiled, but in Quartus it wont synthesize, error: Error (10664): Bidirectional port "GPIO_1[35]" at main3.v(35) directly or indirectly feeds itself