Forum Discussion
Altera_Forum
Honored Contributor
19 years agoOutput only PIOs have write-only data registers. I'm betting this is the source of your confusion.
[EDIT]: Oops! Just saw that you're using bidi PIOs. The following equation determines what's read...relative to the base address for the component: <div class='quotetop'>QUOTE </div> --- Quote Start --- assign read_mux_out = ({1 {(address == 0)}} & data_in) | ({1 {(address == 1)}} & data_dir);[/b] --- Quote End --- So you're in the same boat. You cannot read what you've just written, without some more hardware work. Cheers, - slacker