Forum Discussion
Altera_Forum
Honored Contributor
14 years ago --- Quote Start --- the thing is, data out from test is decared as an OUT so tri-stating it is useless, as nothing can drive into it. --- Quote End --- Honestly, I'wasn't sure about the effect of defining dataout as output but tristating it. Apparently the compiler doesn't complain about. But I never use out type for a tristate port, always inout. --- Quote Start --- if I set dataout as '0' when 'sel' is '0' or keep the value as same as before.The compiler will give errors: can't be assigned more than one value. --- Quote End --- This will surely happen, if the connecting signal data_reg is driven otherwise. But it isn't in the code you have presented. So you are apparently talking about different code. That's the problem when presenting only snippets for the discussion. People can only refer to things, that are shown within. If you have any open questions related to your code, please provide a full example, that reproduces the problem.