gsachin Posted April 11, 2014 Report Share Posted April 11, 2014 Hi,I have a set of signals defined as:sc_signal<sc_logic> bit0;sc_signal<sc_logic> bit1;sc_signal<sc_logic> bit2;I have another buses defined assc_signal<sc_bv<3> > bus_input;sc_signal<sc_bv<3> > bus_output;I would like to do this operation:bus_output = bit(i) & bus_input where i = 0,1,2For this, I am writing this code:bus_output = (bit2.read(), bit1.read(), bit0.read()) & bus_input.read();But this does not work. Compile is fine but only the bus_output is correctly being written. other bits are not getting updated.Can you please let me know what is the issue?Thanks,Sachin 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.