TMS320C28x ROM Decoder#131
Draft
edgetriggered wants to merge 2 commits into
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This draft pull request adds a ROM decoder module for the TMS320C28x family and is a potential solution for #130.
ROM banks in this part family consist of rows of 1024 bits comprising four meta-columns, each containing sixteen sub-columns. Words are composed of bits from the same position in each sub-column, advancing to the next meta-column for the next word. After four words, the process continues from the next sub-column position and resets when advancing to the next row once all sub-column positions in the row are exhausted.
Python-style slices to help establish the pattern:
The module as-is has strict requirements about the ROM layout, including 16-bit word size and exactly 1024 bits in each row. It works, but this could likely be generalized for ROMs in other part families using a similar layout. This appears to be a "packed" variant of cols-{left,right} where multiple words are interleaved from the same position and it may be possible to incorporate this functionality into those modules without negatively affecting other targets. For example, it may be a valid assumption to treat all ROMs of a width greater than wordsize×wordsize as this variation. (Possible relevance for #101?)