Closed andelf closed 4 weeks ago
In led.py, Memory is used with depth = nleds.
Memory
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
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