Learn how to make your own custom ZPUino System on Chip project!
Creating a new ZPUino SOC project
Hover the mouse over the New Project and hold Ctrl. The new project will shift from “Create new FPGA circuit” to “New ZPUino SOC project”, then click on it.
This will bring up a new window, which is a template for a new ZPUino SOC design.
After you save to a new location, you’ll notice that “#define circuit ZPUino_Vanilla” has been commented out.
Now go ahead and Edit the circuit by clicking Edit Circuit.
Editing the Circuit
Now that the Xilinx ISE Editor is displayed, double click on “Papilio_Pro (Papilio_Pro.sch)”.
This will bring up the Schematics
Add a UART by selecting it from Symbols.
In order to connect to external pins, there are 2 different ways:
1. You can replace the IO markers
or you can right click on the component you wish to connect, right click on it and choose “Push into Symbol”.
You’ll then be able to see the VHDL code.
Adding a UART
Delete the 2 IO markers.
Make sure you also delete all the wires left behind.
Now, we have a custom System On Chip Processor that has an extra UART. We can add as many UARTs as we have Wishbone slots.
Synthesizing the circuit
Before we synthesize the circuit, make sure the Papilio_Pro (Papilio_Pro.sch) is selected, then double click on Generate Programming File.
Go ahead and Double click on Generate Programming File
After the processing is complete, you’ll see the message: “Process Generate Programming File completed successfully”.
It’s important to remember the Wishbone slot number to which you connected the UART . In our case, it was Wishbone slot 5.
Back to the Sketch, we’re gonna add 3 code lines to it.
Make sure your Papilio Board is plugged in and then click Load Circuit.
A loading screen should be displayed, once you see “Done Burning Bit File”, you know the process is completed.
Verifiy that the correct serial port is selected, in our case it’s the second one.
Then go Ahead and click on Upload.
That will compile the project and upload it over the serial port to the ZPUino soft processor running on the FPGA.
Our custom circuit is loaded and running!