multiple instances and (e.g.) vhdl_code

Henry Gomersall <[email protected]>
Newsgroups gmane.comp.python.myhdl
Message-ID <[email protected]>
Is there a template string for getting an identifier for the current 
instance when using vhdl_code?

That is, I want the name of the function inside the vhdl code to be 
different for each call to the instance constructor. So the vhdl_code 
could look something like:
FOO_BAR.vhdl_code = '''
foo_bar_$this_id: entity work.SOME_BLOCK(MyHDL)
...
'''

I'm currently working around it with a module local list of allocated 
ids and creating a new one each time. This works, but is not very neat.

Cheers,

Henry

------------------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.