jamieiles / 80x86

80186 compatible SystemVerilog CPU core and FPGA reference design

Home Page:https://www.jamieiles.com/80186/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unclear build system

pawlex opened this issue · comments

I'm trying to build your project for my DE0-NANO. I've read the development guide several times, but I think I'm missing some critical piece of understanding.

./scripts/build appears to fetch & build; all CI tests pass, but I'm confused as to what build targets to invoke to create the quartus project, and how to build and execute the verilator sim environment. Hoping you could please provide some insight here.

Thanks in advance!

I went through a similar struggle, and this is what I've learned so far. After you run ./scripts/build, you can use the ./scripts/ci/fpga to build a Quartus project.

./scripts/build
./scripts/ci/fpga de0-nano

Then you should end up with a Top.qpf file in _build/fpga-de0-cv/fpga/de0-nano you can open in Quartus.

If you want to program the nano from the command line you should be able to switch into the docker -build environment and run the ninja program target:

./docker/s80x86-build
cd /build/_build/fpga-de0-nano/
ninja de0-nano-program