-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optimize text output file #2
Comments
I believe most of the records in the file are duplicates, especially since in our tests we are painting the same color (black) to the screen 90% of the time or so. A solution to drastically reduce filesize and increase performance would be to only record signal events. This would honestly be pretty easy to do. |
Lines that have the potential to be reduced:
|
The log would work like this: Each entry is when a signal changed. In the simulator, only update the values when we reach the timestamp. So what we can do is something like this:
This requires us to know the time interval. This may need to be supplied by a CLI flag. |
Our output file is 98.4758% smaller! Let's see how difficult it is to integrate into the script -rw-r--r--. 1 benjamin benjamin 1088541 Mar 30 13:52 newout.txt
-rw-r--r--. 1 benjamin benjamin 71415293 Mar 29 23:04 vga_output.txt |
Ideally we could just have the file output two times to define a range... but I really don't care to learn VHDL text IO functions. |
This is super close to being finished. Someone should pick this up and finish the algorithm. As displayed above, it will result in way smaller log files, and likely will result in much faster image displaying. This is being worked on on the |
Currently the output files are on the order of 50-100MB in size. This is hugely space-inefficient. Consider a way to optimize this!
The text was updated successfully, but these errors were encountered: