MATLAB Answers

HDL COSIMULATION is taking too long time

1 view (last 30 days)
Pranav Stellar
Pranav Stellar on 19 Feb 2019
I am working on a simulink model given in visionhdlexamples - "visionhdlmedianimagefilter" to generate its HDL code and RTL schematic and simulate it in model sim.
I had used HDL cosimulation for simulating it, but is is taking very long time. I had checked some properties like -
  1. Shared memory used.
  2. Timescale used is 1s in simulink is equal to 10 ns in HDL.
I am attaching the screenshot of the model while running showing the very large T (around 4 hours) but it is done with only 25 %. I want to know where I did something wrong ?
Kindly help.
Screenshot (470).png

Answers (1)

Bharath Venkataraman
Bharath Venkataraman on 20 Feb 2019
You can use he FIL Frame To Pixels and FIL Pixels To Frame blocks - these send in multiple pixels at at time a line or frame at a time) and will help speed up the simulation. You can see an example on how to use these blocks in this help page.
Do let us know if this helped you or if there are improvements we can make to the example.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by