Branch: master
Find file History
Pull request Compare This branch is 35 commits ahead, 19 commits behind Publish.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
DocGen
FunSimForHDL
HDL
HDLSimDataGen
ImageForTest
SimResCheck
.gitignore
README.md

README.md

Wiki and Contact

Homepage for this project
Sources for this project
My e-mail
My blog

Simulations

Simulations for this module just support Gray-scale and 512x512 images !

Steps for simulations

Warning: procedures for simulation depend on python 2.x and PIL(Python Imaging Library), please get them by your self.

Preparing

Open "ImageForTest".
Put images which you want to use for simulations.
Edit the "conf.json" for setting the configuration for simulations.

Software simulation

Open "SoftwareSim".
Run "sim.py".
Open "SimResCheck", check your results.

Creat preparing data for functional simulation

Open "HDLSimDataGen".
Run "creat.py".

Functional simulation

Functional simulation just support for modelsim 10.1 up.
Above all, you must compile all xilinx vivado library to modelsim.

Open "FunSimForHDL".
Open "ContrastTranslate.mpf" with modelsim.

Do these:

Run this commond at first time:

vlib work  

Then, compile all your source file:

modelsim gui -> Compile -> Compile all  

Then, run this:

do Run.do

If you just want to the finally result, and don't want to watch the waveform, run this:

do RunOver.do

Comparing

Open "SimResCheck".
Run "covert.py", then you can get the results form functional simulation.
Run "compare.py" for creating a report for software simulation and functional simulation.