The question here is, why build your own core? Well there really isn't any reason for the average user to do this. However if you're interested in dabbling with the code and trying to see how it works, building your own core is really the only way to learn.
If you don't want to build your own core, just get the official core from here:
https://files.mega65.org/html/main.php
So without further-a-do here it is, I hope you find it interesting even if it's not useful to you.
Development Board : NEXYS4-DDR
Virtual Machine : VMware Workstation
Host VM OS : Ubuntu 20.04.3 LTS
Ubuntu 20.04.3 LTS is supported by Vivado so install this. I installed an older LTS version then upgraded, save yourself the hassle and just go straight to this version.
Vivado Software : Vivado ML Standard 2021.2
Let's do it!
Create a VM
Vivado is BIG, so be sure to allocate enough disk space to install it.
Compiling cores is a very intensive process. Allocate as much CPU and Memory as you can.
Installing Vivado ML
The Free Standard edition is all that you need.
Grab the Linux Web Installer ( the full install is huge and you just don't need it ).
Once you have downloaded it, run the following commands to start the installer.
This is the same account you made right at the start to download the installer.
Just choose Vivado.
Standard Edition is what you need.
Remove all of the items you will not need to keep the install small.
The Mega65 Makefile expects the install to be in "/opt/Xilinx"
Installing other required software
Install the following software using apt:
- apt install git
- apt install libpng-dev
- apt install make
- apt install gcc