Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: m-labs/artiq
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: ad5a32fb6ea0
Choose a base ref
...
head repository: m-labs/artiq
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 976e13639ee3
Choose a head ref
  • 2 commits
  • 4 files changed
  • 1 contributor

Commits on Nov 4, 2015

  1. Copy the full SHA
    b13ee2e View commit details
  2. Copy the full SHA
    976e136 View commit details
Showing with 21 additions and 9 deletions.
  1. +2 −0 .travis/get-anaconda.sh
  2. +2 −0 .travis/get-toolchain.sh
  3. +2 −0 .travis/get-xilinx.sh
  4. +15 −9 doc/manual/installing.rst
2 changes: 2 additions & 0 deletions .travis/get-anaconda.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/sh
# Copyright (C) 2014, 2015 Robert Jordens <jordens@gmail.com>

set -e

export PATH=$HOME/miniconda/bin:$PATH
wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
bash miniconda.sh -b -p $HOME/miniconda
2 changes: 2 additions & 0 deletions .travis/get-toolchain.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/sh

set -e

packages="http://us.archive.ubuntu.com/ubuntu/pool/universe/i/iverilog/iverilog_0.9.7-1_amd64.deb"

mkdir -p packages
2 changes: 2 additions & 0 deletions .travis/get-xilinx.sh
Original file line number Diff line number Diff line change
@@ -2,6 +2,8 @@
# Copyright (C) 2014, 2015 M-Labs Limited
# Copyright (C) 2014, 2015 Robert Jordens <jordens@gmail.com>

set -e

wget http://sionneau.net/artiq/Xilinx/xilinx_ise_14.7_s3_s6.tar.gz.gpg
echo "$secret" | gpg --passphrase-fd 0 xilinx_ise_14.7_s3_s6.tar.gz.gpg
tar -C $HOME/ -xzf xilinx_ise_14.7_s3_s6.tar.gz
24 changes: 15 additions & 9 deletions doc/manual/installing.rst
Original file line number Diff line number Diff line change
@@ -220,16 +220,18 @@ These steps are required to generate bitstream (``.bit``) files, build the MiSoC

Then copy the generated ``bscan_spi_kc705.bit`` to ``~/.migen``, ``/usr/local/share/migen`` or ``/usr/share/migen``.

* Download MiSoC: ::
* Download and install MiSoC: ::

$ cd ~/artiq-dev
$ git clone --recursive https://github.com/m-labs/misoc
$ export MSCDIR=~/artiq-dev/misoc # append this line to .bashrc
$ cd misoc
$ python3 setup.py develop --user

* Download and install ARTIQ: ::

$ cd ~/artiq-dev
$ git clone --recursive https://github.com/m-labs/artiq
$ cd artiq
$ python3 setup.py develop --user

.. note::
@@ -238,26 +240,30 @@ These steps are required to generate bitstream (``.bit``) files, build the MiSoC
:ref:`installing the host-side software <installing-the-host-side-software>`.


* Build and flash the bitstream and BIOS by running `from the MiSoC top-level directory`:
* Build the bitstream, BIOS and runtime by running:
::

$ cd ~/artiq-dev/misoc
$ cd ~/artiq-dev
$ export PATH=/usr/local/llvm-or1k/bin:$PATH

.. note:: Make sure that ``/usr/local/llvm-or1k/bin`` is first in your ``PATH``, so that the ``clang`` command you just built is found instead of the system one, if any.

* For Pipistrello::

$ ./make.py -X ~/artiq-dev/artiq/soc -t artiq_pipistrello all
$ python3 -m artiq.gateware.targets.pipistrello

* For KC705::

$ ./make.py -X ~/artiq-dev/artiq/soc -t artiq_kc705 all
$ python3 -m artiq.gateware.targets.kc705 -H qc1 # or qc2

* Then, build and flash the ARTIQ runtime: ::
* Then, gather the binaries and flash them: ::

$ cd ~/artiq-dev/artiq/soc/runtime && make runtime.fbi
$ ~/artiq-dev/artiq/artiq/frontend/artiq_flash.sh -t pipistrello -d $PWD -r
$ mkdir binaries
$ cp misoc_nist_qcX_<board>/gateware/top.bit binaries
$ cp misoc_nist_qcX_<board>/software/bios/bios.bin binaries
$ cp misoc_nist_qcX_<board>/software/runtime/runtime.fbi binaries
$ cd binaries
$ artiq_flash.sh -d . -t <board>

.. note:: The `-t` option specifies the board your are targeting. Available options are ``kc705`` and ``pipistrello``.