How to obtain the counting of TTL pulses from an FPGA?
- 2 years ago
Hi,
If you want to retrieve the RTL count data in a .txt file, you can use PIO IP to pass the RTL count data to embedded system to be written in .txt file.
PIO IP reference link - https://www.macnica.co.jp/en/business/semiconductor/articles/intel/113961/
TXT file mounting video link - https://www.youtube.com/watch?v=kbIcXwtfBiY&t=414s
To mount the text file in embedded system (eclipse), will need to debug the software Debug As -> Nios II Hardware.
For USB-to-UART, you may refer to this video link https://www.youtube.com/watch?v=7xJ9dhVDCwU&t=271s and reference design https://www.intel.com/content/www/us/en/design-example/715139/cyclone-v-uart-rs-232-maximum-baud-rate-reference-design.html. For the USB part putty (HPS), may be you need to open a new thread in https://community.intel.com/t5/Intel-SoC-FPGA-Embedded/bd-p/soc-fpga-embedded-development-suite to get more details.
If want to send the count data at end of interval, may be can do something like below in RTL:
assign count = (timer == 32'd4999) ? count_reg : 32'b0;
Btw, I had create a design uart_putty.zip attached below for demonstration. The ./software/usbuart/output_end_interval.txt record the count data at end interval while the ./software/usbuart/output_whole_interval.txt record the count data for whole interval.
Let me know if you have any further update or concern.
Thanks,
Best Regards,
Sheng