Skip to content

TMS320C28x ROM Decoder#131

Draft
edgetriggered wants to merge 2 commits into
travisgoodspeed:masterfrom
edgetriggered:tms320c28x
Draft

TMS320C28x ROM Decoder#131
edgetriggered wants to merge 2 commits into
travisgoodspeed:masterfrom
edgetriggered:tms320c28x

Conversation

@edgetriggered

@edgetriggered edgetriggered commented Jul 18, 2025

Copy link
Copy Markdown
Contributor

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:

Word 0: row[0][0+0:256:16]
Word 1: row[0][0+256:512:16]
Word 2: row[0][0+512:768:16]
Word 3: row[0][0+768:1024:16]
Word 4: row[0][1+0:256:16]
Word 5: row[0][1+256:512:16]
Word 6: row[0][1+512:768:16]
Word 7: row[0][1+768:1024:16]
Word 8: row[0][2+0:256:16]
...
Word 64: row[1][0:256:16]
...

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?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant