I'm sure this is a really easy answer, but I haven't been able to find it. Some signals were sent through my CPLD, someone thinking I might want to mess with them, and I don't for now, I just want to pass the signals (an I2C bus) through the device, basically wires between two pins.
Most of the signals are one way, so they are easy, the issue I'm having is with bidir signals. (I2C): Both the data and clock lines need to be bidirectional, and either the master or slave may be able to win control of the bus. I'm not sure how to do this, if I make them BUFFER's or INOUT's, they would be bidir, but I don't want to figure out who has control of the 'bus', since it is dealt with in hardware outside of my device. So if the Master is 1 and the Slave is 0, I don't want to force the bus to 1, since maybe it's suppose to be 0 (Like with clock stretching, which is slave initiated) In any case this seems like it's using a ton of LE's for something that is just a wire.
So...how do I make a dumb wire, with no logic between pins, can can I do this in an entity, which would make my code more readable, or is it a tool thing I have to do or in the top level?
Most of the signals are one way, so they are easy, the issue I'm having is with bidir signals. (I2C): Both the data and clock lines need to be bidirectional, and either the master or slave may be able to win control of the bus. I'm not sure how to do this, if I make them BUFFER's or INOUT's, they would be bidir, but I don't want to figure out who has control of the 'bus', since it is dealt with in hardware outside of my device. So if the Master is 1 and the Slave is 0, I don't want to force the bus to 1, since maybe it's suppose to be 0 (Like with clock stretching, which is slave initiated) In any case this seems like it's using a ton of LE's for something that is just a wire.
So...how do I make a dumb wire, with no logic between pins, can can I do this in an entity, which would make my code more readable, or is it a tool thing I have to do or in the top level?