Skip to content

fabbrimichele/rt68f

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

416 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rt68f

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

Motorola 68000

68000 cores

ym2149

SPI

Flash ROM

ym3812

ym3812 core

To configure the project

  • Java 17 is required
  • Install GHDL

To build the project

make

To run the simulation

sbt
runMain rt68f.Rt68fTopLevelSim

To program the bitstream to the Papilio DUO

/opt/GadgetFactory/papilio-loader

To load a file to the SBC

make load BIN_FILE=vga16col_palette.bin

where the file specified with BIN_FILE well be search in /rt68f/target/app

Papilio prog

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: CXXFLAGS with -std=c++11 in addition to the existing parameters
  • run make
  • copy papilio-prog to a bin path

To check that the FPGA is found:

papilio-prog -j

It should return something like:

Using built-in device list
JTAG chainpos: 0 Device IDCODE = 0x24001093	Desc: XC6SLX9

To program the FPGA (temporary):

Run the following command (or use the Makefile):

papilio-prog -v -f stream.bit

To program the SPI Flash (permanent):

Run 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

IDE

Go with IntelliJ IDEA. I couldn’t get VS Code to work reliably.

References

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors