An explanation of this VHDL design can be found here https://github.com/OpenResearchInstitute/cobs_decoder/blob/main/design_discussion/README.md
An explanation of and reference design for the test automation for this work can be found here https://github.com/OpenResearchInstitute/cobs_decoder/tree/main/test_automation