Stimulus in /templates/sim_testbench_14.7/stimulus.vhd is missing

15 views
Skip to first unread message

Guanwen (Henry) Zhong

unread,
Nov 8, 2016, 5:03:53 AM11/8/16
to ReconOS
Dear ReconOSers,

I have ported the testbench and want to test the custom IP. Thus I extract files in templates/sim_testbench_14.7. However, for sort_demo, the stimulus at Line 56 in /demos/sort_demo/build.sim.sortdemo/stimulus.vhd is missing. Could you provide any hints (I mean steps to generate the correct stimulus by ourselves)? Thanks for your help. :-)

Best regards,
Guanwen (Henry)

Guanwen (Henry) Zhong

unread,
Nov 9, 2016, 3:50:09 AM11/9/16
to ReconOS
After explicitly writing contents of tb_osif_mbox_get() into stimulus.vhd below Line 56 (I have commented "tb_osif_mbox_get(tb_i_osif, tb_o_osif, x"00000000");tb_osif_mbox_put(tb_i_osif, tb_o_osif); "), I can see the input data in modelsim. 

I do not know why the procedures (tb_osif_mbox_get/put in reconos_pkg_tb.vhd) are not working properly.

Christoph Rüthing

unread,
Nov 9, 2016, 2:59:48 PM11/9/16
to rec...@googlegroups.com
Hi Guanwen,

I'm not sure what you mean by "ported the testbench", but basically you should be able to also use it for your own hardware threads. I admit, that the current implementation of the osif_... functions in the test package is not very well-engineered (using wait statements). I remember that it as a little bit fiddly to make everything working correctly and get the correct timings. Furthermore, I think no one used them with modelsim but only with ISim, maybe there are some differences in how they are simulated.

Yours,
Christoph
--
You received this message because you are subscribed to the Google Groups "ReconOS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to reconos+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Guanwen (Henry) Zhong

unread,
Nov 9, 2016, 9:56:09 PM11/9/16
to ReconOS, chri...@muppetnet.net
Thanks Christoph. Maybe it is caused by the difference between modelsim and isim. Anyway, I can modify the testbench to verify own hw threads based on your template. :-)
Reply all
Reply to author
Forward
0 new messages