Skip to content

monistode/ISA_accum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stack ISA implementation

This is an implementation of a Stack ISA from here, initiated from this template.

Usage

Getting the linux image

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.

Getting the binary

Method 1

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

Method 2

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!

Running the code

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

What do the buttons mean?

  • SW3 enables and disables step-by-step execution
  • If SW1 is on and you press KEY0, the program counter goees to 0
  • KEY1 steps the instruciton
  • KEY0 unhalts
  • GPIO0[0] is the RX for UART
  • GPIO0[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!

Useful reaources for learning all this

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)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published