This is an implementation of a Stack ISA from here, initiated from this template.
First you must have a DE10-Nano devboard, along with a linux image from here. You could also just ask the authors for a linux image, though they will probably ingnore you.
Just boot the installed linux image and do
mkdir -p /config
mount -t configfs configfs /config
cd /config/device-tree/overlays
mkdir -p accum
echo -n "accum.dtbo" > accum/path
To use this program, you have to first install quartus.
Then, compile the project as described in here.
Now, move the .rbf file
to /boot/sdr.rbf
, and enjoy!
Get the program from here, and compile it on the SD card.
gcc -std=c++14 upload.cpp -o upload
Then, just run the program you compiled with this
./upload program.bin
SW3
enables and disables step-by-step execution- If
SW1
is on and you pressKEY0
, the program counter goees to 0 KEY1
steps the instrucitonKEY0
unhaltsGPIO0[0]
is the RX for UARTGPIO0[1]
is the TX for UART- All the other pins on
GPIO0
do parallel output, but don't use it, it's weird and bad design
Good luck, you'll need it!
Check out the DE10-Nano for absolute beginners, it's a very useful repo. https://github.com/zangman/de10-nano/tree/master Also, the getting started guide is OK https://www.intel.com/content/www/us/en/developer/articles/guide/terasic-de10-nano-get-started-guide.html Lastly, just read the docs)