2017-11-01から1ヶ月間の記事一覧
G1 X1 送信時 *acc_step_rate: 35, acc_time: 859, acc_rate: 671088 *acc_step_rate: 69, acc_time: 1718, acc_rate: 671088 *acc_step_rate: 103, acc_time: 2577, acc_rate: 671088 *acc_step_rate: 138, acc_time: 3436, acc_rate: 671088 *acc_step_rat…
ここを参考に https://arduino.stackexchange.com/questions/176/how-do-i-print-multiple-variables-in-a-string #include <stdarg.h> #include <Arduino.h> #define ARDBUFFER 16 int ardprintf(char *str, ...) { int i, count=0, j=0, flag=0; char temp[ARDBUFFER+1]; for(i=</arduino.h></stdarg.h>…
speed_lookuptable_fastをグラフ描画してみる =#from pylab import * import matplotlib.pyplot as plt slow = [ [ 62500, 12500], [ 50000, 8334], [ 41666, 5952], [ 35714, 4464], [ 31250, 3473], [ 27777, 2777], [ 25000, 2273], [ 22727, 1894], [ 20…
戦略 1. アセンブラと同じ操作をするCコードをline by lineで書いてみる 2. Sprinterを実際に動かして、入力値と出力値を調べる 解析用Arduinoプログラム // intRes = intIn1 * intIn2 >> 16 // uses: // r26 to store 0 // r27 to store the byte 1 of the …
MultiU16X8toH16 // intRes = intIn1 * intIn2 >> 16 // uses: // r26 to store 0 // r27 to store the byte 1 of the 24 bit result // MultiU16X8toH16(timer, tmp_step_rate, gain); #define MultiU16X8toH16(timer_16bit, tmp_step_rate_8bit, gain_16bi…
FPGAプログラミング大全を参考に。 IP化したもの https://github.com/shohei/disp_ipSDKのテストコード (ブレークポイントを設定しないと一瞬で終了して何も見えないので注意) #include <stdio.h> #include "xparameters.h" #include "xil_cache.h" #define GPIO_00</stdio.h>…
https://www.slideshare.net/HirokiNakahara1
UG871 https://www.xilinx.com/support/documentation/sw_manuals_j/xilinx2015_4/ug871-vivado-high-level-synthesis-tutorial.pdf
http://marsee101.blog19.fc2.com/blog-category-105.html
このあたりを参考に http://marsee101.blog19.fc2.com/blog-category-119.html
ソースは https://github.com/shohei/xapp1078_2014.4_zybo を使う 1. xapp1078のビットストリームをVivadoで合成する。 design/work/project_2/project_2.xprを起動する。 IPは自動アップグレードする。 Generate bitstreamでビットストリームを生成する。 …
環境変数LD_LIBRARY_PATHを消去する https://japan.xilinx.com/support/answers/66998.html $ unset LD_LIBRARY_PATH $ ./petalinux-installer.run
https://www.xilinx.com/support/answers/67580.html 環境変数に以下を設定する。 export SWT_GTK3=0
ビルドできたけど、起動できなかった(新しいプログラムecho_test-staticも古いecho_testも) cmake .. -DCMAKE_INCLUDE_PATH=/usr/local/include -DCMAKE_LIBRARY_PATH=/usr/local/lib -DWITH_APPS=ON -DCMAKE_TOOLCHAIN_FILE=../zynq7_linux.cmake [-DWITH…
DHCPをrenewしたい sudo dhclient eth0を実行すると、dhclientがないといわれた # udhcpcでいけた。