4.7. TIPS AND TRICKS
53
4.7 Tips and tricks
In this section we have collected some notes that you might find useful.
• If you want to simulate the 2D DCT accelerator together with the rest of the
system, you will have to modify the monitor to run your testcode right after the
system has started. See the directions in s ection 3.3.3 on how to modify the
monitor.
• In order to improve the performance of the code you can remove some of the
performance counters. But the performance counters in jpegtest has to re-
main!
• If you encounter some weird problems with the hardware you can try to turn
the power off to the FPGA system before configuring it. We have had some
problems with the FPGA board which can be solved in this manner.
4.8 What to include in the lab report
The lab report should contain all source code that you have written. (The source code
should of course be commented.) We would also like you to include a block diagram
of your hardware. If you have written any FSM you should include a state diagram
graph of the FSM.
We would also like you to discuss the following questions in detail somewhere in
your lab report.
• How does your 2D DCT hardware work?
• How did you verify that your 2D DCT hardware works corr ectly?
• What is the performance with and without the 2D DCT hardware? This should
include measurements of both the 2D DCT kernel and the entire application.
• A timestamp diagram.
• How much of the FPGA is used by the 2D DCT hardware?
• How much is the 2D DCT hardware used while encoding an image in jpegtest?
• Is the size of the 2D DCT hardware justified by the performance improvements?
• What would be required in order to implement more functionality like zigzag
addressing in the 2D DCT hardware module? Would it be difficult to modify
jpegfiles to take advantage of such optimizations?
And of course, the normal parts of a lab report such as a table of contents, an intro-
duction, a conclusion, etc. The source code that you have written should be included
in appendices and referred to from the main document.
Komentáře k této Příručce