# How-to ? : Internal signals of same type than external ones

**URL:** <https://discourse.myhdl.org/t/how-to-internal-signals-of-same-type-than-external-ones/147>\
**Category:** Support\
**Created:** [January 12, 2017, 9:16am UTC](https://discourse.myhdl.org/t/how-to-internal-signals-of-same-type-than-external-ones/147 "2017-01-12T09:16:11Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![josyb](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.myhdl.org/josyb/32/5_2.png) [@josyb](https://discourse.myhdl.org/u/josyb)\
**Post date:** [January 12, 2017, 12:02pm UTC](https://discourse.myhdl.org/t/how-to-internal-signals-of-same-type-than-external-ones/147/2 "2017-01-12T12:02:36Z")

</div>

Hi DrPi,

I addressed some of this in Discourse: [New, copy, clone or duplicate?](http://discourse.myhdl.org/t/new-copy-clone-or-duplicate/31/12)  
And I have added this copy() function to my _Signal class (in my local MyHDL library) and in my experimental Array() and StructType() classes.  
It exactly achieves what you want 🙂 and I use it all the time.  
My copy() function re-uses the initial value of the original object. I don’t readily see a use for the initial\_output. But the copy() could be easily extended to take this initial\_output argument.  
However, I don’t know if it is a good idea to add extra arguments to the copy() call as this will divert it from the \_copy_() and \__deepcopy_\_() hooks.

Regards,

Josy

---

_[View the full topic](https://discourse.myhdl.org/t/how-to-internal-signals-of-same-type-than-external-ones/147)._
