GithubHelp home page GithubHelp logo

fredrik-reinholdsen / xilinx-builder Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 7 KB

A Docker image to build Xilinx FPGA bitstreams from verilog source

CMake 9.89% Dockerfile 14.52% Python 56.71% Shell 18.88%

xilinx-builder's Introduction

Xilinx-Builder

Build Xilinx FPGA bitstreams with ease.

A Docker image and python script that uses the F4PGA toolchain and nextpnr-xilinx to build bitstreams for the Artix 7 xc7a35t and Zynq 7 xc7z020 FPGAs. With some relativley minor modifications you can make images can to build bitstreams for most Xilinx Series 7 FGPAs. The image uses the yosys, F4PGA Toolchain, Project X-ray and nextpnr-xilinx to synthesize and place-and-route and build bitstreams.

Prerequisite

A working Docker installation is needed to build and run the image.

Installation

Clone the repository and cd into it. When standing in the repository root, run:

docker build . -t xilinx_builder

to build the image.
NOTE - The build time for this container is quite long.

Run

The entrypoint takes two arguments, a .v top-module verilog source file, and an .xdc constraints file. You can also add a --part argument to specify which FPGA part you would like to build for. Fruthermore, one can also add a --build-dir option to specify a directory for all of the built output files, default is ./build

The two supported FPGAs are the Xilinx xc7a35tcsg324-1 Aritx 7 (Same as that on the Arty-A35 board), and the Xilinx xc7z020clg400-1 Zynq 7 FGPA (same as that on the Arty-Z20 and Pynq-Z2 board). The Dockerfile can be modified to support other parts. The reason I did not add support for more parts out of the box is the very long database build times for each part. By default the xc7a35tcsg324-1 part will be used.

To build a bitstream from a verilog source file top.v using constraints specified by constraints.xdc, run:

docker run -v $(pwd):/io -w /io --rm -it xilinx_builder top.v constraints.xdc --part xc7a35tcsg324-1

xilinx-builder's People

Contributors

fredrik-reinholdsen avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.