mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
Build your hardware, easily!
72579a6129
In python a negative indices usually mean start counting from the right side. I.e. if the index is negative is acutal index used is len(l) + i. E.g. l[-2] equals l[len(l)-2]. Being able to specify an index this way also comes in handy for migen slices in some cases. E.g. the following snippet can be implement to shift an abitrary length register n bits to the right: reg.eq(Cat(Replicate(0, n), reg[-n:]) Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> |
||
---|---|---|
doc | ||
examples | ||
migen | ||
vpi | ||
.gitignore | ||
LICENSE | ||
README | ||
setup.py |
Migen (Milkymist Generator) a Python toolbox for building complex digital hardware Migen aims at automating further the VLSI design process. Migen makes it possible to apply modern software concepts such as object-oriented programming and metaprogramming to design hardware. This results in more elegant and easily maintained designs and reduces the incidence of human errors. Built on these principles, it also provides tools to build synchronous designs more productively, integrate system-on-chips, design dataflow systems, and more. Migen will become the foundation for the next-generation Milkymist SoC. See the doc/ folder for a more complete description. Code repository: https://github.com/milkymist/migen Experimental version of the Milkymist SoC based on Migen: https://github.com/milkymist/milkymist-ng Migen is designed for Python 3.2. Send questions, comments and patches to devel [AT] lists.milkymist.org We are also on IRC: #milkymist on the Freenode network. See LICENSE file for copyright and license info. "Electricity! It's like magic!"