OM,
ons...
en
V8B-15PU_C6509.html
I'd say this is clearly a good part for this task. It's small, cheap, easy to design. I don't know how you might program it though. I seem to recal l reading in one group or another that it is hard to find programmers for s maller PLDs, but I bet you can find them on eBay or Aliexpress.
Rick C.