[go: nahoru, domu]

Skip to content

An implementation of the CISC ISA spec from ISA-docs

Notifications You must be signed in to change notification settings

monistode/ISA_cisc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CISC register ISA implementation

This is an implementation of a CISC register 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 cisc
echo -n "cisc.dtbo" > cisc/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

An implementation of the CISC ISA spec from ISA-docs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published