/Point/LightnessTransform/README.md

https://github.com/dtysky/FPGA-Imaging-Library · Markdown · 56 lines · 38 code · 18 blank · 0 comment · 0 complexity · 992bdd98360f85bda059ac0ef04cf57a MD5 · raw file

  1. # Wiki and Contact
  2. [Homepage for this project](http://ifl.dtysky.moe)
  3. [Sources for this project](https://github.com/dtysky/FPGA-Imaging-Library)
  4. [My e-mail](Mailto:dtysky@outlook.com)
  5. [My blog](http://dtysky.moe)
  6. # Simulations
  7. **Simulations for this module just support RGB and Gray-scale images !**
  8. ## Steps for simulations
  9. **Warning: procedures for simulation depend on python 2.7 and PIL(Python Imaging Library), please get them by your self.**
  10. ### Preparing
  11. Open "ImageForTest".
  12. Put images which you want to use for simulations.
  13. Edit the "conf.json" for setting the configurations for simulations.
  14. ### Software simulation
  15. Open "SoftwareSim".
  16. Run "sim.py".
  17. Open "SimResCheck", check your results.
  18. ### Creat preparing data for functional simulation
  19. Open "HDLSimDataGen".
  20. Run "creat.py".
  21. ### Functional simulation
  22. Functional simulation just support for modelsim 10.1 up.
  23. Above all, you must compile all xilinx vivado library to modelsim.
  24. Open "FunSimForHDL".
  25. Open "ContrastTranslate.mpf" with modelsim.
  26. #### Do these:
  27. Run this commond at first time:
  28. vlib work
  29. Then, compile all your source file:
  30. modelsim gui -> Compile -> Compile all
  31. Then, run this:
  32. do Run.do
  33. If you just want to the finally result, and don't want to watch the waveform, run this:
  34. do RunOver.do
  35. ## Comparing
  36. Open "SimResCheck".
  37. Run "covert.py", then you can get the results form functional simulation.
  38. Run "compare.py" for creating a report for software simulation and functional simulation.