Depending on your requirements on the resource usage and latency, there are several methods to implement the project:
- Using some sort of "look-up table" and several pipeline stages: this one gives the lowest latency but with high resource usage
- Simple search and replace: this one uses less resources but with high latency.
There might be other tricks as well. However, I need to know the more detailed specification on the input.