Forum Discussion
Altera_Forum
Honored Contributor
16 years agoBidirectional SPI switch?
This is a complex problem which I am very unsure of, the basic idea is that I want code that switches between 3 SPIs. I was startled when I noticed the statement that I was about to write ...
Altera_Forum
Honored Contributor
16 years agoTry this idea...
you better think of signal driving another than connectivity. remember connectivity in HDL does not mean that each side is driving the other. you will need three choices: if A master then A_sclk <= 'Z'; --driven from A chip B_sclk <= A_sclk; C_sclk <= A_sclk; elsif B master then ....