MATLAB Answers

0

HDL COSIMULATION is taking too long time

Asked by Pranav Stellar on 19 Feb 2019
Latest activity Answered by Bharath Venkataraman on 20 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

  0 Comments

Sign in to comment.

1 Answer

Answer by 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.
Bharath

  0 Comments

Sign in to comment.