# Initial values, memories, and Yosys

**URL:** <https://discourse.myhdl.org/t/initial-values-memories-and-yosys/400>\
**Category:** Support\
**Created:** [October 14, 2019, 6:56pm UTC](https://discourse.myhdl.org/t/initial-values-memories-and-yosys/400 "2019-10-14T18:56:37Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![JanCoombs](https://avatars.discourse-cdn.com/v4/letter/j/9fc29f/32.png) [@JanCoombs](https://discourse.myhdl.org/u/JanCoombs)\
**Post date:** [March 31, 2020, 8:57pm UTC](https://discourse.myhdl.org/t/initial-values-memories-and-yosys/400/9 "2020-03-31T20:57:24Z")

</div>

The pairs of underscores got lost in copying, have just checked to make sure.

The verilog memory code could be the same, but the model also builds the RAM initialization block with a memory content values list. I have not found another way to attach this section to the generated verilog code.

See: [http://murray-microft.co.uk/MyHDL/myram\_2020-03-31\_1745\_SimRunsJust\_SynthGood.tar.gz](http://murray-microft.co.uk/MyHDL/myram_2020-03-31_1745_SimRunsJust_SynthGood.tar.gz)

---

_[View the full topic](https://discourse.myhdl.org/t/initial-values-memories-and-yosys/400)._
