dpaul81
Newbie level 6
Hi all,
A digital unit has two buses both of them are 32bits wide (say bus1 & bus2) and can either Rx or Tx data, so I am declaring them as INOUT ports in Verilog.
There are also some signals, and according to their conditions data has to be moved from bus1 to bus2 or bus2 to bus bus1.
Can anyone tell me how to store the data from one bus in a register and then pass off the same to the next bus & vice-versa!
Should I declare some internal variables of type wire and then do the data transfer or should I have to declare an int. reg. and then do the shifting?
Actually I tried coping the data in both a wire & reg, but I am always getting the error "A net is not a legal lvalue in this context"!
Plz tell me the principle! A sample bit of code will also be very useful!
Thanks,
dpaul
A digital unit has two buses both of them are 32bits wide (say bus1 & bus2) and can either Rx or Tx data, so I am declaring them as INOUT ports in Verilog.
There are also some signals, and according to their conditions data has to be moved from bus1 to bus2 or bus2 to bus bus1.
Can anyone tell me how to store the data from one bus in a register and then pass off the same to the next bus & vice-versa!
Should I declare some internal variables of type wire and then do the data transfer or should I have to declare an int. reg. and then do the shifting?
Actually I tried coping the data in both a wire & reg, but I am always getting the error "A net is not a legal lvalue in this context"!
Plz tell me the principle! A sample bit of code will also be very useful!
Thanks,
dpaul