A project in SpinalHDL for the Papilio Duo dev board (Xilinx Spartan 6)
- The hardware description is into
hw/spinal/projectname/Rt68fTopLevel.scala - The testbench is into
hw/spinal/projectname/Rt68fTopLevelSim.scala
- https://github.com/alfikpl/ao68000
- https://github.com/alfikpl/aoOCS
- https://github.com/vfinotti/ahb3lite_wb_bridge/blob/master/wb_to_ahb3lite.v
- https://github.com/TobiFlex/TG68K.C
- Java 17 is required
- Install GHDL
makesbt
runMain rt68f.Rt68fTopLevelSim/opt/GadgetFactory/papilio-loadermake load BIN_FILE=vga16col_palette.binwhere the file specified with BIN_FILE well be search in /rt68f/target/app
papilio-prog is the programmer for the Papilio DUO board.
For 64 bit OS needs to be recompiled:
- clone the repository:
git clone git@github.com:GadgetFactory/Papilio-Loader.git - enter the directory:
cd Papilio-Loader/papilio-prog - run:
./configure - configure in the Makefile:
CXXFLAGSwith-std=c++11in addition to the existing parameters - run
make - copy
papilio-progto a bin path
papilio-prog -jIt should return something like:
Using built-in device list
JTAG chainpos: 0 Device IDCODE = 0x24001093 Desc: XC6SLX9
Run the following command (or use the Makefile):
papilio-prog -v -f stream.bitRun the following command (or use the Makefile):
papilio-prog -v -s a -r -f target/$(TARGET).bit -b hw/papilio-loader/bscan_spi_xc6slx9.bit| Option | Meaning |
|---|---|
| -v | verbose |
| -s a | write to the flash |
| -r | reset FPGA after programming |
| -f bitfile | bitstream to program |
| -b bitfile | bscan_spi bit file - required to program the flash |
Go with IntelliJ IDEA. I couldn’t get VS Code to work reliably.