7 Build your hardware, easily!
8 Copyright 2012-2018 / EnjoyDigital
12 LiteX is an alternative to MiSoC maintained and used by Enjoy-Digital to build
13 our cores, integrate them in complete SoC and load/flash them to the hardware
14 and experiment new features. (structure is kept close to MiSoC to ease
17 Typical LiteX design flow:
18 --------------------------
27 +-------+ | | Your design
28 | LiteX +---> ready to be used!
30 +----------------------+ | |
31 |LiteX Cores Ecosystem +--> |
32 +----------------------+ +-^-------^-+
33 (Eth, SATA, DRAM, USB, | |
34 PCIe, Video, etc...) + +
42 Provides specific or experimental modules to generate HDL that are not integrated
46 Provides tools to build FPGA bitstreams (interface to vendor toolchains) and to
47 simulate HDL code or full SoCs.
50 Provides definitions/modules to build cores (bus, bank, flow), cores and tools
51 to build a SoC from such cores.
54 Provides platforms and targets for the supported boards.
56 [> Very Quick start guide (for newcomers)
57 -----------------------------------------
58 TimVideos.us has done an awesome job for setting up a LiteX environment easily in
59 the litex-buildenv repo: https://github.com/timvideos/litex-buildenv
61 It's recommended for newcomers to go this way. Various FPGA boards are supported
62 and multiple examples provided! You can even run Linux on your FPGA using LiteX
65 Migen documentation can be found here: https://m-labs.hk/migen/manual
68 [> Quick start guide (for advanced users)
69 -----------------------------------------
70 0. If cloned from Git without the --recursive option, get the submodules:
71 git submodule update --init
73 1. Install Python 3.5, Migen and FPGA vendor's development tools.
74 Get Migen from: https://github.com/m-labs/migen
76 2. Compile and install binutils. Take the latest version from GNU.
77 mkdir build && cd build
78 ../configure --target=lm32-elf
82 3. (Optional, only if you want to use a lm32 CPU in you SoC)
83 Compile and install GCC. Take gcc-core and gcc-g++ from GNU
84 (version 4.5 or >=4.9).
86 mkdir build && cd build
87 ../configure --target=lm32-elf --enable-languages="c,c++" --disable-libgcc \
92 4. Build the target of your board...:
93 Go to boards/targets and execute the target you want to build
95 5. ... and/or install Verilator and test LiteX on your computer:
96 Download and install Verilator: http://www.veripool.org/
97 Install libevent-devel / json-c-devel packages
101 6. Run a terminal program on the board's serial port at 115200 8-N-1.
102 You should get the BIOS prompt.
106 E-mail: florent [AT] enjoy-digital.fr