vivado ila语句
时间: 2023-10-14 19:30:09 浏览: 130
Vivado中使用ILA(Integrated Logic Analyzer)进行调试时,以下是常用的ILA语句:
1. 创建ILA实例:
```
set ila_instance [create_debug_core dbg_hub/ila]
```
2. 配置ILA实例:
```
set_property PROBE_COUNT <probe_count> $ila_instance
set_property PROBE_SCLK_FREQ_HZ <sclk_freq> $ila_instance
set_property TRIGGER_POSITION <position> $ila_instance
set_property TRIGGER_TYPE <type> $ila_instance
set_property DATA_DEPTH <depth> $ila_instance
set_property ENABLE_HW_TRIGGER true $ila_instance
```
其中,<probe_count>表示需要捕获的信号数量,<sclk_freq>表示系统时钟频率,<position>表示触发器位置,<type>表示触发器类型,<depth>表示数据深度。
3. 开始捕获数据:
```
start_debug_core $ila_instance
```
4. 停止捕获数据:
```
stop_debug_core $ila_instance
```
5. 读取捕获的数据:
```
get_hw_ila_data [get_hw_ilas <ila_instance>] <start_index> <end_index>
```
其中,<start_index>和<end_index>表示数据的起始和结束索引。
以上是常用的ILA语句,可以根据实际需要进行调整。
阅读全文
相关推荐


















