fpga系列 HDL:XILINX Vivado ILA FPGA 在线逻辑分析

  • ILA为内置逻辑分析仪,通过JTAG与FPGA连接,程序在真实硬件中运行,功能类似Quaruts的SignalTap II

ip创建ila

在这里插入图片描述

使用ila ip核

在这里插入图片描述

`timescale 1ns / 1ps
module HLSLED(
     input wire clk ,
     input wire rst_n ,
     output wire led
     );
     
//     reg led_o_i = 1 ;//输入数据有效
	 wire led_o_i = 0;
     // assign rest_n = 0;
     reg rst = 0;
     wire led_o_o_ap_vld;
     
// (in parentheses) to your own signal names.

//----------- Begin Cut here for INSTANTIATION Template ---// INST_TAG
//hlsv_0 your_instance_name (
hlsvv your_instance_name (
  .led_o_o_ap_vld(led_o_o_ap_vld),  // output wire led_o_o_ap_vld
  .ap_clk(clk),                  // input wire ap_clk
  .ap_rst(rst),                  // input wire ap_rst
  .led_o_i(led_o_i),                // input wire [0 : 0] led_o_i
  .led_o_o(led)                // output wire [0 : 0] led_o_o
);
     
ila_0 your_instance_name1 (
	.clk(clk), // input wire clk
	.probe0(led), // input wire [0:0]  probe0  
	.probe1(your_instance_name.i_reg_61) // input wire [13:0]  probe1
);  
     
endmodule

编译并下载程序

在这里插入图片描述

运行并采样数据

在这里插入图片描述

在这里插入图片描述

CG

  • 注:感觉VIVADO中的DEBUG功能用起来更简单一点
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值