Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

First download the project from git. Requires git >= x.x.x and lfs. 

> git lfs install

> git clone https://github.com/slaclab/dev-board-examples.git

...

dev-board-examples-v1.0.0.tgz

Pre-Compiled Firmware

A pre-compiled image is included in:

...

and load into the evaluation board using vivado.

Build Your Own Firmware

Compile the project. Requires linux and vivado 2016.4

...

The aes-stream-drivers/include directory will be needed for the next step. Make note of the full directory path.

Test Software Compile

To compile the test software go to the following directory in the firmware download:

> cd dev-board-examples-v1.0.0/software/standalone/

Edit the following line in the makefile to point to the location of the aes stream driver directory:

AES_INCLUDE := ../../../aes-stream-drivers-1.0.1/include/  

Build the test software:

> make

Run The Test Code

First dump the status register. This will include the firmware version and build string:

> bin/dumpStatus

The output should look like:
FwVersion   = 0x00000001 
BuildStamp  = Kcu105Pgp: Vivado v2016.4, x86_64, Built Wed May  3 13:52:04 PDT 2017 by rherbst
HeartBeat   = 0x00000000
Scratchpad  = 0x00000000
PRBS Length = 255

In one terminal start the data dump process:

> bin/dumpData

In another terminal start the routine which periodically writes a register to generate a data frame:

> bin/genData

The output of the dumpData terminal show show:

Got Data. Size=1024, error=0 
Got Data. Size=1024, error=0
Got Data. Size=1024, error=0
Got Data. Size=1024, error=0
Got Data. Size=1024, error=0
Got Data. Size=1024, error=0
Got Data. Size=1024, error=0
Got Data. Size=1024, error=0
Got Data. Size=1024, error=0
Got Data. Size=1024, error=0
Got Data. Size=1024, error=0
...

Additional Links

Git hub repositories for firmware and drivers:

https://github.com/slaclab/dev-board-examples

https://github.com/slaclab/aes-stream-drivers

Information about the register access protocol used in the CPIX camera and development board:

SLAC Register Protocol (SRP) Version 0