Add tools to test registers ports, and two use cases.