diff options
Diffstat (limited to 'fpga_interchange/examples')
-rw-r--r-- | fpga_interchange/examples/common.mk | 2 | ||||
-rw-r--r-- | fpga_interchange/examples/create_bba/README.md | 40 |
2 files changed, 41 insertions, 1 deletions
diff --git a/fpga_interchange/examples/common.mk b/fpga_interchange/examples/common.mk index 967ae367..ce558472 100644 --- a/fpga_interchange/examples/common.mk +++ b/fpga_interchange/examples/common.mk @@ -1,6 +1,6 @@ NEXTPNR_PATH := $(realpath ../../..) NEXTPNR_BIN := $(NEXTPNR_PATH)/build/nextpnr-fpga_interchange -BBA_PATH := $(realpath ..)/create_bba/build/xc7a35tcpg236-1.bin +BBA_PATH := $(realpath ..)/create_bba/build/xc7a35.bin RAPIDWRIGHT_PATH := $(realpath ..)/create_bba/build/RapidWright INTERCHANGE_PATH := $(realpath ..)/create_bba/build/fpga-interchange-schema/interchange diff --git a/fpga_interchange/examples/create_bba/README.md b/fpga_interchange/examples/create_bba/README.md new file mode 100644 index 00000000..d2ca5188 --- /dev/null +++ b/fpga_interchange/examples/create_bba/README.md @@ -0,0 +1,40 @@ +## Makefile-driven BBA creation + +This Makefile will generate a Xilinx A35 chipdb if java, capnproto and +capnproto-java are installed. + +### Installing dependencies + +Install java and javac if not already installed: +``` +# Or equivalent for your local system. +sudo apt-get install openjdk-10-jdk +``` + +Install capnproto if not already installed: +``` +# Or equivalent for your local system. +sudo apt-get install capnproto libcapnp-dev +``` + +Install capnproto-java if not already installed: +``` +git clone https://github.com/capnproto/capnproto-java.git +cd capnproto-java +make +sudo make install +``` + +### Instructions + +Once dependencies are installed, just run "make". This should download +remaining dependencies and build the chipdb and build nextpnr if not built. + +#### Re-building the chipdb + +``` +# Remove the text BBA +rm build/nextpnr/fpga_interchange/chipdb.bba +# Build the BBA +make +``` |