I often get Xilinx error messages saying that I can't read a pin that is configured "out mode" (or something like that). Up to now, to get around the error, I have been mirroring such a pin with an internal register and reading the output of the register instead. Recently I find that making such a pin an inout instead of an out will also let it be read. That's reasonable but seems contrary to what I believe that an inout pin is a bidirectional pin. What is the best way to do this, as a matter of style?
b r a d @ a i v i s i o n . c o m