Giter Site home page Giter Site logo

fpga_lecture's People

Contributors

hirokinakahara avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

fpga_lecture's Issues

[lec9]SDKでボードが認識されず動かない問題について

#pragma HLS INTERFACE s_axilite register port=c bundle=slv0
#pragma HLS INTERFACE s_axilite port=b bundle=slv0
#pragma HLS INTERFACE s_axilite port=a bundle=slv0
#pragma HLS INTERFACE s_axilite register port=return bundle=slv0

pragmaでbundleが指定されているとAXILiteSが選択されずにVivado上でVivado HLS で合成されたものと認識されなかった問題ですが、bundleをコメントアウトすることにより授業課題は全て実行できました。ただし授業資料のようなap_ctrlはinterfaceに出て来ず(資料でも使っていないので問題なかったようですが...)、SDKを起動したときに

17:00:15 WARN	: Given IPC port value is invalid. Using default port 2350
17:00:15 WARN	: Given XMD timeout value is invalid. Using default value of 50000
17:00:16 WARN	: Given XMD transaction timeout value is invalid. Using default value of 60000 milli seconds
17:00:16 INFO	: Workspace synchronized with the new hardware specification file. Cleaning dependent projects...
17:00:16 WARN	: Linker script will not be updated automatically. Users need to update it manually.

のwarningが出ているので何かしらの問題がありそうです。

fir_1.vとfir_pipe_1.vのバグ

fir_1.vとfir_pipe_1.vで同じテストベンチの結果を得るために修正が必要なようです。
fir_1.vのテストベンチ(修正前):
seq_bm
fir_pipe_1.vのテストベンチ(修正前):
pipe_bm
fir_1.vのテストベンチ(修正後):
seq_am
fir_pipe_1.vのテストベンチ(修正後):
pipe_am

問題点1:符号なし乗算になっている。
フィルタの最初の出力は(100)X(-136)でFFFFCAE0で上位16bitが出力になるためFFFFが正しい出力ですがテストベンチでは0063になっています。信号線をsignedで宣言する必要があります。
問題点2:(fir_1.vのみ)フィルタの入力が次のサイクルで使われない。
あるサイクルでshift_reg[0]に格納されたフィルタ入力が次のサイクルでshift_reg[1]に移動するのみでフィルタ出力の計算に使われない実装になっています。
以下に修正案を添付させていただきます。verilogファイルが添付できないようなのでtxtとして添付します。
fir_1.vの修正案:
fir_seq.txt
fir_pipe.vの修正案:
fir_pipe.txt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.