updated verilog to export both the register and the subregister