parser=argparse.ArgumentParser(description='Spec7 tool to access the memory mapped area',epilog='A number with prefix "0x" is interpreted as hex value')
parser.add_argument('--device','-d',default='/dev/spec7',help='device path name, default is /dev/spec7')
parser.add_argument('--device','-d',default='/dev/spec7_bar0',help='device path name, default is /dev/spec7')
parser.add_argument('--address','-a',default='0',help='address to access (0x prefix for hex)')
parser.add_argument('--is-pipe','-p',dest='is_pipe',action="store_true",help='register is a pipe')
parser.add_argument('--count','-n',dest='count',help='number of reads/writes')