HenkNep Posted March 17, 2014 Report Share Posted March 17, 2014 Hi,I have a simple tri-state output signalsc_out<sc_logic> ctrlout;If I write to it directly compilation fails:ctrlout.write('Z'); // failsThe same applies to using a variable:sc_logic local='Z'; // failsThe only one that works is:sc_logic local;local='Z';ctrlout.write(local);Do I really have to jump through so many hoops to assign a tri-state value to an output port?I then found an example on the web which uses resolved types, even though I only have 1 driver the resolved type works:sc_out_rv<1> out;out.write('Z');Am I correct in stating that even for a single driver I need to use the _rv types?I also noticed that _resolved has the same issues, that is you cannot assign 'Z' directly.Thanks for any advice. Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.