# Initial values for generated HDL

**URL:** <https://discourse.myhdl.org/t/initial-values-for-generated-hdl/190>\
**Category:** Support\
**Created:** [May 24, 2017, 5:51am UTC](https://discourse.myhdl.org/t/initial-values-for-generated-hdl/190 "2017-05-24T05:51:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Somun](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.myhdl.org/somun/32/55_2.png) [@Somun](https://discourse.myhdl.org/u/Somun)\
**Post date:** [May 24, 2017, 5:51am UTC](https://discourse.myhdl.org/t/initial-values-for-generated-hdl/190/1 "2017-05-24T05:51:14Z")

</div>

Hi there,

It looks like initial value support (in generated code) has been integrated into master

> <https://github.com/myhdl/myhdl/pull/150>

but I cannot see any mention in the documents on how to enable this. Does anyone have any pointers?

FWIW, I am using 1.0dev with Python 3.6

Thanks.

---

<div class="post-metadata">

**Author:** ![Somun](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.myhdl.org/somun/32/55_2.png) [@Somun](https://discourse.myhdl.org/u/Somun)\
**Post date:** [May 26, 2017, 6:43am UTC](https://discourse.myhdl.org/t/initial-values-for-generated-hdl/190/2 "2017-05-26T06:43:10Z")

</div>

Hmm, I should have just looked at the code. Adding the option initial\_values = True did the trick,

`instance.convert(initial_values = True)`

Myhdl rocks 🙂
