YosysHQ / icestorm

Project IceStorm - Lattice iCE40 FPGAs Bitstream Documentation (Reverse Engineered)
ISC License
963 stars 224 forks source link

icebram: Complete rewrite to cleanup and make it work #309

Closed smunaut closed 1 year ago

smunaut commented 1 year ago

Fixes #301

I know it's a large diff, but it's pretty much a rewrite since the old structure of one giant main() function was becoming unwieldy.

icebram used to parse each .ram_data line one at a time but now it needs to load the whole memory. It also needs to know the READ_MODE (and so parse the ram config tile).