# More user friendly interface and LoS names in \`v\*\_code\` blocks

**URL:** <https://discourse.myhdl.org/t/more-user-friendly-interface-and-los-names-in-v--code-blocks/71>\
**Category:** Uncategorized\
**Created:** [June 2, 2016, 3:52pm UTC](https://discourse.myhdl.org/t/more-user-friendly-interface-and-los-names-in-v--code-blocks/71 "2016-06-02T15:52:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hgomersall](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.myhdl.org/hgomersall/32/10_2.png) [@hgomersall](https://discourse.myhdl.org/u/hgomersall)\
**Post date:** [June 2, 2016, 3:52pm UTC](https://discourse.myhdl.org/t/more-user-friendly-interface-and-los-names-in-v--code-blocks/71/1 "2016-06-02T15:52:23Z")

</div>

I’ve implemented inside `_block.py` a method for handling user code that allows more python-like naming of interface signals.

It’s currently a bit crude and currently only works for VHDL, but demonstrates the principle. Essentially, it allows signals to be included in `VHDL_code` like the following:

```auto
${interface_out.sig1} <= ${interface_in.sig1}

```

It neatly sidesteps the problem of potential name-space overlap - replacing at block creation time the interface string with the correct renamed string. It’s backwards compatible and safe insomuch as only the new style of names are changed (and only then in the case where it actually finds a suitable signal).

I was also wondering about LoS enhancement as well, but It’s not clear to me this is so simple (largely because I haven’t played with it to find out what they look like).

```auto
${signal_list_out[0]} <= ${signal_list_in[0]}

```

---

<div class="post-metadata">

**Author:** ![hgomersall](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.myhdl.org/hgomersall/32/10_2.png) [@hgomersall](https://discourse.myhdl.org/u/hgomersall)\
**Post date:** [June 2, 2016, 4:24pm UTC](https://discourse.myhdl.org/t/more-user-friendly-interface-and-los-names-in-v--code-blocks/71/2 "2016-06-02T16:24:54Z")

</div>

Link to code [here](https://github.com/hgomersall/myhdl/blob/interfaces_in_v_code/myhdl/_block.py#L174).
