Altera_Forum
Honored Contributor
18 years agoswitching Bidirectional I/Os in FPGA
Hi,
My project requires switching of SDRAM control and data signals between two DSP processors. Well, both the processors have their own SDRAM controller and signals. The Cyclone II FPGA is used to switch the SDRAM between the two processors. Under default conditions, processor1 will have control of the SDRAM. Under certain conditions, processor two will take control. Its more like shared memory between 2 processors. I've managed to switch the address and control lines of the SDRAM between the two processors, but the data bus poses a problem. Since it is a bidirectional bus (I/O), just a simple multiplexing logic does not suffice. The simulation results show that the data from the processors is not getting routed. The output is always unknown X. This is with the simple multiplex logic using a control signal. I need to connect the data bus between the two processors so that data can flow in both ways...input and output. Could any one give me some ideas for this?