# List of signals as a port is not supported : mem

**URL:** <https://discourse.myhdl.org/t/list-of-signals-as-a-port-is-not-supported-mem/423>\
**Category:** Support\
**Created:** [March 25, 2020, 11:59am UTC](https://discourse.myhdl.org/t/list-of-signals-as-a-port-is-not-supported-mem/423 "2020-03-25T11:59:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Soulthym](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.myhdl.org/soulthym/32/133_2.png) [@Soulthym](https://discourse.myhdl.org/u/Soulthym)\
**Post date:** [March 25, 2020, 11:59am UTC](https://discourse.myhdl.org/t/list-of-signals-as-a-port-is-not-supported-mem/423/1 "2020-03-25T11:59:21Z")

</div>

Hello,  
I am currently working on a myhdl project [(link here)](https://github.com/Soulthym/NCM-Forest-FPGA), and am facing a problem while converting a myhdl module to VHDL. I am a beginner in myhdl, and I don’t know what i am doing wrong: I receive a `List of signals as a port is not supported: mem` ConvertionError on the `bram.py` module.  
Shouldn’t a memory module be represented as a list of signal? If not, how should I do it for it to be instantiable?

As a side question: Do I have to store the memory inside the block MemController (I actually want to have multiple reading heads in the future, for the same memory…)? If so, how should I do it?

Any help will be appreciated!

---

<div class="post-metadata">

**Author:** ![Soulthym](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.myhdl.org/soulthym/32/133_2.png) [@Soulthym](https://discourse.myhdl.org/u/Soulthym)\
**Post date:** [March 26, 2020, 3:17pm UTC](https://discourse.myhdl.org/t/list-of-signals-as-a-port-is-not-supported-mem/423/2 "2020-03-26T15:17:38Z")

</div>

It’s working now,  
passing the memory as an argument to the `@block` constructor means mapping all its bits to a port, which isn’t possible in Verilog and thus isn’t implemented for translation to either HDL. The fix was to make the list of signals - mem - a local definition, thus no mapping to port is required (and the generated VHDL is pretty close to a classic implementation of a Block-RAM).
