enjoy-digital / litex

Build your hardware, easily!
Other
3.02k stars 571 forks source link

Unable to create WS2812 of nleds = 1 #2103

Closed andelf closed 4 weeks ago

andelf commented 1 month ago

In led.py, Memory is used with depth = nleds.

https://github.com/enjoy-digital/litex/blob/c1225736a8c3dc3fb46dfafcaff763bd5fe9b0a2/litex/soc/cores/led.py#L135-L141

While migen's Memory type does not allow a depth of 1, which means if your are addressing a single word, no address signal is needed.

https://github.com/m-labs/migen/blob/c19ae9f8ae162ffe2d310a92bfce53ac2a821bc8/migen/fhdl/specials.py#L291-L298

See-also: https://github.com/m-labs/migen/pull/295