I have a SREC file which is a simple text file and I want to read it line by line in verilog. How can I do that?
相关问题
- Lazily Reading a File in D
- Using single ended port in logic expecting diff-pa
- DirectoryStream.Filter example for listing files t
- Warning: (vsim-7) Failed to open readmem file “mem
- Evaluation Event Scheduling - Verilog Stratified E
相关文章
- How to replace file-access references for a module
- Why is file_get_contents faster than memcache_get?
- Transactionally writing files in Node.js
- Getting the cluster size of a hard drive (through
- Example for file read/write with NSFileHandle
- line-by-line file processing, for-loop vs with
- How to store output of a stored procedure on to di
- Python: Why am I getting a UnicodeDecodeError?
The following reads through a file, 1 line per clock cycle: expected data format is one decimal number per line.
Thank you for the solution. I modified it just a little to use 2 .txt file containing 32 HEX numbers on each row and found some difficulties on the way since I didn't understand what each line of code did. My findings were the following.
Just vars and regs declaration
Opening both files
At this part, I will read line by line in HEX format and store it in "captured_outputs" register and "captured_inputs" register.
I just wanted to contribute with something anybody who's starting to code in Verilog could understand and attach this great feature to his/her project.
Enjoy!