Forum Discussion
Altera_Forum
Honored Contributor
14 years agoCreating a bidirectional bus
I want to connect a USB chip (FT245R) to a CPLD. To do that I need a bidirectional 8-bit bus. I thought I could declare the pins to be bidirectional and with a mux, read to or write from the pins as ...
Altera_Forum
Honored Contributor
14 years agoYour code from post# 2 can basically work, if USBBUS is declared as inout and all variables assigned in the always block as reg.
Functional detail related to your application are a different thing, but you get legal Verilog syntax as a starting point.