This is the PicoBlaze-Examples collection, which provides running examples of PicoBlaze systems on diverse boards, built with the help of the PicoBlaze-Library. The PicoBlaze-Library itself offers several PicoBlaze devices and code routines to extend a common PicoBlaze environment to a little System on a Chip (SoC).
This repository provides common examples and synthesis tests to show how the PicoBlaze-Library can be used. The PicoBalze-Library is referenced as a git submodule.
- Overview
- Download
- Requirements
- Configure PoC-Examples on a Local System
- Synthesizing Examples
- Updating PoC
TODO TODO TODO
The PicoBlaze-Examples Collection can be downloaded as a zip-file (latest
'master' branch) or cloned with git clone
from GitHub. GitHub offers HTTPS and SSH
as transfer protocols. See the Download wiki page for more details.
For SSH protocol use the URL ssh://git@github.com:Paebbels/PicoBlaze-Examples.git
or command
line instruction:
cd <GitRoot>
git clone --recursive ssh://git@github.com:Paebbels/PicoBlaze-Examples.git PicoBlaze-Examples
For HTTPS protocol use the URL https://github.com/Paebbels/PicoBlaze-Examples.git
or command
line instruction:
cd <GitRoot>
git clone --recursive https://github.com/Paebbels/PicoBlaze-Examples.git PicoBlaze-Examples
Note: The option --recursive
performs a recursive clone operation for all
linked git submodules. An additional git submodule init
and
git submodule update
call is not needed anymore.
The PicoBlaze-Examples Collection and the PicoBlaze-Library come with some scripts to ease most of the common tasks, like running testbenches, generating IP cores or synthesizing examples. We choose to use Python as a platform independent scripting environment. All Python scripts are wrapped in PowerShell or Bash scripts, to hide some platform specifics of Windows or Linux. See the Requirements wiki page for more details and download sources.
- Programming languages and runtimes:
- Synthesis tool chains:
- Xilinx ISE 14.7 or
- Xilinx Vivado ≥ 2014.1 or
- Altera Quartus-II ≥ 13.x
- Simulation tool chains:
- m4 macro pre-processor
- Debian specific:
- bash is configured as
/bin/sh
(read more)
dpkg-reconfigure dash
- bash is configured as
- m4 macro pre-processor
- PowerShell 4.0 (Windows Management Framework 4.0)
- Allow local script execution (read more)
Set-ExecutionPolicy RemoteSigned
- PowerShell Community Extensions 3.2 (pscx.codeplex.com)
- Allow local script execution (read more)
To explore PicoBlaze-Examples' and PicoBlaze-Libraries full potential, it's required to configure some paths and synthesis or simulation tool chains. The following commands start a guided configuration process. Please follow the instructions. It's possible to relaunch the process at every time, for example to register new tools or to update tool versions. See the Configuration wiki page for more details.
All Windows command line instructions are intended for Windows PowerShell, if not marked otherwise. So executing the following instructions in Windows Command Prompt (
cmd.exe
) won't function or result in errors! See the Requirements wiki page on where to download or update PowerShell.
Run the following command line instructions to configure the embedded PoC-Library on your local system.
cd <ExamplesRoot>
cd lib\PoC\
.\poc.ps1 --configure
The PoC-Library needs two VHDL files for it's configuration. These files are used
to determine the most suitable implementation depending on the provided platform
information. A set of my_config files is provided within the collection, but a per
host my_project.vhdl
needs to be created.
The my_project file can be created from a template provided by PoC in
<ExamplesRoot>\lib\PoC\src\common\my_project.vhdl.template
.
The file must to be copyed into the collection's source directory <ExamplesRoot>\src\common
and rename into my_project.vhdl
. This file must not be included into version control
systems - it's private to a host computer.
cd <ExamplesRoot>
cp lib\PoC\src\common\my_project.vhdl.template src\common\my_project.vhdl
my_project.vhdl
defines two global constants, which need to be adjusted:
constant MY_PROJECT_DIR : string := "CHANGE THIS"; -- e.g. d:/vhdl/myproject/, /home/me/projects/myproject/"
constant MY_OPERATING_SYSTEM : string := "CHANGE THIS"; -- e.g. WINDOWS, LINUX
The PicoBlaze-Examples Collection is shipped with project files for various tool chains and IDEs.