Helper to create a basic integer value generator

def _int_generator(descriptor, bitwidth, unsigned):
    'Helper to create a basic integer value generator'
    vals = list(values.get_integers(bitwidth, unsigned))
    return gen.IterValueGenerator(descriptor.name, vals)