timvideos / qemu-litex

Other
2 stars 2 forks source link
fpga fpga-soc fpga-soc-linux liteeth litex migen misoc openrisc or1k qemu

QEmu for LiteX

This repository contains a version of QEmu for emulating LiteX based SoCs. This is mainly targeted at being used with the TimVideos HDMI2USB firmware which can be found here but could be reused with other LiteX based SoCs with some work.

Building

There are two methods for building qemu-litex.

As qemu-litex targets a specific LiteX SoC it currently needs the configuration information from that SoC.

From fresh install, you will need the following packages: sudo apt-get install flex bison autoconf libtool libpixman-1-dev

Building inside HDMI2USB-litex-firmware

1) Follow "getting started" instructions for getting the gateware setup.

Building outside HDMI2USB-litex-firmware

1) Clone the git repo with git clone https://github.com/timvideos/qemu-litex.git

2) Enter the qemu-litex directory.

3) (Optional) Set the PLATFORM, TARGET and CPUS to your required configuration. The defaults should be fine if you are just playing with things.

4) Run the ./build-litex-qemu.sh which will

Status