Chipscope is available for the free webpack license, why need to pay ?
Because once upon a time, ChipScope was
not included with the free WebPack. It was a separate purchase and download. We bought a floating license for it. It is one of those things that you don't use very often, but when you need it, you're glad you have it. At some point, ChipScope became a free option. Like I said, "once upon a time."
by the way, I still could not get the ILA to be triggered even after I changed the trigger value for both 'clk' and 'resetn' signals.
You never trigger on the clock.
You shouldn't trigger on the reset, especially since the reset might be absorbed into the fabric in a way that it's not exposed to ILA.
Trigger on a signal that you're trying to analyze!
Someone told me to connect BUFG in between SYS_CLK and ILA. So, I modified the ILA coding to the following. However, I have some other error related to BUFG though.
50MHz clock crystal --> SYS_CLK --> FPGA IO pin A10 --> BUFG --> ILA
Vivado synthesis should be smart enough to infer the BUFG, so this is not necessary.
`ifdef USE_ILA
`ifdef XILINX
Doesn't Vivado have the equivalent of the ChipScope Core Inserter, where eliminates the need to instantiate the logic analyzer cores in your code? Just use that.