Page 1 of 1

SuperH SH2 on the Mojo

Posted: September 11th, 2015, 12:36 am
by kallisti5
Good evening!

Found a great project building the SuperH SH2 CPU on xilinx FPGA's. Unlike a lot of projects, this one seems wrapped in makefiles pretty well!

I threw together a SuperH toolchain here:
https://github.com/kallisti5/JCores-SDK

Open Cores J2 CPU (SH2 -> J2)
http://0pf.org/

Attached is a diff starting to map the code to the Mojo.
You have to convert the mojo9.bit to a bin via "promgen -u 0 mojo9.bit -b -p bin -w"


Build my toolchain
export PATH=XXXXXXX/JCores-SDK/work/toolchain/bin:$PATH
source /opt/Xilinx/14.7/ISE_DS/settings64.sh

get j2 core from 0pf.org
patch it with http://unixzen.com/patchwork/0001-Add-i ... work.patch
make mojo
cd last_output
promgen -u 0 mojo9.bit -b -p bin -w
mojo_loader erase + load mojo9.bin.

Likely still have some work to do mapping the J2 code to the Mojo. No activity yet.