Commit 117dbe64 authored by Wesley W. Terpstra's avatar Wesley W. Terpstra

Use new versions of subprojects.

Moved pcie-wb into fpga-config-space.
parent 49427026
......@@ -4,6 +4,6 @@
[submodule "wr-cores"]
path = wr-cores
url = git://ohwr.org/hdl-core-lib/wr-cores.git
[submodule "pcie-wb"]
path = pcie-wb
url = git://github.com/terpstra/pcie-wb.git
[submodule "fpga-config-space"]
path = fpga-config-space
url = git://ohwr.org/hdl-core-lib/fpga-config-space.git
wr-cores/ip_cores/etherbone-core/api/
\ No newline at end of file
fpga-config-space @ c407c89d
Subproject commit c407c89d557bf10095d7042e9f5035394a4818b0
Subproject commit a9463ff585b81bb42905778544c497c3ab22c0d5
#! /bin/bash
dev="$1"
when="$2"
FLAGS="-p -a 32 -d 32 -r 0"
EB_READ="eb-read"
EB_WRITE="eb-write"
utc=`echo "$when" | cut -d. -f1`
utchi=$(($utc/4294967296))
utclo=$(($utc%4294967296))
cycle=0
$EB_WRITE $FLAGS $dev 0x140010/4 $utchi
$EB_WRITE $FLAGS $dev 0x140014/4 $utclo
$EB_WRITE $FLAGS $dev 0x140018/4 $cycle
$EB_WRITE $FLAGS $dev 0x14001C/4 0xffffffff # toggle all outputs
$EB_WRITE $FLAGS $dev 0x140000/4 0 # enqueue the command
#! /bin/bash
dev="$1"
FLAGS="-p -a 32 -d 32 -r 0"
EB_READ="eb-read"
while true; do
UTClo=0x`$EB_READ $FLAGS $dev 0x20308/4`
UTChi=0x`$EB_READ $FLAGS $dev 0x2030C/4`
CNT=0x`$EB_READ $FLAGS $dev 0x20304/4`
UTClon=0x`$EB_READ $FLAGS $dev 0x20308/4`
if test $UTClo == $UTClon; then break; fi
done
NS=$((CNT*8))
UTC=$((UTChi*4294967296 + UTClo))
printf "%d.%09d = " $UTC $NS
echo -n `date +"%Y-%m-%d %H:%M:%S" -d @$UTC`
printf ".%09d\n" $NS
wr-cores @ 1c93483f
Subproject commit 084ee277620059850f4797a47e307ec33ea91dba
Subproject commit 1c93483f236a1f79a9f4bafdbe7fc3a0ef3d34bb
wrpc-sw @ da0c512c
Subproject commit 9f0345fbb9d46158a881da917ce99e0c6caa13ff
Subproject commit da0c512c634ec55cde093ff56c8fa0915ce3dfcf
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment