adding register management
small change to support register number
Merge branch 'master' of https://github.com/fpga-logi/logi-tools