enjoy-digital / litedram

Small footprint and configurable DRAM core
Other
365 stars 115 forks source link

Refactor init code generation #268

Closed jedrzejboczar closed 2 years ago

jedrzejboczar commented 2 years ago

This change set includes changes from lpddr4-update so please use the following diff to view only the additional changes: https://github.com/antmicro/litedram/compare/jboc/lpddr4-update...jboc/init-refactor

This is an update to the way init.py generates C initialization code. The following changes were made:

There is also a minor change in https://github.com/enjoy-digital/litedram/commit/91cae335e593ee8d828b08b5447d9a7817e37da8 to make the macro more bullet-proof.

enjoy-digital commented 2 years ago

Thanks @jedrzejboczar, this looks very good. I'm not able to a close review now but will do when I'm back.

jedrzejboczar commented 2 years ago

I fixed a typo that I noticed with https://github.com/enjoy-digital/litedram/pull/268/commits/86cde919874f55141864b96cc2ad131355ddfd2b. I tested locally that this shouldn't cause any issues when merging the following PRs (https://github.com/enjoy-digital/litedram/pull/269, https://github.com/enjoy-digital/litedram/pull/270) - git should automatically resolve any conflicts by the 'recursive' strategy.