From 7db0498a9aca7df5aacb9b5b1585a2731dd7a547 Mon Sep 17 00:00:00 2001 From: Yann Sionneau Date: Thu, 27 Aug 2015 11:02:06 +0200 Subject: [PATCH 1/3] artiq_flash: dont prepend the runtime file with mezzanine board directory if using -d --- artiq/frontend/artiq_flash.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/artiq/frontend/artiq_flash.sh b/artiq/frontend/artiq_flash.sh index 4d155e4b9..881e5a616 100755 --- a/artiq/frontend/artiq_flash.sh +++ b/artiq/frontend/artiq_flash.sh @@ -123,9 +123,13 @@ then PROXY=bscan_spi_kc705.bit BIOS_ADDR=0xaf0000 RUNTIME_ADDR=0xb00000 - RUNTIME_FILE=${MEZZANINE_BOARD}/runtime.fbi + RUNTIME_FILE=runtime.fbi FS_ADDR=0xb40000 - if [ -z "$BIN_PREFIX" ]; then BIN_PREFIX=$ARTIQ_PREFIX/binaries/kc705; fi + if [ -z "$BIN_PREFIX" ] + then + RUNTIME_FILE=${MEZZANINE_BOARD}/runtime.fbi + BIN_PREFIX=$ARTIQ_PREFIX/binaries/kc705 + fi search_for_proxy $PROXY elif [ "$BOARD" == "pipistrello" ] then From 4a16ea111c7fe9522d334d8d7a41cc1276338e8f Mon Sep 17 00:00:00 2001 From: Yann Sionneau Date: Thu, 27 Aug 2015 18:23:26 +0200 Subject: [PATCH 2/3] worker, scheduler: fix unit tests on Windows --- artiq/test/scheduler.py | 6 +++++- artiq/test/worker.py | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/artiq/test/scheduler.py b/artiq/test/scheduler.py index a3783863e..33e712fb5 100644 --- a/artiq/test/scheduler.py +++ b/artiq/test/scheduler.py @@ -1,6 +1,7 @@ import unittest import asyncio import sys +import os from time import time, sleep from artiq import * @@ -63,7 +64,10 @@ _handlers = { class SchedulerCase(unittest.TestCase): def setUp(self): - self.loop = asyncio.new_event_loop() + if os.name == "nt": + self.loop = asyncio.ProactorEventLoop() + else: + self.loop = asyncio.new_event_loop() asyncio.set_event_loop(self.loop) def test_steps(self): diff --git a/artiq/test/worker.py b/artiq/test/worker.py index abb321e27..b00660188 100644 --- a/artiq/test/worker.py +++ b/artiq/test/worker.py @@ -1,6 +1,7 @@ import unittest import asyncio import sys +import os from time import sleep from artiq import * @@ -59,7 +60,10 @@ def _run_experiment(class_name): class WatchdogCase(unittest.TestCase): def setUp(self): - self.loop = asyncio.new_event_loop() + if os.name == "nt": + self.loop = asyncio.ProactorEventLoop() + else: + self.loop = asyncio.new_event_loop() asyncio.set_event_loop(self.loop) def test_watchdog_no_timeout(self): From 4d84ec7742302e7f7e1e3bb2b44fd4d4475050af Mon Sep 17 00:00:00 2001 From: Yann Sionneau Date: Thu, 27 Aug 2015 21:37:35 +0200 Subject: [PATCH 3/3] update lx45 bscan bitstream url which wget could not fetch on some systems --- conda/artiq/build.sh | 2 +- doc/manual/installing.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/conda/artiq/build.sh b/conda/artiq/build.sh index f74722cee..098b19d4f 100755 --- a/conda/artiq/build.sh +++ b/conda/artiq/build.sh @@ -42,7 +42,7 @@ cd $SRC_DIR/misoc; $PYTHON make.py -X ../soc -t artiq_pipistrello $MISOC_EXTRA_I cp soc/runtime/runtime.fbi $BIN_PREFIX/pipistrello/ cp $SRC_DIR/misoc/software/bios/bios.bin $BIN_PREFIX/pipistrello/ cp $SRC_DIR/misoc/build/artiq_pipistrello-nist_qc1-pipistrello.bit $BIN_PREFIX/pipistrello/ -wget http://www.phys.ethz.ch/~robertjo/bscan_spi_lx45_csg324.bit +wget https://people.phys.ethz.ch/~robertjo/bscan_spi_lx45_csg324.bit mv bscan_spi_lx45_csg324.bit $BIN_PREFIX/pipistrello/ # build for KC705 NIST_QC2 diff --git a/doc/manual/installing.rst b/doc/manual/installing.rst index da2b6a893..f97d6f9ee 100644 --- a/doc/manual/installing.rst +++ b/doc/manual/installing.rst @@ -176,7 +176,7 @@ These steps are required to generate bitstream (``.bit``) files, build the MiSoC :: $ cd ~/artiq-dev - $ wget http://www.phys.ethz.ch/~robertjo/bscan_spi_lx45_csg324.bit + $ wget https://people.phys.ethz.ch/~robertjo/bscan_spi_lx45_csg324.bit Then copy ``~/artiq-dev/bscan_spi_lx45_csg324.bit`` to ``~/.migen``, ``/usr/local/share/migen`` or ``/usr/share/migen``.