Drive a "reg" using continuous assign

In reply to natasv:

There are differences between continuous assignments, procedural assignments, and procedural continuous assignments. They are all described in Chapter 10 of the LRM.

Your code is demonstrating procedural continuous assignments, and not continuous assignments. It will work, but only you can determine if what you are doing meets your requirements.