# Testbenches in myhdl or cocotb

**URL:** <https://discourse.myhdl.org/t/testbenches-in-myhdl-or-cocotb/369>\
**Category:** Uncategorized\
**Created:** [March 23, 2019, 3:07pm UTC](https://discourse.myhdl.org/t/testbenches-in-myhdl-or-cocotb/369 "2019-03-23T15:07:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![krs](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.myhdl.org/krs/32/121_2.png) [@krs](https://discourse.myhdl.org/u/krs)\
**Post date:** [March 23, 2019, 3:07pm UTC](https://discourse.myhdl.org/t/testbenches-in-myhdl-or-cocotb/369/1 "2019-03-23T15:07:02Z")

</div>

Hello,  
Are there really any benefits of using cocotb for simulation when one use myhdl for coding ?  
I guess I could do unit tests in python myhdl for simulation (did not try it though).  
Cocotb also provides an easy framework to simulate verilog/vhdl code with different test cases.

Is there any benifit in using cocotb framework when I already have myhdl design for verification?  
Can someone experienced through some light on it ?

Thank you

---

<div class="post-metadata">

**Author:** ![Abhishek\_Bajpai](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.myhdl.org/abhishek_bajpai/32/115_2.png) [@Abhishek\_Bajpai](https://discourse.myhdl.org/u/Abhishek_Bajpai)\
**Post date:** [March 23, 2019, 9:26pm UTC](https://discourse.myhdl.org/t/testbenches-in-myhdl-or-cocotb/369/2 "2019-03-23T21:26:21Z")

</div>

I actually started with cocotb for verification of verilog designs, but then shifted to MyHDL for verification and HDL Design. MyHDL is a great tool. Do checkout unit tests.
