問題タブ [lattice-diamond]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
include - Lattice Diamond `include が機能しない
私は Lattice Diamond を使用しており、グローバル定数を定義するための一連の `define ステートメントを含む verilog ファイルがあります。
この「ヘッダー」ファイルを別のファイルに含めます。ファイルは見つかりますが、エラーがあります。
" 2049990 エラー - C:/_libraries/LatticeDiamond/verilog-uart/source/uart/uart_loopback_tb.v(184,38-184,53) (VERI-1128) UART_1_STOP_BIT が宣言されていません"
実装のプロジェクト設定でも、ヘッダー ファイルのディレクトリをインクルード パスとして設定しています。
次に、そのファイルを含むファイルがあります。
私の「定義」が見つからないのはなぜですか? ヘッダー ファイルを含むファイルは、ヘッダー ファイル自体と同じディレクトリにあります。Lattice Diamond はこれをサポートしていますか?
同じディレクトリにあるため、「include "UART_header.v"」も試しましたが、同じエラーが発生します。