# vivado-docker

Vivado installed into a docker image. Includes python to run rfnoc build scripts

Does not include RFNOC code.

## Build instructions

Create a directory to store the Dockerfile sources. You also need a copy of the Xilinx license file you want to use, and the 2015.4 Vivado SDK. Fortunately, if building for the E310, a free, non-nodelocked Xilinx.lic file works great to generate IP in the Docker container. I have not yet tested with a license for the X3xx series. 

To build the image:
1. Copy the Vivado installer (Xilinx_Vivado_SDK_Lin_2015.4_1118_2.tar.gz) file into the directory.
1. Copy your Vivado `Xilinx.lic` file into the directory.
2. Build the image `docker build -t he360/vivado:2015.4 .`

## Running

Run the docker image, mounting local files you want to build with vivado:
```
docker run -it -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -v /local/path/to/prefix:/docker/path/to/prefix --name vivado he360/vivado:2015.4
```
To start and reattach to a stopped container (with the container name "vivado"):
```bash
docker start vivado
docker attach vivado
```

Note we currently dont have any CI code working yet with HDL, so this is mostly good for building the FPGA image or running test benches manually.


