Forum Discussion
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
Hi,
Any further update or concern on this thread?
Thanks,
Best Regards,
Sheng
- JorgeA2 years ago
New Contributor
Hello,
Thank's a lot for your help. I'm currently trying to understand the example design you provided. As I mentioned, I'm completely new to hardware programming in general (not only FPGA's), so It's being a little difficult to understand the design. I have also checked the resources you provided for context, but it's still challenging. If you can provide a general description of this it would be really helpful. Finally, would this design be ready for the FPGA programming? I'm sorry for the inconvenience.